Hi,
I'm trying to copy a HTML fragment that contains a comment, preserving
the comment. As far as I can see, the XSLT processor relies on a DOM
that doesn't preserve comments. As I understand it, this is legal
(although it seems completely nutty to me).
As a consequence, it seems that putting this construct into a template
produces no output when using Xalan:
<xsl:comment>This is where the comment would appear</xsl:comment>
Is that correct? Could it be that I've missed something obvious? The
same construct presents no problems to Saxon.
If so, how is one supposed to preserve a comment across a transformation?
<script type="text/javascript">
<!--
[horrible but necessary javascript goes here]
-->
</script>
Regards,
Jack.
--~------------------------------------------------------------------
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>
--~--