|
Why not just indent="yes" ? XSLT processors always knows better.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:template match="@*|node()">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
I can see at least 3 serious problems with your stylesheet:
1. You ignore xml:space="preserve"
2. Mixed content get screwed up
3. Processing instructions go /dev/null
|