|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Root node vs element root?
> I'm trying to figure out the content of the root node. In my > XML example > I know the element root is <book>, but is the root node <?xml > version="1.0" encoding="UTF-8"?> ??? No, the root node is best thought of as being the document itself - like the document node in the DOM model. If you think of an element as being the stuff between <a> and </a> tags, think of the root as being the stuff between start-of-file and end-of-file. The text '<?xml version="1.0" encoding="UTF-8"?>' is an XML declaration, and it is not represented by a node in the XPath tree, because the information is used only by the XML parser when constructing the tree, and is of no interest thereafter. > Also, does the XSLT processor even see/read the xml declaration? No, it's dealt with by the XML parser. Mike Kay 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
|

Cart








