[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Get and save Stylesheet of XML Doc
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|