dims        01/07/17 14:14:34

  Modified:    webapp/stylesheets/documents Tag: cocoon_20_branch
                        root2html.xsl
  Log:
  Sync with root2html.xsl from 2.1
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +14 -5     xml-cocoon2/webapp/stylesheets/documents/root2html.xsl
  
  Index: root2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/webapp/stylesheets/documents/root2html.xsl,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- root2html.xsl     2001/07/13 11:26:01     1.1.2.2
  +++ root2html.xsl     2001/07/17 21:14:33     1.1.2.3
  @@ -5,6 +5,8 @@
     version="1.0"
   >
   
  +<xsl:param name="path"/>
  +
   <xsl:template match="/root">
     <html>
       <head>
  @@ -34,16 +36,23 @@
   <xsl:template match="sidebar/link">
     <tr>
       <td>
  -      <a>
  -        <xsl:copy-of select="@href"/>
  -        <xsl:value-of select="@label"/>
  -      </a>
  +      <xsl:choose>
  +        <xsl:when test="@href=$path">
  +          <xsl:value-of select="@label"/>
  +        </xsl:when>
  +        <xsl:otherwise>
  +          <a>
  +            <xsl:copy-of select="@href"/>
  +            <xsl:value-of select="@label"/>
  +          </a>
  +        </xsl:otherwise>
  +      </xsl:choose>
       </td>
     </tr>
   </xsl:template>
   
   <xsl:template match="sidebar/separator">
  -  <hr/>
  +  <br/>
   </xsl:template>
   
   <xsl:template match="/root/document/body">
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to