dion        02/01/23 17:28:35

  Modified:    latka/xsl/site docbook2document.xsl
  Log:
  moved anchors to before section/subsection/subsubsections so that a html link would 
display the title
  
  Revision  Changes    Path
  1.15      +4 -4      jakarta-commons/latka/xsl/site/docbook2document.xsl
  
  Index: docbook2document.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/xsl/site/docbook2document.xsl,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- docbook2document.xsl      24 Jan 2002 01:17:22 -0000      1.14
  +++ docbook2document.xsl      24 Jan 2002 01:28:35 -0000      1.15
  @@ -4,7 +4,7 @@
       Author:     Berin Loritsch ([EMAIL PROTECTED])
       Author:     Peter Donald  ([EMAIL PROTECTED])
       Author:     dIon Gillard ([EMAIL PROTECTED])
  -    Version:    $Id: docbook2document.xsl,v 1.14 2002/01/24 01:17:22 dion Exp $
  +    Version:    $Id: docbook2document.xsl,v 1.15 2002/01/24 01:28:35 dion Exp $
       FIXME:      Doesn't handle attributes of informaltable and other docbook 
elements
     -->
   
  @@ -176,24 +176,24 @@
   
           <xsl:choose>
               <xsl:when test="number($level)=1">
  +                <xsl:if test="@id"><a name="{@id}"> </a></xsl:if>
                   <section name="{title}">
  -                    <xsl:if test="@id"><a name="{@id}"> </a></xsl:if>
                       <xsl:apply-templates>
                           <xsl:with-param name="level" select="number($level)+1"/>
                       </xsl:apply-templates>
                   </section>
               </xsl:when>
               <xsl:when test="number($level)=2">
  +                <xsl:if test="@id"><a name="{@id}"> </a></xsl:if>
                   <subsection name="{title}">
  -                    <xsl:if test="@id"><a name="{@id}"> </a></xsl:if>
                       <xsl:apply-templates>
                           <xsl:with-param name="level" select="number($level)+1"/>
                       </xsl:apply-templates>
                   </subsection>
               </xsl:when>
               <xsl:otherwise>
  +                <xsl:if test="@id"><a name="{@id}"> </a></xsl:if>
                   <p><a name="{@name}"><strong><xsl:value-of 
select="title"/></strong></a><br />
  -                    <xsl:if test="@id"><a name="{@id}"> </a></xsl:if>
                       <xsl:apply-templates>
                           <xsl:with-param name="level" select="number($level)+1"/>
                       </xsl:apply-templates>
  
  
  

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

Reply via email to