Mercurial > hg > nginx-site
annotate xsls/dirmap.xsls @ 2211:660229c5c92f
Documented String.bytesFrom() method in njs.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 31 Jul 2018 16:41:06 +0300 |
parents | 333eccb8a7f6 |
children |
rev | line source |
---|---|
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
432
diff
changeset
|
1 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
432
diff
changeset
|
2 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
432
diff
changeset
|
3 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
432
diff
changeset
|
4 |
432
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
5 X:stylesheet { |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
6 |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
7 X:output method="text"; |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
8 |
1200
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
9 X:strip-space elements="*"; |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
10 |
432
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
11 X:template = "link" { |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
12 !{@id} |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
13 X:text{ } |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
14 !{substring-before(@doc, '.xml')} |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
15 X:text{.html#} |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
16 !{@id} |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
17 X:text{; } |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
18 } |
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
19 |
1200
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
20 X:template = "link[@id = 'include']" { |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
21 X:text{\\} |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
22 !{@id} |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
23 X:text{ } |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
24 !{substring-before(@doc, '.xml')} |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
25 X:text{.html#} |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
26 !{@id} |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
27 X:text{; } |
432
fbba1f292dc9
Generate mapping of directives to URIs in the nginx map format.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
28 } |
1200
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
29 |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
30 X:template = "link[starts-with(@id, 'var_')]" { |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
31 X:text{$} |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
32 !{substring-after(@id, 'var_')} |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
33 X:text{ } |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
34 !{substring-before(@doc, '.xml')} |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
35 X:text{.html#} |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
36 !{@id} |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
37 X:text{; } |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
38 } |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
39 |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
40 X:template = "links | varlinks" { |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
41 X:for-each "link", X:sort "@id" { |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
42 X:if "count(preceding-sibling::link[@id = current()/@id]) = 0" { |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
43 !! "."; |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
44 } |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
45 } |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
46 } |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
47 |
333eccb8a7f6
Moved dir.map postprocessing into template.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1159
diff
changeset
|
48 } |