Mercurial > hg > nginx-site
annotate xsls/link.xsls @ 483:c1e4306b7b96
Removed excessive spaces around —.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 09 Apr 2012 15:00:07 +0000 |
parents | 04ad7c1b1b04 |
children | 5a3362234a4d |
rev | line source |
---|---|
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1 X:stylesheet { |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
2 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
3 X:template = "img" { <img src="{@href}"> !!; </img> } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
4 |
52
666e85596e3c
Added support for <link url="..."> which should eventually replace
Ruslan Ermilov <ru@nginx.com>
parents:
32
diff
changeset
|
5 X:template = "link[@url]" { <a href="{@url}"> !!; </a> } |
666e85596e3c
Added support for <link url="..."> which should eventually replace
Ruslan Ermilov <ru@nginx.com>
parents:
32
diff
changeset
|
6 |
106
56457a474903
If text of the link is not provided, the @id is used.
Ruslan Ermilov <ru@nginx.com>
parents:
57
diff
changeset
|
7 X:template = "link[@id and not(@doc)]" { |
56457a474903
If text of the link is not provided, the @id is used.
Ruslan Ermilov <ru@nginx.com>
parents:
57
diff
changeset
|
8 <a href="#{@id}"> |
56457a474903
If text of the link is not provided, the @id is used.
Ruslan Ermilov <ru@nginx.com>
parents:
57
diff
changeset
|
9 X:if "count(node()) != 0" { !!; } else { !{@id} } |
56457a474903
If text of the link is not provided, the @id is used.
Ruslan Ermilov <ru@nginx.com>
parents:
57
diff
changeset
|
10 </a> |
56457a474903
If text of the link is not provided, the @id is used.
Ruslan Ermilov <ru@nginx.com>
parents:
57
diff
changeset
|
11 } |
57
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
12 |
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
13 X:template = "link[@doc and not(@id)]" { |
372
978b9e3897f7
For links to documents, use the document name as the link's text by default.
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
14 <a href="{substring-before(@doc, '.xml')}.html"> |
978b9e3897f7
For links to documents, use the document name as the link's text by default.
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
15 X:if "count(node()) != 0" { |
978b9e3897f7
For links to documents, use the document name as the link's text by default.
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
16 !!; |
978b9e3897f7
For links to documents, use the document name as the link's text by default.
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
17 } else { |
978b9e3897f7
For links to documents, use the document name as the link's text by default.
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
18 !{ document(@doc)/article/@name | document(@doc)/module/@name } |
978b9e3897f7
For links to documents, use the document name as the link's text by default.
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
19 } |
978b9e3897f7
For links to documents, use the document name as the link's text by default.
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
20 </a> |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
21 } |
57
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
22 |
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
23 X:template = "link[@id and @doc]" { |
106
56457a474903
If text of the link is not provided, the @id is used.
Ruslan Ermilov <ru@nginx.com>
parents:
57
diff
changeset
|
24 <a href="{substring-before(@doc, '.xml')}.html#{@id}"> |
56457a474903
If text of the link is not provided, the @id is used.
Ruslan Ermilov <ru@nginx.com>
parents:
57
diff
changeset
|
25 X:if "count(node()) != 0" { !!; } else { !{@id} } |
56457a474903
If text of the link is not provided, the @id is used.
Ruslan Ermilov <ru@nginx.com>
parents:
57
diff
changeset
|
26 </a> |
57
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
27 } |
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
28 |
423
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
29 X:template = "links" { |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
30 X:for-each "link", X:sort "@id" { |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
31 <a href="{substring-before(@doc, '.xml')}.html#{@id}">!{@id}</a> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
32 <br/> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
33 } |
57
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
34 } |
423
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
35 |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
36 } |