[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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"><--</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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|