view docs/xsls/dump.xsls @ 2815:304bfc6faf07

move libmd test before libmd5, this fixes wrong linking with /usr/local/lib/libmd5.so from libwww package on FreeBSD. The library uses long's instead of int32_t's in MD5_CTX and on 64-bit platforms its MD5_CTX is bigger than defined in <md5.h>
author Igor Sysoev <igor@sysoev.ru>
date Thu, 07 May 2009 19:18:10 +0000
parents 551102312e19
children 2c863b4a8f93
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(.)='']" {}
-->

}