]> granicus.if.org Git - apache/commitdiff
prepare dropping the reference to allmodules.xml from documents
authorAndré Malo <nd@apache.org>
Tue, 4 May 2004 21:56:07 +0000 (21:56 +0000)
committerAndré Malo <nd@apache.org>
Tue, 4 May 2004 21:56:07 +0000 (21:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103599 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/language.xsl
docs/manual/style/xsl/sitemap.xsl

index 8146d9692aa055c6d78fe9af93aef8a2f3bf0fb2..05ea6ebb96631f1263c6e3ecfa3f21c3e97214e1 100644 (file)
 <xsl:when test="$type = 'desc'">
     <xsl:apply-templates select="/language-list" mode="desc" />
 </xsl:when>
+<xsl:when test="$type = 'modlists'">
+    <xsl:apply-templates select="/language-list" mode="modlists" />
+</xsl:when>
 </xsl:choose>
 </xsl:template>
 
 </xsl:template>
 
 
+<!-- ==================================================================== -->
+<!-- <language-list>                                                      -->
+<!-- generate list of modulelists                                         -->
+<!-- ==================================================================== -->
+<xsl:template match="/language-list" mode="modlists">
+<items>
+    &lf;
+    <xsl:for-each select="lang">
+    <xsl:sort select="." />
+
+        <xsl:variable name="file" select="document(concat(
+                                          '../lang/', ., '.xml'))
+                                          /language" />
+        <item lang="{.}">
+            <xsl:text>../../../mod/allmodules</xsl:text>
+            <xsl:value-of select="$file/source-ext" />
+        </item>
+        &lf;
+    </xsl:for-each>
+</items>
+</xsl:template>
+
 <!-- ==================================================================== -->
 <!-- <language-list>                                                      -->
 <!-- generate project description                                         -->
@@ -418,6 +443,16 @@ Some targets have additional requirements:
             <xsl:value-of select="@id" />
         </xsl:element>
         &lf;
+        <xsl:element name="xsl:variable">
+            <xsl:attribute name="name">allmodules</xsl:attribute>
+            <xsl:attribute name="select">
+                <xsl:text>document('</xsl:text>
+                <xsl:if test="$type != 'manual'">../</xsl:if>
+                <xsl:text>xsl/util/allmodules.xml')</xsl:text>
+                <xsl:text>/items/item[@lang=$doclang]</xsl:text>
+            </xsl:attribute>
+        </xsl:element>
+        &lf;
     </xsl:if>
     &lf;
 
index 38c86d72f5ad217061e7472147130fe76ee2004e..8aa6d0ce45bd987027c882ce7803959a0e45a980 100644 (file)
     </ul>
       
     <!-- optional ... -->
-    <xsl:apply-templates select="modulefilelist" />&lf;
+    <xsl:if test="@id = 'modules'">
+        <xsl:apply-templates select="document($allmodules)/modulefilelist" />
+    </xsl:if>
+    &lf;
 </div> <!-- /.section -->
 </xsl:template>
 <!-- /category -->
 <!-- category/modulefilelist                                              -->
 <!-- insert module list into sitemap                                      -->
 <!-- ==================================================================== -->
-<xsl:template match="sitemap/category/modulefilelist">
+<xsl:template match="modulefilelist">
 <xsl:variable name="translist">
     <xsl:text>-</xsl:text>
     <xsl:for-each select="modulefile">