[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Get and save Stylesheet of XML Doc

Subject: Re: Get and save Stylesheet of XML Doc
From: Ankit Jain <Ankit.Jain@xxxxxxxxxxx>
Date: Mon, 17 Mar 2003 19:25:51 +0100
save stylesheet
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.