Subject: Re: apply-templates and Ful XML Path From: Mike Brown <mike@xxxxxxxx> Date: Thu, 18 May 2000 13:13:05 -0600 (MDT) |
> > > 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: apply-templates and Ful XML Pat, John E. Simpson | Thread | Generating namespace declarations g, John-Paul Sicotte |
RE: & character in tags, Kirk Mahoney | Date | Re: XSL and xml entities that need , Mike Brown |
Month |