view xsls/dump.xsls @ 112:d3e240f7157c

Inside the "directive" prologue block, addressed the vertical alignment issue via a different mean, and made default text render as multi-line.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 20 Oct 2011 13:26:11 +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(.)='']" {}
-->

}