summaryrefslogtreecommitdiffhomepage
path: root/docs/xsls/dump.xsls
blob: 05bc7912524109aaa480a08a7fd1ea9371f8b457 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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(.)='']" {}
-->

}