Mercurial > hg > nginx-site
annotate xsls/varindex.xsls @ 2970:203f32f53734
Linux packages: removed Ubuntu 18.04 'bionic' due to EOL.
author | Konstantin Pavlov <thresh@nginx.com> |
---|---|
date | Wed, 31 May 2023 14:50:50 -0700 |
parents | 1a7a1c79142e |
children |
rev | line source |
---|---|
1156 | 1 <!-- |
2 Copyright (C) Nginx, Inc. | |
3 --> | |
4 | |
5 X:stylesheet { | |
6 | |
1195
1a7a1c79142e
Added indentation to variables index.
Ruslan Ermilov <ru@nginx.com>
parents:
1156
diff
changeset
|
7 X:output method="xml" doctype-system="../../../dtd/article.dtd" encoding="utf-8" |
1a7a1c79142e
Added indentation to variables index.
Ruslan Ermilov <ru@nginx.com>
parents:
1156
diff
changeset
|
8 indent="yes"; |
1156 | 9 |
10 <!-- | |
11 -- a current directory of a XSLT script is where the script is stored, | |
12 -- but not where XSLT processor has been started to run the script | |
13 --> | |
14 X:param XML = "'../xml'"; | |
15 | |
16 X:param LANG; | |
17 | |
18 X:template = "modules" { | |
19 <article name="{document(concat($XML, '/i18n.xml')) | |
20 /i18n/text[@lang = $LANG]/item[@id='varindex']}" | |
21 link="/{$LANG}/docs/varindex.html" | |
22 lang="{$LANG}"> | |
23 <section> | |
24 <para> | |
25 <varlinks> | |
26 !! "module"; | |
27 </varlinks> | |
28 </para> | |
29 </section> | |
30 </article> | |
31 } | |
32 | |
33 X:template = "module" { | |
34 X:var module="@name" | |
35 X:for-each "document(@name)//tag-name/var" { | |
36 <link doc="{$module}" id="{../@id}">!!;</link> | |
37 } | |
38 } | |
39 | |
40 } |