comparison xslt/dirindex.xslt @ 1085:c454373427ef

Regenerated.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 28 Feb 2014 20:12:47 +0400
parents b9db45d1433b
children 5d0cc9f886f4
comparison
equal deleted inserted replaced
1084:be1d72ba7e5f 1085:c454373427ef
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) Nginx, Inc.
4 -->
5
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3 7
4 <xsl:output doctype-system="../../../dtd/article.dtd" encoding="utf-8" method="xml"/> 8 <xsl:output method="xml" doctype-system="../../../dtd/article.dtd" encoding="utf-8"/>
5 9
6 <xsl:param select="'../xml'" name="XML"/> 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"/>
7 15
8 <xsl:param name="LANG"/> 16 <xsl:param name="LANG"/>
9 17
10 <xsl:template match="modules"> 18 <xsl:template match="modules">
19 <article name="{document(concat($XML, '/i18n.xml'))
20 /i18n/text[@lang = $LANG]/item[@id='dirindex']}" link="/{$LANG}/docs/dirindex.html" lang="{$LANG}">
21 <section>
22 <para>
23 <links>
24 <xsl:apply-templates select="module"/>
25 </links>
26 </para>
27 </section>
28 </article>
29 </xsl:template>
11 30
12 <article name="{document(concat($XML, '/i18n.xml')) /i18n/text[@lang = $LANG]/item[@id='dirindex']}" link="/{$LANG}/docs/dirindex.html" lang="{$LANG}"> 31 <xsl:template match="module">
13 32 <xsl:variable select="@name" name="module"/>
14 <section> 33 <xsl:for-each select="document(@name)/module/section/directive">
15 34 <link doc="{$module}" id="{@name}"/>
16 <para> 35 </xsl:for-each>
17 36 </xsl:template>
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 37
41 </xsl:stylesheet> 38 </xsl:stylesheet>