You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by mo...@apache.org on 2001/05/03 17:36:54 UTC
cvs commit: jakarta-taglibs/src/doc/stylesheets taglibs.xsl
morgand 01/05/03 08:36:53
Modified: src/doc/stylesheets taglibs.xsl
Log:
added styles for news and taglib descriptions
Revision Changes Path
1.3 +78 -4 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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- taglibs.xsl 2000/12/08 02:50:08 1.2
+++ taglibs.xsl 2001/05/03 15:36:46 1.3
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Content Stylesheet for Taglibs Documentation -->
-<!-- $Id: taglibs.xsl,v 1.2 2000/12/08 02:50:08 horwat Exp $ -->
+<!-- $Id: taglibs.xsl,v 1.3 2001/05/03 15:36:46 morgand Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
@@ -95,7 +95,6 @@
</table>
</xsl:template>
-
<!-- Process a menu item for the navigation bar -->
<xsl:template match="item">
<tr>
@@ -225,13 +224,11 @@
</table>
</xsl:template>
-
<!-- Process an individual paragraph -->
<xsl:template match="p">
<p><xsl:apply-templates/><br/></p>
</xsl:template>
-
<!-- Process a task list section -->
<xsl:template match="task-list">
<xsl:choose>
@@ -278,6 +275,83 @@
</td>
<td><xsl:value-of select="assigned"/></td>
</tr>
+ </xsl:template>
+
+ <xsl:template match="news">
+ <table cellpadding="2">
+ <xsl:apply-templates/>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="newsitem">
+ <tr>
+ <td bgcolor="#99FF99">
+ <b><font size="-1"><xsl:value-of select="@date"/></font></b>
+ </td>
+ <td bgcolor="#99FF99">
+ <xsl:if test="@libname">
+ <font size="-1" color="3333FF">[<xsl:value-of select="@libname"/>]</font>
+ </xsl:if>
+ <font size="-1"><xsl:apply-templates/></font></td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="tagindex">
+ <font size="-1">
+ <xsl:if test="taginfo[@state='released']">
+ <xsl:call-template name="released_tags"/>
+ </xsl:if>
+ <xsl:if test="taginfo[@state='beta']">
+ <xsl:call-template name="beta_tags"/>
+ </xsl:if>
+ <xsl:if test="taginfo[@state='develop']">
+ <xsl:call-template name="develop_tags"/>
+ </xsl:if>
+ <xsl:if test="taginfo[@state='unsupported']">
+ <xsl:call-template name="unsupported_tags"/>
+ </xsl:if>
+ </font>
+ </xsl:template>
+
+ <xsl:template name="develop_tags">
+ <font size="+1"><u>Pre-Release Tags</u></font>
+ <dl>
+ <xsl:apply-templates select="taginfo[@state='develop']">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ </dl>
+ </xsl:template>
+
+ <xsl:template name="released_tags">
+ <font size="+1"><u>Released Tags</u></font>
+ <dl>
+ <xsl:apply-templates select="taginfo[@state='released']">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ </dl>
+ </xsl:template>
+
+ <xsl:template name="beta_tags">
+ <font size="+1"><u>Beta Tags</u></font>
+ <dl>
+ <xsl:apply-templates select="taginfo[@state='beta']">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ </dl>
+ </xsl:template>
+
+ <xsl:template name="unsupported_tags">
+ <font size="+1"><u>Unsupported Tags</u></font>
+ <dl>
+ <xsl:apply-templates select="taginfo[@state='unsupported']">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ </dl>
+ </xsl:template>
+
+ <xsl:template match="taginfo">
+ <dt><b><xsl:value-of select="@name"/> Taglib</b></dt>
+ <dd><xsl:apply-templates/></dd>
</xsl:template>
<!-- Process everything else by just passing it through -->