Skip to content

Instantly share code, notes, and snippets.

@osima
Created June 2, 2010 23:47
Show Gist options
  • Save osima/423206 to your computer and use it in GitHub Desktop.
Save osima/423206 to your computer and use it in GitHub Desktop.
XML文書にインデントを追加するXSL
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="xml" indent="yes" encoding="UTF-8" />
<xsl:template match="@*|node()" >
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment