Author: kkolinko
Date: Sat Oct 3 00:43:13 2009
New Revision: 821208
URL: http://svn.apache.org/viewvc?rev=821208&view=rev
Log:
Update tomcat-docs.xsl
1. Properly publish author names in <meta> HTML tag (it has content attribute,
not value),
and do not publish e-mails.
2. Updated copyright year.
3. Added support for "rtext" attribute on <section> tag. I plan to use it to
include release dates in changelog.xml.
Modified:
tomcat/tc6.0.x/trunk/webapps/docs/tomcat-docs.xsl
Modified: tomcat/tc6.0.x/trunk/webapps/docs/tomcat-docs.xsl
URL:
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/tomcat-docs.xsl?rev=821208&r1=821207&r2=821208&view=diff
==============================================================================
--- tomcat/tc6.0.x/trunk/webapps/docs/tomcat-docs.xsl (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/tomcat-docs.xsl Sat Oct 3 00:43:13 2009
@@ -68,8 +68,10 @@
<xsl:variable name="email">
<xsl:value-of select="@email"/>
</xsl:variable>
- <meta name="author" value="{$name}"/>
- <meta name="email" value="{$email}"/>
+ <meta name="author" content="{$name}"/>
+ <!-- Don't publish e-mail addresses
+ <meta name="email" content="{$email}"/>
+ -->
</xsl:for-each>
<style type="text/css" media="print">
.noPrint {display: none;}
@@ -154,7 +156,7 @@
<xsl:comment>PAGE FOOTER</xsl:comment>
<tr><td colspan="2">
<div align="center"><font color="{$body-link}" size="-1"><em>
- Copyright © 1999-2008, Apache Software Foundation
+ Copyright © 1999-2009, Apache Software Foundation
</em></font></div>
</td></tr>
@@ -194,9 +196,21 @@
<font color="{$banner-fg}" face="arial,helvetica.sanserif">
<a name="{$name}">
<strong><xsl:value-of select="@name"/></strong></a></font>
- </td></tr>
+ </td>
+ <xsl:if test="@rtext">
+ <!-- Additional right-aligned text cell in section heading. It is used
by changelog.xml -->
+ <td align="right" bgcolor="{$banner-bg}">
+ <font color="{$banner-fg}" face="arial,helvetica.sanserif">
+ <strong><xsl:value-of select="@rtext"/></strong></font>
+ </td>
+ </xsl:if>
+ </tr>
<!-- Section body -->
- <tr><td><blockquote>
+ <tr><td>
+ <xsl:if test="@rtext">
+ <xsl:attribute name="colspan">2</xsl:attribute>
+ </xsl:if>
+ <blockquote>
<xsl:apply-templates/>
</blockquote></td></tr>
</table>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]