glenn 01/07/04 15:13:33
Modified: src/taglib taglib-doc.xsl tld11.xsl
Log:
Use JSP1.2 elements for taglib
Revision Changes Path
1.5 +5 -5 jakarta-taglibs/src/taglib/taglib-doc.xsl
Index: taglib-doc.xsl
===================================================================
RCS file: /home/cvs/jakarta-taglibs/src/taglib/taglib-doc.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- taglib-doc.xsl 2001/07/01 15:48:48 1.4
+++ taglib-doc.xsl 2001/07/04 22:13:32 1.5
@@ -33,7 +33,7 @@
HTML <title> : TLD <taglib><info></info></taglib>
HTML page title <h1>: TLD <taglib><info></info></taglib>
- - Sometimes the <shortname> value of the TLD is used as the taglib name or
+ - Sometimes the <short-name> value of the TLD is used as the taglib name or
the prefix for various minutiae, other times the <info> line is used.
Depends on the context, as you can see below.
-->
@@ -117,7 +117,7 @@
descriptor in /WEB-INF/web.xml like this:
<pre>
<taglib>
- <taglib-uri>http://jakarta.apache.org/taglibs/<xsl:value-of
select="shortname"/>-<xsl:value-of select="tlibversion"/></taglib-uri>
+ <taglib-uri>http://jakarta.apache.org/taglibs/<xsl:value-of
select="short-name"/>-<xsl:value-of select="tlibversion"/></taglib-uri>
<taglib-location><xsl:value-of
select="taglib-location"/></taglib-location>
</taglib>
</pre>
@@ -126,7 +126,7 @@
<p>To use the tags from this library in your JSP pages, add the following
directive at the top of each page: </p>
<pre>
-<%@ taglib uri="http://jakarta.apache.org/taglibs/<xsl:value-of
select="shortname"/>-<xsl:value-of select="tlibversion"/>"
prefix="<xsl:value-of select="prefix"/>" %>
+<%@ taglib uri="http://jakarta.apache.org/taglibs/<xsl:value-of
select="short-name"/>-<xsl:value-of select="tlibversion"/>"
prefix="<xsl:value-of select="prefix"/>" %>
</pre>
<p>where "<i><xsl:value-of select="prefix"/></i>" is the tag
name prefix you wish to use for tags from this library. You can change
@@ -180,7 +180,7 @@
</tr>
<tr>
<td><b>Tag Body</b></td>
- <td colspan="5"><xsl:value-of select="bodycontent"/></td>
+ <td colspan="5"><xsl:value-of select="body-content"/></td>
</tr>
<tr>
<td><b>Restrictions</b></td>
@@ -408,7 +408,7 @@
<!-- Footer Section (Examples, Javadoc, History) -->
<a name="examples"><h3>Examples</h3></a>
<p>See the example application
- <xsl:value-of select="shortname"/>-examples.war for examples of the usage
+ <xsl:value-of select="short-name"/>-examples.war for examples of the usage
of the tags from this custom tag library.</p>
<a name="javadocs"><h3>Java Docs</h3></a>
1.3 +12 -12 jakarta-taglibs/src/taglib/tld11.xsl
Index: tld11.xsl
===================================================================
RCS file: /home/cvs/jakarta-taglibs/src/taglib/tld11.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- tld11.xsl 2001/07/02 02:02:25 1.2
+++ tld11.xsl 2001/07/04 22:13:33 1.3
@@ -26,14 +26,14 @@
<!-- Process an entire tag library -->
<xsl:template match="taglib">
<taglib>
- <xsl:if test="tlibversion">
- <tlibversion><xsl:value-of select="tlibversion"/></tlibversion>
+ <xsl:if test="tlib-version">
+ <tlib-version><xsl:value-of select="tlib-version"/></tlib-version>
</xsl:if>
- <xsl:if test="jspversion">
- <jspversion><xsl:value-of select="jspversion"/></jspversion>
+ <xsl:if test="jsp-version">
+ <jsp-version><xsl:value-of select="jsp-version"/></jsp-version>
</xsl:if>
- <xsl:if test="shortname">
- <shortname><xsl:value-of select="shortname"/></shortname>
+ <xsl:if test="short-name">
+ <short-name><xsl:value-of select="short-name"/></short-name>
</xsl:if>
<xsl:if test="uri">
<uri><xsl:value-of select="uri"/></uri>
@@ -51,14 +51,14 @@
<xsl:if test="name">
<name><xsl:value-of select="name"/></name>
</xsl:if>
- <xsl:if test="tagclass">
- <tagclass><xsl:value-of select="tagclass"/></tagclass>
+ <xsl:if test="tag-class">
+ <tag-class><xsl:value-of select="tag-class"/></tag-class>
</xsl:if>
- <xsl:if test="teiclass">
- <teiclass><xsl:value-of select="teiclass"/></teiclass>
+ <xsl:if test="tei-class">
+ <tei-class><xsl:value-of select="tei-class"/></tei-class>
</xsl:if>
- <xsl:if test="bodycontent">
- <bodycontent><xsl:value-of select="bodycontent"/></bodycontent>
+ <xsl:if test="body-content">
+ <body-content><xsl:value-of select="body-content"/></body-content>
</xsl:if>
<xsl:apply-templates select="attribute"/>
</tag>