[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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 |
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"><--</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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: The XSL-List Digest V3 #343, Giles Cope | Thread | XSL:FO, jlangdon |
RE: Structured metadata within XSLT, Kay Michael | Date | SV: Change the value of a parameter, fredric larsson |
Month |
Keywords