Re[2]: The XSL-List Digest V3 #343

Subject: Re[2]: The XSL-List Digest V3 #343
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Tue, 14 Nov 2000 12:15:07 +0000

> But how do I include debuging information,
> in particular a copy of the source XML, into
> the output while not effecting the output XML.
> I.e. it needs to be in an xsl:comment block.

Well it's kinda ugly, but you could do:

<xsl:if test="$debug">
  <!-- start comment -->
  <xsl:text disable-output-escaping="yes">&lt;--</xsl:text>
  <!-- copy the document -->
  <xsl:copy-of select="/" />
  <!-- end comment -->
  <xsl:text disable-output-escaping="yes">--></xsl:text>

I would normally stay well away from disable-output-escaping but Mike
Kay used it the other day in a similar situation so I don't feel so

I hope that helps,


Jeni Tennison

 XSL-List info and archive:

Current Thread