jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gl...@apache.org
Subject cvs commit: jakarta-taglibs/src/doc/stylesheets taglibs.xsl
Date Thu, 14 Jun 2001 01:43:02 GMT
glenn       01/06/13 18:43:02

  Modified:    src/doc/stylesheets taglibs.xsl
  Log:
  Updated so that href URL's can be relative so that documentation
  links work correctly both on the local file system and when uploaded
  to jakarta.apache.org/taglibs.  Updated the title to include the
  taglib name for all taglibs which have an intro.xml.
  
  Revision  Changes    Path
  1.6       +16 -6     jakarta-taglibs/src/doc/stylesheets/taglibs.xsl
  
  Index: taglibs.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/src/doc/stylesheets/taglibs.xsl,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- taglibs.xsl	2001/05/20 02:24:53	1.5
  +++ taglibs.xsl	2001/06/14 01:43:01	1.6
  @@ -1,6 +1,6 @@
   <?xml version="1.0" encoding="ISO-8859-1"?>
   <!-- Content Stylesheet for Taglibs Documentation -->
  -<!-- $Id: taglibs.xsl,v 1.5 2001/05/20 02:24:53 glenn Exp $ -->
  +<!-- $Id: taglibs.xsl,v 1.6 2001/06/14 01:43:01 glenn Exp $ -->
   
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     version="1.0">
  @@ -14,7 +14,7 @@
     <xsl:variable name="body-link" select="'#023264'"/>
     <xsl:variable name="banner-bg" select="'#023264'"/>
     <xsl:variable name="banner-fg" select="'#ffffff'"/>
  -
  +  <xsl:variable name="prefix" select="document/properties/urlprefix"/>
     <!-- Process an entire document into an HTML page -->
     <xsl:template match="document">
       <xsl:variable name="project"
  @@ -44,10 +44,10 @@
   
         <tr><td colspan="2">
           <a href="http://jakarta.apache.org">
  -          <img src="http://jakarta.apache.org/taglibs/images/jakarta-logo.gif" align="left"
border="0"/>
  +          <img src="{$prefix}images/jakarta-logo.gif" align="left" border="0"/>
           </a>
           <a href="http://jakarta.apache.org/taglibs/index.html">
  -          <img src="http://jakarta.apache.org/taglibs/images/taglibs.gif" align="right"
border="0"/>
  +          <img src="{$prefix}images/taglibs.gif" align="right" border="0"/>
           </a>
         </td></tr>
   
  @@ -91,12 +91,22 @@
             </strong></font>
           </th>
         </tr>
  -      <xsl:apply-templates/>
  +      <xsl:choose>
  +        <xsl:when test="@local='true'">
  +          <xsl:apply-templates>
  +            <xsl:with-param name="useprefix" select="$prefix"/>
  +          </xsl:apply-templates>
  +        </xsl:when>
  +        <xsl:otherwise>
  +          <xsl:apply-templates/>
  +        </xsl:otherwise>
  +      </xsl:choose>
       </table>
     </xsl:template>
   
     <!-- Process a menu item for the navigation bar -->
     <xsl:template match="item">
  +    <xsl:param name="useprefix"/>
       <tr>
         <td align="center" width="15"></td>
         <td>
  @@ -104,7 +114,7 @@
           <xsl:variable name="href">
             <xsl:value-of select="@href"/>
           </xsl:variable>
  -        <a href="{$href}"><xsl:value-of select="@name"/></a>
  +        <a href="{$useprefix}{$href}"><xsl:value-of select="@name"/></a>
           </font>
         </td>
       </tr>
  
  
  

Mime
View raw message