is it possible to create an xml comment in the XSLT-output
which consists of a complete subtree of the xml-input-document?
Im using XSLT 2.0.
No, comment nodes cannot have children, so they cannot contain a subtree.
(To put it another way, angle brackets inside a comment are not markup
representing elements and attributes, they are just text.)
In Saxon you can do
<xsl:comment>
<xsl:value-of select="saxon:serialize($subtree)"/>
</xsl:comment>
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--