morgand 01/08/22 08:53:01
Modified: src/doc/stylesheets taglibs.xsl
Log:
in the news, lib names will now link to the documentation
Revision Changes Path
1.10 +53 -2 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.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- taglibs.xsl 2001/07/15 21:05:27 1.9
+++ taglibs.xsl 2001/08/22 15:53:01 1.10
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Content Stylesheet for Taglibs Documentation -->
-<!-- $Id: taglibs.xsl,v 1.9 2001/07/15 21:05:27 glenn Exp $ -->
+<!-- $Id: taglibs.xsl,v 1.10 2001/08/22 15:53:01 morgand Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
@@ -14,6 +14,8 @@
<xsl:variable name="body-link" select="'#023264'"/>
<xsl:variable name="banner-bg" select="'#023264'"/>
<xsl:variable name="banner-fg" select="'#ffffff'"/>
+ <xsl:variable name="docDir">http://jakarta.apache.org/taglibs/doc</xsl:variable>
+
<xsl:param name="prefix"></xsl:param>
<!-- Process an entire document into an HTML page -->
<xsl:template match="document">
@@ -298,10 +300,59 @@
</td>
<td bgcolor="#CCCCCC">
<xsl:if test="@libname">
- <font size="-1">[<xsl:value-of select="@libname"/>]</font>
+ <font size="-1"><xsl:call-template name="libURL"/></font>
</xsl:if>
<font size="-1"><xsl:apply-templates/></font></td>
</tr>
+ </xsl:template>
+
+ <xsl:template name="libURL">
+ <xsl:choose>
+
+ <xsl:when test="@libname = 'DBTags'">
+ <xsl:call-template name="libURLTemplate">
+ <xsl:with-param name="libname">dbtags</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+
+ <xsl:when test="@libname = 'UltraDev'">
+ <xsl:call-template name="libURLTemplate">
+ <xsl:with-param name="libname">ultradev4</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+
+ <xsl:when test="@libname = 'Log'">
+ <xsl:call-template name="libURLTemplate">
+ <xsl:with-param name="libname">log</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+
+ <xsl:when test="@libname = 'IO'">
+ <xsl:call-template name="libURLTemplate">
+ <xsl:with-param name="libname">io</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+
+ <xsl:when test="@libname = 'XTags'">
+ <xsl:call-template name="libURLTemplate">
+ <xsl:with-param name="libname">xtags</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+
+ <xsl:when test="@libname = 'Taglibs'">
+ [Taglibs]
+ </xsl:when>
+
+ <xsl:otherwise>
+ <xsl:call-template name="libURLTemplate"/>
+ </xsl:otherwise>
+
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="libURLTemplate">
+ <xsl:param name="libname" select="@libname"/>
+ [<a href="{$docDir}/{$libname}-doc/intro.html"><xsl:value-of
select="@libname"/></a>]
</xsl:template>
<xsl:template match="tagindex">