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 synopsis.xsl
Date Tue, 08 Oct 2002 02:20:33 GMT
nd          2002/10/07 19:20:33

  Modified:    docs/manual/style/lang en.xml
               docs/manual/style/xsl synopsis.xsl
  Log:
  context list information are now taken from
  $lang.xml file. the module file holds the
  *untranslated* "server config", "virtual host" etc.
  
  Revision  Changes    Path
  1.5       +6 -0      httpd-2.0/docs/manual/style/lang/en.xml
  
  Index: en.xml
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/lang/en.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- en.xml	18 Sep 2002 14:28:48 -0000	1.4
  +++ en.xml	8 Oct 2002 02:20:33 -0000	1.5
  @@ -39,6 +39,12 @@
    <message name="status">Status</message>
    <message name="module">Module</message>
   
  + <!-- Used in directive context lists -->
  + <message name="serverconfig">server config</message>
  + <message name="virtualhost">virtual host</message>
  + <message name="directory">directory</message>
  + <message name="htaccess">.htaccess</message>
  +
    <!-- Used for directive lists -->
    <message name="directives">Directives</message>
    <message name="directive">Directive</message>
  
  
  
  1.4       +21 -1     httpd-2.0/docs/manual/style/xsl/synopsis.xsl
  
  Index: synopsis.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/synopsis.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- synopsis.xsl	7 Oct 2002 15:17:25 -0000	1.3
  +++ synopsis.xsl	8 Oct 2002 02:20:33 -0000	1.4
  @@ -365,7 +365,27 @@
     <!-- Each entry is separeted with a comma               -->
     <!--                                                    -->
     <xsl:template match="context">
  -    <xsl:value-of select="."/>
  +    <xsl:choose>
  +      <xsl:when test="normalize-space(.) = 'server config'">
  +        <xsl:value-of select="$messages/message[@name='serverconfig']"/>
  +      </xsl:when>
  +      <xsl:when test="normalize-space(.) = 'virtual host'">
  +        <xsl:value-of select="$messages/message[@name='virtualhost']"/>
  +      </xsl:when>
  +      <xsl:when test="normalize-space(.) = 'directory'">
  +        <xsl:value-of select="$messages/message[@name='directory']"/>
  +      </xsl:when>
  +      <xsl:when test="normalize-space(.) = '.htaccess'">
  +        <xsl:value-of select="$messages/message[@name='htaccess']"/>
  +      </xsl:when>
  +
  +      <xsl:otherwise> <!-- error -->
  +        <xsl:message terminate="yes">
  +          unknown context: <xsl:value-of select="." />
  +        </xsl:message>
  +      </xsl:otherwise>
  +    </xsl:choose>
  +
       <xsl:if test="position() != last()">
         <xsl:text>, </xsl:text>
       </xsl:if>
  
  
  

Mime
View raw message