Node-set to XML string via Java extensions in Xalan-J: possible? 2007-02-23 - By Schmidlin, Franck
> putting part or all of the source tree, as XML text, into a textarea.
I am probably missing the point, but I have been using such a 'debug' area on all my XML/XSL generated HTML pages, and have been happy with a simple
<!-- Call this template when you want to display the raw xml in a debug area --> <xsl:template name="displayDebugXml"> <xsl:if test="$doDebug = 'true' "> <table> <tr> <td class="clsClickable" onclick="debugXml.className(debugXml .className=='clsDebugInfoHidden') ? 'clsDebugInfoVisible' : 'clsDebugInfoHidden';"><.../></td> </tr> <tr> <td> <textarea id="debugXml" class="clsDebugInfoHidden" rows="25" cols="80"> <xsl:copy-of select="/"/> </textarea> </td> </tr> </table> </xsl:if> </xsl:template>
I think the only problem with this is that entities are displayed in the text area unescaped and a simple cut and paste is not always enough to obtain the raw XML.
______________________________ Franck Schmidlin Corporate Integration Consultant Anite Connect Technical Architect
Anite Public Sector ______________________________
A member of the Anite Group of companies. Please refer to www.anite.com for individual Anite company details. The contents of this e-mail and any attachments are for the intended recipient only. If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it. It may contain information which is confidential and/or covered by legal professional or other privilege. Contracts cannot be concluded with us nor legal service effected by email.
Anite Group plc Registered in England No.1798114 Registered Office: 353 Buckingham Avenue Slough Berks SL1 4PF United Kingdom VAT Registration No. GB 787 418187
Scanned for viruses by BlackSpider MailControl.
|
|