You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sl...@apache.org on 2002/02/15 19:04:53 UTC

cvs commit: httpd-2.0/docs/manual/style manual.xsl

slive       02/02/15 10:04:53

  Modified:    docs/manual/style manual.xsl
  Log:
  Make the <summary> optional and change the header on nested sections.
  
  Revision  Changes    Path
  1.3       +17 -1     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.2
  retrieving revision 1.3
  diff -u -d -b -u -r1.2 -r1.3
  --- manual.xsl	15 Feb 2002 16:07:28 -0000	1.2
  +++ manual.xsl	15 Feb 2002 18:04:53 -0000	1.3
  @@ -38,7 +38,6 @@
   
   <!-- Description and module-headers -->
   
  -
   <table bgcolor="#cccccc" cellpadding="0" cellspacing="1">
   <tr><td>
   <table bgcolor="#ffffff">
  @@ -57,8 +56,10 @@
   </table>
   
   
  +<xsl:if test="summary">
   <h2>Summary</h2>
   <xsl:apply-templates select="summary"/>
  +</xsl:if>
   
   <xsl:if test="seealso">
   <p><strong>See also:</strong></p>
  @@ -97,6 +98,21 @@
   
       </body>
       </html>
  +  </xsl:template>
  +
  +  <xsl:template match="section/section">
  +   <xsl:variable name="href">
  +      <xsl:value-of select="@id"/>
  +    </xsl:variable>
  +      <!-- Section heading -->
  +    <xsl:if test="@id">
  +      <h3><a name="{$href}"><xsl:apply-templates select="./title" mode="print"/></a></h3>
  +    </xsl:if>
  +    <xsl:if test="not(@id)">
  +      <h3><xsl:apply-templates select="./title" mode="print"/></h3>
  +    </xsl:if>
  +      <!-- Section body -->
  +        <xsl:apply-templates/>
     </xsl:template>
   
   <!-- Process a documentation section -->