view docs/xsls/dump.xsls @ 5519:22c249dac7c1

SPDY: the SETTINGS frame should be allocated from sc->pool. There is no reason to allocate it from connection pool that more like just a bug especially since ngx_http_spdy_settings_frame_handler() already uses sc->pool to free a chain.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 15 Jan 2014 17:16:38 +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(.)='']" {}
-->

}