You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2008/05/27 23:09:46 UTC

svn commit: r660708 - in /velocity/tools/trunk/xdocs: site.dvsl struts.userguide.xml

Author: nbubna
Date: Tue May 27 14:09:46 2008
New Revision: 660708

URL: http://svn.apache.org/viewvc?rev=660708&view=rev
Log:
handle section anchors the same as subsection ones

Modified:
    velocity/tools/trunk/xdocs/site.dvsl
    velocity/tools/trunk/xdocs/struts.userguide.xml

Modified: velocity/tools/trunk/xdocs/site.dvsl
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/xdocs/site.dvsl?rev=660708&r1=660707&r2=660708&view=diff
==============================================================================
--- velocity/tools/trunk/xdocs/site.dvsl (original)
+++ velocity/tools/trunk/xdocs/site.dvsl Tue May 27 14:09:46 2008
@@ -258,13 +258,9 @@
  *  process a documentation section
  *#
 #match( "section" )
-<a name="$attrib.name"></a>##
 <div class="section">##
-#if( $attrib.href )
-<a href="$attrib.href"><h2>$attrib.name</h2></a>
-#else
-<h2>$attrib.name</h2>
-#end
+<a name="$!attrib.name.replace(' ','_')"#*
+  *##if( $attrib.href ) href="$attrib.href"#end><h2>$attrib.name</h2></a>
   $context.applyTemplates("*")
 </div>
 #end

Modified: velocity/tools/trunk/xdocs/struts.userguide.xml
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/xdocs/struts.userguide.xml?rev=660708&r1=660707&r2=660708&view=diff
==============================================================================
--- velocity/tools/trunk/xdocs/struts.userguide.xml (original)
+++ velocity/tools/trunk/xdocs/struts.userguide.xml Tue May 27 14:09:46 2008
@@ -55,14 +55,14 @@
         <p><strong>Table of Contents</strong></p>
         <ol>
           <li><a href="#Background">Background</a></li>
-          <li><a href="#Model 2 Architecture">Model 2 Architecture</a></li>
+          <li><a href="#Model_2_Architecture">Model 2 Architecture</a></li>
           <li><a href="#Installation">Installation</a></li>
-          <li><a href="#Rendering the View">Rendering the View</a>
+          <li><a href="#Rendering_the_View">Rendering the View</a>
             <ol>
-                <li><a href="#Velocity Template Language">Velocity Template Language</a></li>
-                <li><a href="#Exposing Data">Exposing Data</a></li>
-                <li><a href="#Access to Servlet Resources">Access to Servlet Resources</a></li>
-                <li><a href="#Access to Struts Framework Resources">Access to Struts Framework Resources</a></li>
+                <li><a href="#Velocity_Template_Language">Velocity Template Language</a></li>
+                <li><a href="#Exposing_Data">Exposing Data</a></li>
+                <li><a href="#Access_to_Servlet_Resources">Access to Servlet Resources</a></li>
+                <li><a href="#Access_to_Struts_Framework_Resources">Access to Struts Framework Resources</a></li>
             </ol>
           </li>
         </ol>