Mercurial > hg > nginx-site
comparison xslt/dirindex.xslt @ 424:aa00b4d476c8
Regenerated.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 24 Feb 2012 10:16:15 +0000 |
parents | |
children | b9db45d1433b |
comparison
equal
deleted
inserted
replaced
423:04ad7c1b1b04 | 424:aa00b4d476c8 |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
3 | |
4 <xsl:output doctype-system="../../../dtd/article.dtd" method="xml"/> | |
5 | |
6 <xsl:param select="'../xml'" name="XML"/> | |
7 | |
8 <xsl:param name="LANG"/> | |
9 | |
10 <xsl:template match="modules"> | |
11 | |
12 <article name="{document(concat($XML, '/i18n.xml')) /i18n/text[@lang = $LANG]/item[@id='dirindex']}" link="/{$LANG}/docs/dirindex.html" lang="{$LANG}"> | |
13 | |
14 <section> | |
15 | |
16 <para> | |
17 | |
18 <links> | |
19 | |
20 <xsl:apply-templates select="module"/> | |
21 | |
22 </links> | |
23 | |
24 </para> | |
25 | |
26 </section> | |
27 | |
28 </article> | |
29 </xsl:template> | |
30 | |
31 <xsl:template match="module"> | |
32 | |
33 <xsl:variable select="@name" name="module"/> | |
34 | |
35 <xsl:for-each select="document(@name)/module/section/directive"> | |
36 | |
37 <link doc="{$module}" id="{@name}"/> | |
38 </xsl:for-each> | |
39 </xsl:template> | |
40 | |
41 </xsl:stylesheet> |