annotate xsls/dump.xsls @ 1082:c3a1cf38f19e

Added explicit X:text to avoid spurious whitespaces. While use of XSLScript produces no trailing whitespace and resulting link is correct, it's believed that this is by chance. XSLT produced with perl-based XSLScript replacement is slightly different (trailing whitespace after "./" isn't stripped), and X:text is required to produce proper output.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 27 Feb 2014 18:07:35 +0400
parents be54c443235a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
580
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 132
diff changeset
1 <!--
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 132
diff changeset
2 Copyright (C) Igor Sysoev
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 132
diff changeset
3 Copyright (C) Nginx, Inc.
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 132
diff changeset
4 -->
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 132
diff changeset
5
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
6 X:stylesheet {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
7
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
8 X:output method="xml"
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
9 X:param indent-increment="' '";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
10
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
11 X:template noname(indent="'&#xA;'") = "*" {
132
1ebe107b3d7e Expanded tabs into spaces.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
12 !{$indent}
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
13
132
1ebe107b3d7e Expanded tabs into spaces.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
14 X:if "name()='xsl:template'" {
1ebe107b3d7e Expanded tabs into spaces.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
15 !{$indent}
1ebe107b3d7e Expanded tabs into spaces.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
16 }
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
17
132
1ebe107b3d7e Expanded tabs into spaces.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
18 X:copy {
1ebe107b3d7e Expanded tabs into spaces.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
19 X:copy-of "@*"
1ebe107b3d7e Expanded tabs into spaces.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
20 !!( indent = "concat($indent, $indent-increment)" );
1ebe107b3d7e Expanded tabs into spaces.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
21 X:if "./* " { !{$indent} }
1ebe107b3d7e Expanded tabs into spaces.
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
22 }
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
23 }
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
24
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
25
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
26 X:template = "comment()|processing-instruction()" {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
27 X:copy;
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
28 }
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
29
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
30 <!--
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
31 X:template ="text()[normalize-space(.)='']" {}
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
32 -->
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
33
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
34 }