httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/docs/manual/style/xsl language.xsl sitemap.xsl
Date Tue, 04 May 2004 21:56:07 GMT
nd          2004/05/04 14:56:07

  Modified:    docs/manual/style/xsl language.xsl sitemap.xsl
  Log:
  prepare dropping the reference to allmodules.xml from documents
  
  Revision  Changes    Path
  1.3       +35 -0     httpd-2.0/docs/manual/style/xsl/language.xsl
  
  Index: language.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/language.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -u -r1.2 -r1.3
  --- language.xsl	3 May 2004 19:19:14 -0000	1.2
  +++ language.xsl	4 May 2004 21:56:07 -0000	1.3
  @@ -103,6 +103,9 @@
   <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>
   
  @@ -275,6 +278,28 @@
   
   <!-- ==================================================================== -->
   <!-- <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                                         -->
   <!-- ==================================================================== -->
   <xsl:template match="/language-list" mode="desc">
  @@ -416,6 +441,16 @@
           <xsl:element name="xsl:variable">
               <xsl:attribute name="name">doclang</xsl:attribute>
               <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>
  
  
  
  1.17      +5 -2      httpd-2.0/docs/manual/style/xsl/sitemap.xsl
  
  Index: sitemap.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/sitemap.xsl,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -u -r1.16 -r1.17
  --- sitemap.xsl	2 May 2004 22:55:20 -0000	1.16
  +++ sitemap.xsl	4 May 2004 21:56:07 -0000	1.17
  @@ -160,7 +160,10 @@
       </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 -->
  @@ -170,7 +173,7 @@
   <!-- 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">
  
  
  

Mime
View raw message