Mercurial > hg > nginx-site
comparison xslt/varindex.xslt @ 1158:48f411449e2b
Regenerated.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Wed, 16 Apr 2014 17:09:32 +0400 |
parents | |
children | 1c9871bbb3e7 |
comparison
equal
deleted
inserted
replaced
1157:a8a643647c76 | 1158:48f411449e2b |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <!-- | |
3 Copyright (C) Nginx, Inc. | |
4 --> | |
5 | |
6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:math="http://exslt.org/math" extension-element-prefixes="math"> | |
7 | |
8 <xsl:output method="xml" doctype-system="../../../dtd/article.dtd" encoding="utf-8"/> | |
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 <xsl:param select="'../xml'" name="XML"/> | |
15 | |
16 <xsl:param name="LANG"/> | |
17 | |
18 <xsl:template match="modules"> | |
19 <article name="{document(concat($XML, '/i18n.xml')) | |
20 /i18n/text[@lang = $LANG]/item[@id='varindex']}" link="/{$LANG}/docs/varindex.html" lang="{$LANG}"> | |
21 <section> | |
22 <para> | |
23 <varlinks> | |
24 <xsl:apply-templates select="module"/> | |
25 </varlinks> | |
26 </para> | |
27 </section> | |
28 </article> | |
29 </xsl:template> | |
30 | |
31 <xsl:template match="module"> | |
32 <xsl:variable select="@name" name="module"/> | |
33 <xsl:for-each select="document(@name)//tag-name/var"> | |
34 <link doc="{$module}" id="{../@id}"><xsl:apply-templates/></link> | |
35 </xsl:for-each> | |
36 </xsl:template> | |
37 | |
38 </xsl:stylesheet> |