Mercurial > hg > nginx-site
comparison xsls/dump.xsls @ 0:61e04fc01027
Initial import of the nginx.org website.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 11 Aug 2011 12:19:13 +0000 |
parents | |
children | 1ebe107b3d7e |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:61e04fc01027 |
---|---|
1 X:stylesheet { | |
2 | |
3 X:output method="xml" | |
4 X:param indent-increment="' '"; | |
5 | |
6 X:template noname(indent="'
'") = "*" { | |
7 !{$indent} | |
8 | |
9 X:if "name()='xsl:template'" { | |
10 !{$indent} | |
11 } | |
12 | |
13 X:copy { | |
14 X:copy-of "@*" | |
15 !!( indent = "concat($indent, $indent-increment)" ); | |
16 X:if "./* " { !{$indent} } | |
17 } | |
18 } | |
19 | |
20 | |
21 X:template = "comment()|processing-instruction()" { | |
22 X:copy; | |
23 } | |
24 | |
25 <!-- | |
26 X:template ="text()[normalize-space(.)='']" {} | |
27 --> | |
28 | |
29 } |