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]
Other format: [Raw text]

RE: xsl:copy-of copies what?


> 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


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