Subject: Root Node does not contain prolog? From: Elliotte Rusty Harold <elharo@xxxxxxxxxxxxxxx> Date: Sat, 24 Apr 1999 17:41:22 -0700 |
Section 4.1 of the new XSLT spec, Root Node, states: "The root node is the root of the tree. It does not occur anywhere else in the tree. It has a single child which is the element node for the document element of the document. The value of the root node is the value of the document element." This would seem to imply that an XSL processor can never access any part of the prolog including the XML declaration, the xml-stylesheet PI, or the DTD since these are not children of the root. Furthermore, this makes an identity transformation impossible. Is this indeed the intent, here? +-----------------------+------------------------+-------------------+ | Elliotte Rusty Harold | elharo@xxxxxxxxxxxxxxx | Writer/Programmer | +-----------------------+------------------------+-------------------+ | Java I/O (O'Reilly & Associates, 1999) | | http://metalab.unc.edu/javafaq/books/javaio/ | | http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/ | +----------------------------------+---------------------------------+ | Read Cafe au Lait for Java News: http://metalab.unc.edu/javafaq/ | | Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/ | +----------------------------------+---------------------------------+ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Root Node does not contain prol, Jeff Langdon | Thread | Re: Root Node does not contain prol, James Clark |
Re: Understanding named templates a, James Clark | Date | Re: Formatting Objects considered h, Håkon Wium Lie |
Month |