view docs/xsls/dump.xsls @ 5582:545a4d393e2f

Resolver: properly handle connect() failures. If initial attempt to connect() the UDP socket failed, e.g. due to network unreachable, no further attempts were made.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 20 Feb 2014 17:27:09 +0400
parents 2c863b4a8f93
children
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(.)='']" {}
-->

}