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:57:50 GMT
nd          2004/05/04 14:57:50

  Modified:    docs/manual/style/xsl Tag: APACHE_2_0_BRANCH language.xsl
                        sitemap.xsl
  Log:
  prepare removing the references to allmodules.xml from sitemap
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.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.1.2.2
  retrieving revision 1.1.2.3
  diff -u -u -r1.1.2.2 -r1.1.2.3
  --- language.xsl	3 May 2004 19:41:52 -0000	1.1.2.2
  +++ language.xsl	4 May 2004 21:57:50 -0000	1.1.2.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.4.2.13  +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.4.2.12
  retrieving revision 1.4.2.13
  diff -u -u -r1.4.2.12 -r1.4.2.13
  --- sitemap.xsl	2 May 2004 23:35:48 -0000	1.4.2.12
  +++ sitemap.xsl	4 May 2004 21:57:50 -0000	1.4.2.13
  @@ -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