httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject cvs commit: httpd-2.0/docs/manual/style/xsl quickreference.xsl
Date Wed, 25 Dec 2002 02:25:59 GMT
kess        2002/12/24 18:25:59

  Modified:    docs/manual/style/xsl Tag: APACHE_2_0_BRANCH
                        quickreference.xsl
  Log:
  allow <br/> within <default> to increase readablity for directives
  with os dependent defaults
  
  thanks to nd for his help with xsl
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.7.2.2   +17 -5     httpd-2.0/docs/manual/style/xsl/quickreference.xsl
  
  Index: quickreference.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/quickreference.xsl,v
  retrieving revision 1.7.2.1
  retrieving revision 1.7.2.2
  diff -u -r1.7.2.1 -r1.7.2.2
  --- quickreference.xsl	11 Dec 2002 21:38:54 -0000	1.7.2.1
  +++ quickreference.xsl	25 Dec 2002 02:25:59 -0000	1.7.2.2
  @@ -49,7 +49,7 @@
                 <xsl:with-param name="directives" select="$directives"/>
               </xsl:call-template>
             </xsl:variable>
  -          
  +
             <table id="legend">
   
   <xsl:text>
  @@ -110,7 +110,7 @@
   
         </body>
       </html>
  -  </xsl:template> 
  +  </xsl:template>
   
   
     <!--                                                     -->
  @@ -145,8 +145,20 @@
           </td>
   
           <td>
  -          <xsl:value-of select="substring(substring-after(concat(default,' '),name),1,20)"/>
  -          <xsl:if test="string-length(substring-after(concat(default,' '),name)) &gt;
20">
  +          <xsl:variable name="default">
  +            <xsl:choose>
  +              <xsl:when test="count(default[count(br) &gt; 0]) &gt; 0">
  +                <xsl:value-of select="default/child::node()[count(preceding-sibling::*)
= 0]"/>
  +              </xsl:when>
  +              <xsl:otherwise>
  +                <xsl:value-of select="default"/>
  +              </xsl:otherwise>
  +            </xsl:choose>
  +          </xsl:variable>
  +
  +          <xsl:value-of select="substring(substring-after(concat($default,' '),name),1,20)"/>
  +          <xsl:if test="string-length(substring-after(concat($default,' '),name)) &gt;
20
  +                     or count(default[count(br) &gt; 0]) &gt; 0">
               <xsl:text> +</xsl:text>
             </xsl:if>
           </td>
  @@ -202,4 +214,4 @@
     </xsl:template>
     <!-- /reference-of-letter -->
   
  -</xsl:stylesheet>
  +</xsl:stylesheet>
  \ No newline at end of file
  
  
  

Mime
View raw message