update to support <rev> attribute
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 26 Feb 2008 18:21:27 +0000 (18:21 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 26 Feb 2008 18:21:27 +0000 (18:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@631321 13f79535-47bb-0310-9956-ffa450edef68

webapps/docs/changelog.xml
webapps/docs/tomcat-docs.xsl

index 798b11d..c3f266d 100644 (file)
   </properties>
 
 <body>
-<section name="Tomcat 6.0.17 (remm)">
+<section name="Tomcat Trunk ">
   <subsection name="Catalina">
      <changelog>
       <fix>ExtendedAccessLogValve cs-uri not print empty querystring (pero)
       </fix>
      </changelog>
   </subsection>
+  <subsection name="Documentation">
+     <changelog>
+      <update>Update changelog to support the &lt;rev&gt; element (fhanik)</update>
+     </changelog>
+  </subsection>
 </section>
 <section name="Tomcat 6.0.15 (remm)">
   <subsection name="General">
index 8472a26..5442e62 100644 (file)
@@ -40,6 +40,7 @@
   <xsl:param    name="project-menu"     select="'menu'"/>
   <xsl:param    name="standalone"       select="''"/>
   <xsl:param    name="buglink"          select="'http://issues.apache.org/bugzilla/show_bug.cgi?id='"/>
+  <xsl:param    name="revlink"          select="'http://svn.apache.org/viewvc?view=rev&amp;rev='"/>
 
   <!-- Defined variables (non-overrideable) -->
   <xsl:variable name="body-bg"          select="'#ffffff'"/>
       <xsl:variable name="link"><xsl:value-of select="$buglink"/><xsl:value-of select="text()"/></xsl:variable>
       <a href="{$link}"><xsl:apply-templates/></a>
   </xsl:template>
+  
+  <!-- Link to a SVN revision report -->
+  <xsl:template match="rev">
+      <xsl:variable name="link"><xsl:value-of select="$revlink"/><xsl:value-of select="text()"/></xsl:variable>
+      <a href="{$link}"><xsl:apply-templates/></a>
+  </xsl:template>
 
   <!-- Process everything else by just passing it through -->
   <xsl:template match="*|@*">