view xsls/dump.xsls @ 182:d87e97c0a3e4

*) binary target to rsync binaries; *) style fixes.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 15 Nov 2011 09:03:03 +0000
parents 1ebe107b3d7e
children be54c443235a
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(.)='']" {}
-->

}