httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject cvs commit: httpd-2.0/docs/manual/style manual.xsl
Date Tue, 26 Feb 2002 19:00:01 GMT
slive       02/02/26 11:00:01

  Modified:    docs/manual/style manual.xsl
  Log:
  Changes necessary to document MPMs.
  
  In particular, we use an mpm_common file for directives shared between
  mpms.  These changes allow for an
  
  <directivesynopsis location="mpm_common">
  <name>Listen</name>
  </directivesynopsis>
  
  to be included in mpm documentation files.  Also, I added the option
  of a <modulelist>, which is used in documenting directives inside
  mpm_common.
  
  Revision  Changes    Path
  1.9       +29 -4     httpd-2.0/docs/manual/style/manual.xsl
  
  Index: manual.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/manual.xsl,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -d -b -u -r1.8 -r1.9
  --- manual.xsl	19 Feb 2002 18:33:00 -0000	1.8
  +++ manual.xsl	26 Feb 2002 19:00:01 -0000	1.9
  @@ -85,14 +85,24 @@
   
   <xsl:if test="directivesynopsis">
     <ul>
  -     <xsl:for-each select="directivesynopsis/name">
  +     <xsl:for-each select="directivesynopsis">
          <xsl:sort select="name"/>
          <xsl:variable name="name">
  -         <xsl:value-of select="."/>
  +         <xsl:value-of select="name"/>
          </xsl:variable>
          <xsl:variable name="lowername" 
            select="translate($name, $uppercase, $lowercase)" />
  -       <li><a href="#{$lowername}"><xsl:value-of select="."/></a></li>
  +       <xsl:if test="not(@location)">
  +         <li><a href="#{$lowername}"><xsl:value-of select="name"/></a></li>
  +       </xsl:if>
  +       <xsl:if test="./@location">
  +         <xsl:variable name="location">
  +           <xsl:value-of select="./@location"/>
  +         </xsl:variable>
  +         <xsl:variable name="lowerlocation" 
  +           select="translate($location, $uppercase, $lowercase)" />
  +         <li><a href="{$lowerlocation}.html#{$lowername}"><xsl:value-of
select="name"/></a></li>
  +       </xsl:if>
        </xsl:for-each>
     </ul>
   </xsl:if>
  @@ -165,6 +175,7 @@
   
     <xsl:template match="directivesynopsis">
   
  +  <xsl:if test="not(@location)">
     <xsl:variable name="name">
       <xsl:value-of select="./name"/>
     </xsl:variable>
  @@ -200,7 +211,13 @@
     <tr><td><a class="help" href="directive-dict.html#Status">Status:</a>
</td>
       <td><xsl:value-of select="/modulesynopsis/status"/></td></tr>
     <tr><td><a class="help" href="directive-dict.html#Module">Module:</a>
</td>
  -    <td><xsl:value-of select="/modulesynopsis/name"/></td></tr>
  +    <td>
  +    <xsl:if test="modulelist"><xsl:apply-templates select="modulelist"/>
  +      </xsl:if>
  +    <xsl:if test="not(modulelist)">
  +      <xsl:value-of select="/modulesynopsis/name"/>
  +    </xsl:if>
  +    </td></tr>
     <xsl:if test="compatibility">
       <tr><td><a class="help" href="directive-dict.html#Compatibility"
         >Compatibility:</a> </td>
  @@ -221,6 +238,7 @@
   </xsl:if>
   
   <hr />
  +</xsl:if> <!-- not(@location) -->
   </xsl:template> <!-- /directivesynopsis -->
   
     <xsl:template match="contextlist">
  @@ -232,6 +250,10 @@
       <xsl:if test="not(position()=last())">, </xsl:if>
     </xsl:template>
   
  +  <xsl:template match="modulelist">
  +    <xsl:apply-templates select="module"/>
  +  </xsl:template>
  +
     <xsl:template match="example">
     <blockquote>
     <table cellpadding="10"><tr><td bgcolor="#eeeeee">
  @@ -287,6 +309,9 @@
       </xsl:variable>
       <a href="{$href}.html"><xsl:value-of select="."/></a>
       </code>
  +    <xsl:if test="parent::modulelist">
  +      <xsl:if test="not(position()=last())">, </xsl:if>
  +    </xsl:if>
     </xsl:template>
   
     <!-- Process everything else by just passing it through -->
  
  
  

Mime
View raw message