Subject: Re: [xsl] Get and save Stylesheet of XML Doc From: Ankit Jain <Ankit.Jain@xxxxxxxxxxx> Date: Mon, 17 Mar 2003 19:25:51 +0100 |
HI Rod, Rod Humphris - FLPTN a écrit : > Hi Ankit > > A complex question but... > > How can I get the name of the stylesheet from an XML document using > MSXML. > > You could load the xml document into a dom object and then use some dom code > (there are loads of examples around) to get the value of the stylesheet name > (I assume it's specified in the xml source) and then use that to load a new > dom object with the stylesheet. Ya, its specified in the XML source but I am unable to get the MSXML code for retreiving the stylesheet name. I tried the SelectsingleNode("//processing-instruction") method but it works inside the browser but returns an error inside the MSXSML code. > Also I need to save this stylsheet in my project for later use. > > You could then call the save() method of the dom object to persist it in > your project. But the save method saves the XML file and not the corresponding stylesheet. Does it ? Thanks Ankit XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Get and save Stylesheet o, Rod Humphris - FLPTN | Thread | Re: [xsl] Get and save Stylesheet o, Ankit Jain |
RE: [xsl] Just the first 'x' elemen, Passin, Tom | Date | [xsl] Re: Documenting XML -and- vie, Dimitre Novatchev |
Month |