cmlenz      2003/06/24 15:56:29

  Modified:    documentation/docs/skins/jakarta.apache.org/stylesheets
                        document2html.xsl
  Log:
  Improve handling of definition lists
  
  Revision  Changes    Path
  1.42      +10 -17    
jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/document2html.xsl,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- document2html.xsl 15 May 2003 10:46:02 -0000      1.41
  +++ document2html.xsl 24 Jun 2003 22:56:29 -0000      1.42
  @@ -376,35 +376,28 @@
     </xsl:template>
   
     <!-- ==================================================================== -->
  -  <!-- "ul/ol/dl/li/sl/dt/dd" elements -->
  +  <!-- "ul/ol/dl/li/dt/dd" elements -->
     <!-- ==================================================================== -->
   
  -  <xsl:template match="ul|ol|dl">
  +  <xsl:template match="ul|ol|li">
       <xsl:copy>
         <xsl:apply-templates/>
       </xsl:copy>
     </xsl:template>
  - 
  -  <xsl:template match="li">
  -    <xsl:copy><xsl:apply-templates/></xsl:copy>
  -  </xsl:template>
   
  -  <xsl:template match="sl">
  -    <ul><xsl:apply-templates/></ul>
  +  <xsl:template match="dl">
  +    <ul>
  +      <xsl:apply-templates/>
  +    </ul>
     </xsl:template>
  -
  + 
     <xsl:template match="dt">
       <li>
  -      <strong><xsl:value-of select="."/></strong>
  -      <xsl:text> - </xsl:text>
  -      <xsl:value-of select="following::dd"/>
  +      <strong><xsl:value-of select="."/></strong><br/>
  +      <xsl:apply-templates select="dd"/>
       </li>
     </xsl:template>
    
  -  <xsl:template match="dd">
  -    <!-- ignore since already used -->
  -  </xsl:template>
  -
     <!-- ==================================================================== -->
     <!-- "note" elements -->
     <!-- ==================================================================== -->
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to