Subject: RE: [xsl] trying to load xml and xsl nothing happing From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Sun, 16 Jun 2002 19:31:37 +0100 |
You were invoking the transformation on the "document element". Which is fine; but your template rule was defined on the root node, which is the parent of the document element, so it won't be matched. Many Microsoft examples do indeed start the transformation at the outermost element, but in my view it's simpler and more standard to start it at the root node. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Meir > Sent: 17 June 2002 06:27 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: [xsl] trying to load xml and xsl nothing happing > > > Thanks allot Max > can you please give me short explanation why is that ? > co'z in all the tutorials i saw doing it in the way i did this .. > > like here: > http://www.15seconds.com/issue/010921.htm > > > tnx > > > ----- Original Message ----- > From: "Max Dunn" <maxdunn@xxxxxxxxxxxxxxxxxxxxx> > To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> > Sent: Saturday, June 15, 2002 11:52 PM > Subject: RE: [xsl] trying to load xml and xsl nothing happing > > > > Change: > > > > result = XMLDoc.documentElement.transformNode(XSLDoc); > > > > to > > > > result = XMLDoc.transformNode(XSLDoc); > > > > > > Max > > > > -----Original Message----- > > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Meir > > Sent: Sunday, June 16, 2002 9:36 PM > > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > > Subject: [xsl] trying to load xml and xsl nothing happing > > > > > > Hello list , > > > > i have this code : > > > > var XMLDoc; > > > > var XSLDoc; > > > > var result ; > > > > XMLDoc=new ActiveXObject('Msxml2.DOMDocument.3.0'); > > > > XMLDoc.async = false; > > > > XSLDoc=new ActiveXObject('Msxml2.DOMDocument.3.0') ; > > > > XSLDoc.async = false; XMLDoc.load("flashCTL.xml"); > > > > XSLDoc.load("flashCTL.xsl"); > > > > result = XMLDoc.documentElement.transformNode(XSLDoc); > > > > alert(result); > > > > Tree.innerHTML = result; > > > > > > > > i keep geting <?xml version="1.0" encoding="UTF-16"?> , why? > > > > > > > > XSL-List info and archive: > http://www.mulberrytech.com/xsl/xsl-list > > > > > > > > XSL-List > info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] trying to load xml and xs, Max Dunn | Thread | [xsl] How to execute an expression , CAO Tuan Dung |
RE: [xsl] can templates be nested?, Joerg . Heinicke | Date | Re: [xsl] is it possible to constru, Mike Brown |
Month |