Author: kkolinko
Date: Sat Oct 3 02:08:13 2009
New Revision: 821220
URL: http://svn.apache.org/viewvc?rev=821220&view=rev
Log:
Update tomcat-docs.xsl
It is port of rev.821208 from tc6.0.x
1. Properly publish author names in <meta> HTML tag (it has content attribute,
not value),
and do not publish e-mails.
2. Added support for "rtext" attribute on <section> tag. I use it to include
release dates in changelog.xml.
Modified:
tomcat/trunk/webapps/docs/tomcat-docs.xsl
Modified: tomcat/trunk/webapps/docs/tomcat-docs.xsl
URL:
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/tomcat-docs.xsl?rev=821220&r1=821219&r2=821220&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/tomcat-docs.xsl (original)
+++ tomcat/trunk/webapps/docs/tomcat-docs.xsl Sat Oct 3 02:08:13 2009
@@ -69,8 +69,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;}
@@ -195,9 +197,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]