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

Re: apply-templates and Ful XML Path

Subject: Re: apply-templates and Ful XML Path
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 18 May 2000 13:13:05 -0600 (MDT)
ful
> > > 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


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.