vmassol     2003/02/09 14:29:10

  Modified:    documentation/docs/skins/jakarta.apache.org/stylesheets
                        document2html.xsl
  Log:
  Added support for labels defined in the sitemap for external resources.
  
  Revision  Changes    Path
  1.30      +16 -7     
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.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- document2html.xsl 9 Feb 2003 21:53:26 -0000       1.29
  +++ document2html.xsl 9 Feb 2003 22:29:10 -0000       1.30
  @@ -241,12 +241,21 @@
       <xsl:choose>
         <xsl:when test="name($cursite) = 'external'">
           <div id="menu">
  -          <font size="-{$level}">
  -            <a href="{$cursite/@url}" target="{@id}">
  -              <xsl:value-of select="@label"/>
  -            </a>
  -          </font>
  -          <xsl:apply-templates/>
  +          <a href="{$cursite/@url}" target="{@id}">
  +            <font size="-{$level}">
  +              <!-- Use the label from the sitemap if none has been defined
  +                   in the navigation file -->
  +              <xsl:choose>
  +                <xsl:when test="@label">
  +                  <xsl:value-of select="@label"/>
  +                </xsl:when>
  +                <xsl:otherwise>
  +                  <xsl:value-of select="$cursite/@name"/>
  +                </xsl:otherwise>
  +              </xsl:choose>
  +            </font>
  +            <xsl:apply-templates/>
  +          </a>
           </div>
         </xsl:when>
         <xsl:when test="name($cursite) = 'resource'">
  
  
  

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

Reply via email to