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