view docs/xsls/dump.xsls @ 5010:829cc5872186

Variables $pipe, $request_length, $time_iso8601, and $time_local. Log module counterparts are preserved for efficiency. Based on patch by Kiril Kalchev.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 21 Jan 2013 13:15:29 +0000
parents 2c863b4a8f93
children
line wrap: on
line source

X:stylesheet {

X:output method="xml"
X:param indent-increment="'   '";

X:template noname(indent="'&#xA;'") = "*" {
        !{$indent}

        X:if "name()='xsl:template'" {
                !{$indent}
        }

        X:copy {
           X:copy-of "@*"
           !!( indent = "concat($indent, $indent-increment)" );
           X:if "./* " { !{$indent}  }
        }
}

 
X:template = "comment()|processing-instruction()" {
    X:copy;
}

<!--
X:template ="text()[normalize-space(.)='']" {}
-->

}