craigmcc 2002/08/03 10:45:47
Modified: doc/stylesheets userGuide.xsl
Log:
Take advantage of XSLT's sorting ability to ensure that attribute lists and
tag lists are always documented in alphabetical order. Thanks for the
patch!
PR: 11435
Submitted by: Steve Byrne <sbb at penguinis.org>
Revision Changes Path
1.6 +6 -2 jakarta-struts/doc/stylesheets/userGuide.xsl
Index: userGuide.xsl
===================================================================
RCS file: /home/cvs/jakarta-struts/doc/stylesheets/userGuide.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- userGuide.xsl 16 Feb 2002 16:12:56 -0000 1.5
+++ userGuide.xsl 3 Aug 2002 17:45:47 -0000 1.6
@@ -184,6 +184,7 @@
<th>Description</th>
</tr>
<xsl:for-each select="tag">
+ <xsl:sort select="name"/>
<tr>
<td align="center">
<xsl:variable name="name">
@@ -200,7 +201,9 @@
</blockquote>
</td></tr>
</table>
- <xsl:apply-templates select="tag"/>
+ <xsl:apply-templates select="tag">
+ <xsl:sort select="name"/>
+ </xsl:apply-templates>
</xsl:template>
<!-- Process an individual tag -->
@@ -241,6 +244,7 @@
<th>Description</th>
</tr>
<xsl:for-each select="attribute">
+ <xsl:sort select="name"/>
<tr>
<td align="center">
<xsl:value-of select="name"/>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>