view xsls/dump.xsls @ 72:0987079ad08f

- "try_files" can be specified in the "server" context, - "types_hash_bucket_size", "types_hash_max_size", "variables_hash_bucket_size", "variables_hash_max_size" are documented.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 10 Oct 2011 09:23:09 +0000
parents 61e04fc01027
children 1ebe107b3d7e
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(.)='']" {}
-->

}