nginx/docs/xsls/dump.xsls

30 lines
501 B
Plaintext
Raw Normal View History

2012-08-30 11:05:43 -05:00
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(.)='']" {}
-->
}