Subject: RE: [xsl] xsl:copy-of copies what? From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Tue, 29 Jan 2002 23:11:21 -0000 |
> DTD constructs, such as DOCTYPE, are not XML elements. (DTD > constructs are > metadata, not data.) That's why you can't use <xsl:copy-of/> > to copy the > DOCTYPE. Similarly, <xsl:copy-of/> will not copy XML comments > or processing > instructions because they are not XML elements, and they are > not part of the > XML Infoset. Hope that helps. Yes, the DOCTYPE is not in the infoset or the XPath model, and therefore can't be copied. But processing instructions and comments are in the infoset and they are nodes in the XPath model, so they can be copied. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl:copy-of copies what?, Stuart Celarier | Thread | Re: [xsl] xsl:copy-of copies what?, David Carlisle |
RE: [xsl] Transforming an XML docum, Michael Kay | Date | RE: [xsl] Using XSLT Component, Stuart Celarier |
Month |