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]

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


Giles,

> 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>
</xsl:if>

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
bad.

I hope that helps,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 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]