You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.8 KiB
55 lines
1.8 KiB
<!-- Version 4.0 -->
|
|
|
|
|
|
<!-- prettyprint.xsl -->
|
|
<!-- This file is used internally within the splunk system to format XML output -->
|
|
<!-- Customers should not change this file without contacting Splunk Support first. -->
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
<xsl:output method="xml"/>
|
|
<xsl:param name="indent-increment" select="' '"/>
|
|
|
|
<xsl:template name="newline">
|
|
<xsl:text disable-output-escaping="yes">
|
|
</xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="comment() | processing-instruction()">
|
|
<xsl:param name="indent" select="''"/>
|
|
<xsl:call-template name="newline"/>
|
|
<xsl:value-of select="$indent"/>
|
|
<xsl:copy />
|
|
</xsl:template>
|
|
|
|
<xsl:template match="text()">
|
|
<xsl:param name="indent" select="''"/>
|
|
<xsl:call-template name="newline"/>
|
|
<xsl:value-of select="$indent"/>
|
|
<xsl:value-of select="normalize-space(.)"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="text()[normalize-space(.)='']"/>
|
|
|
|
<xsl:template match="*">
|
|
<xsl:param name="indent" select="''"/>
|
|
<xsl:call-template name="newline"/>
|
|
<xsl:value-of select="$indent"/>
|
|
<xsl:choose>
|
|
<xsl:when test="count(child::*) > 0">
|
|
<xsl:copy>
|
|
<xsl:copy-of select="@*"/>
|
|
<xsl:apply-templates>
|
|
<xsl:with-param name="indent" select="concat ($indent, $indent-increment)"/>
|
|
</xsl:apply-templates>
|
|
<xsl:call-template name="newline"/>
|
|
<xsl:value-of select="$indent"/>
|
|
</xsl:copy>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:copy-of select="."/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|
|
|