diff options
Diffstat (limited to 'docs/xsls/dump.xsls')
-rw-r--r-- | docs/xsls/dump.xsls | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/xsls/dump.xsls b/docs/xsls/dump.xsls new file mode 100644 index 000000000..6b39966a0 --- /dev/null +++ b/docs/xsls/dump.xsls @@ -0,0 +1,29 @@ +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(.)='']" {}
+-->
+
+}
|