Mercurial > hg > nginx-site
annotate xsls/dirindex.xsls @ 532:480a4cd56a6a
Mentioned Netflix success story.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 08 Jun 2012 15:03:42 +0000 |
parents | 53961ccc2938 |
children | be54c443235a |
rev | line source |
---|---|
423
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1 X:stylesheet { |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
2 |
479 | 3 X:output method="xml" doctype-system="../../../dtd/article.dtd" encoding="utf-8"; |
423
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
4 |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
5 <!-- |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
6 -- a current directory of a XSLT script is where the script is stored, |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
7 -- but not where XSLT processor has been started to run the script |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
8 --> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
9 X:param XML = "'../xml'"; |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
10 |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
11 X:param LANG; |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
12 |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
13 X:template = "modules" { |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
14 <article name="{document(concat($XML, '/i18n.xml')) |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
15 /i18n/text[@lang = $LANG]/item[@id='dirindex']}" |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
16 link="/{$LANG}/docs/dirindex.html" |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
17 lang="{$LANG}"> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
18 <section> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
19 <para> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
20 <links> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
21 !! "module"; |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
22 </links> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
23 </para> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
24 </section> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
25 </article> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
26 } |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
27 |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
28 X:template = "module" { |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
29 X:var module="@name" |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
30 X:for-each "document(@name)/module/section/directive" { |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
31 <link doc="{$module}" id="{@name}"/> |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
32 } |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
33 } |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
34 |
04ad7c1b1b04
Alphabetical index of directives.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
35 } |