This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]