tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r821215 - /tomcat/tc5.5.x/trunk/container/webapps/docs/tomcat-docs.xsl
Date Sat, 03 Oct 2009 01:53:54 GMT
Author: kkolinko
Date: Sat Oct  3 01:53:54 2009
New Revision: 821215

URL: http://svn.apache.org/viewvc?rev=821215&view=rev
Log:
Update tomcat-docs.xsl
It is backport 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 plan to use it to include
release dates in changelog.xml.

Modified:
    tomcat/tc5.5.x/trunk/container/webapps/docs/tomcat-docs.xsl

Modified: tomcat/tc5.5.x/trunk/container/webapps/docs/tomcat-docs.xsl
URL: http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/webapps/docs/tomcat-docs.xsl?rev=821215&r1=821214&r2=821215&view=diff
==============================================================================
--- tomcat/tc5.5.x/trunk/container/webapps/docs/tomcat-docs.xsl (original)
+++ tomcat/tc5.5.x/trunk/container/webapps/docs/tomcat-docs.xsl Sat Oct  3 01:53:54 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>
     </head>
 
@@ -222,9 +224,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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message