|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: apply-templates and Ful XML Path
> > > the root NODE [...] is the abstract thing which contains everything in > > > the document (including the prolog e.g.) > > > >It doesn't contain the prolog, at least not in the current data model. > >It should just be thought of as "the node that's one level above the > >document element". > > Is this really true? You mean if the prolog contains comments or PIs, > they're inaccessible even though XPath provides the means to retrieve them? No, I didn't mean that. I misspoke. In a sense we're both right. Parts of the prolog are accessible via XPath. The XML Declaration and Document Type Declaration are parts of the prolog that are not accessible. >From XML 1.0: prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? Misc ::= Comment | PI | S >From XPath 1.0: The element node for the document element is a child of the root node. The root node also has as children processing instruction and comment nodes for processing instructions and comments that occur in the prolog and after the end of the document element. - Mike ___________________________________________________________ Mike J. Brown, software engineer, Webb Interactive Services XML/XSL stuff: http://www.skew.org/ http://www.webb.net/ 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








