basic identity transformation for pretty-printing xml

This commit is contained in:
skyanth 2020-02-20 16:37:31 +01:00
parent 98936f0a40
commit 5105074511

14
xml/xslt/indent.xsl Normal file
View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0">
<!-- Basic identity transformation for pretty-printing -->
<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>