A simple debug XSLT
For debug purposes i want to output the input xml document inside a textarea. This is a easy way to select and copy the xml and use later in other application.
So, here it is:
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
method="html"
encoding="ISO-8859-1"
indent="yes"
omit-xml-declaration="yes"
media-type="text/html"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="/">
<textarea cols="80" rows="20">
<xsl:apply-templates select="node()|@*"/>
</textarea>
</xsl:template>
</xsl:stylesheet>