mirror of
https://github.com/nginx/nginx.git
synced 2024-12-27 01:11:13 -06:00
0e8348c500
*) The first public version.
30 lines
465 B
Plaintext
30 lines
465 B
Plaintext
X:stylesheet {
|
|
|
|
X:output method="xml"
|
|
X:param indent-increment="' '";
|
|
|
|
X:template noname(indent="'
'") = "*" {
|
|
!{$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(.)='']" {}
|
|
-->
|
|
|
|
}
|