|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to extract XSL info from an Xml Document.
| I am using "oracle.xml.parser.v2" classes (in Java ) and | would like to know if there is a method or simple way of | extracting the Xsl Url from a Xml document without phyically | searching the Xml file for it. Assuming you mean that you want the value of the href pseudo-attribute in the: <?xml-stylesheet type="text/xsl" href="mystyle.xsl"?> processing instruction, there is no special function that does this. You can get a hold of the Processing Instruction using the DOM, but then you are responsible for parsing the return value of getNodeValue() which will just be a string that contains the text content of the processing instruction, pseudo-attributes included. ______________________________________________________________ Steve Muench, Lead XML Evangelist & Consulting Product Manager BC4J & XSQL Servlet Development Teams, Oracle Rep to XSL WG Author "Building Oracle XML Applications", O'Reilly http://www.oreilly.com/catalog/orxmlapp/
|
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
|
|||||||||

Cart








