Mercurial > hg > nginx-site
annotate xsls/link.xsls @ 519:e23d718ac865
A link to CHANGES for 1.3 corrected.
author | Maxim Konovalov <maxim@nginx.com> |
---|---|
date | Mon, 21 May 2012 15:15:17 +0000 |
parents | 5a3362234a4d |
children | be54c443235a |
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 |
491
5a3362234a4d
If text of the link given by URL is not provided, the URL is used.
Ruslan Ermilov <ru@nginx.com>
parents:
423
diff
changeset
|
5 X:template = "link[@url]" { |
5a3362234a4d
If text of the link given by URL is not provided, the URL is used.
Ruslan Ermilov <ru@nginx.com>
parents:
423
diff
changeset
|
6 <a href="{@url}"> |
5a3362234a4d
If text of the link given by URL is not provided, the URL is used.
Ruslan Ermilov <ru@nginx.com>
parents:
423
diff
changeset
|
7 X:if "count(node()) != 0" { !!; } else { !{@url} } |
5a3362234a4d
If text of the link given by URL is not provided, the URL is used.
Ruslan Ermilov <ru@nginx.com>
parents:
423
diff
changeset
|
8 </a> |
5a3362234a4d
If text of the link given by URL is not provided, the URL is used.
Ruslan Ermilov <ru@nginx.com>
parents:
423
diff
changeset
|
9 } |
52
666e85596e3c
Added support for <link url="..."> which should eventually replace
Ruslan Ermilov <ru@nginx.com>
parents:
32
diff
changeset
|
10 |
106
56457a474903
If text of the link is not provided, the @id is used.
Ruslan Ermilov <ru@nginx.com>
parents:
57
diff
changeset
|
11 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
|
12 <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
|
13 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
|
14 </a> |
56457a474903
If text of the link is not provided, the @id is used.
Ruslan Ermilov <ru@nginx.com>
parents:
57
diff
changeset
|
15 } |
57
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
16 |
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
17 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
|
18 <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
|
19 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
|
20 !!; |
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
|
21 } 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
|
22 !{ 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
|
23 } |
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
|
24 </a> |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
25 } |
57
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
26 |
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
27 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
|
28 <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
|
29 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
|
30 </a> |
57
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
31 } |
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
32 |
423
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
33 X:template = "links" { |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
34 X:for-each "link", X:sort "@id" { |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
35 <a href="{substring-before(@doc, '.xml')}.html#{@id}">!{@id}</a> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
36 <br/> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
37 } |
57
12f1de4539b4
Initial English translation of ngx_http_core_module.
Ruslan Ermilov <ru@nginx.com>
parents:
52
diff
changeset
|
38 } |
423
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
39 |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
375
diff
changeset
|
40 } |