You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ah...@apache.org on 2005/09/04 03:18:45 UTC

svn commit: r267533 - in /maven/maven-1/plugins/trunk/faq: src/plugin-resources/faq.jsl xdocs/changes.xml

Author: aheritier
Date: Sat Sep  3 18:18:38 2005
New Revision: 267533

URL: http://svn.apache.org/viewcvs?rev=267533&view=rev
Log:
MPFAQ-15 : Adding a "top" link beside each answer
Patch submitted by : Lukas Theussl
Patch reviewed by : Arnaud Heritier

Modified:
    maven/maven-1/plugins/trunk/faq/src/plugin-resources/faq.jsl
    maven/maven-1/plugins/trunk/faq/xdocs/changes.xml

Modified: maven/maven-1/plugins/trunk/faq/src/plugin-resources/faq.jsl
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/faq/src/plugin-resources/faq.jsl?rev=267533&r1=267532&r2=267533&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/faq/src/plugin-resources/faq.jsl (original)
+++ maven/maven-1/plugins/trunk/faq/src/plugin-resources/faq.jsl Sat Sep  3 18:18:38 2005
@@ -3,7 +3,7 @@
 <!--
  * ========================================================================
  *
- * Copyright 2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -52,7 +52,6 @@
             </ol>
           </x:forEach>
         </section>
-
         <jsl:applyTemplates trim="true" />
       </body>
     </document>
@@ -81,7 +80,10 @@
 
   <jsl:template match="answer">
     <dd>
-      <jsl:applyTemplates trim="true" />
+        <j:set var="top"><x:expr select="../../../@title"/></j:set>
+        <j:set var="_top">#<doc:escapeNameToken value="${top}"/></j:set>
+        <div class="xright"><a href="${_top}">[top]</a></div>
+        <jsl:applyTemplates trim="true" />
     </dd>
   </jsl:template> 
 

Modified: maven/maven-1/plugins/trunk/faq/xdocs/changes.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/faq/xdocs/changes.xml?rev=267533&r1=267532&r2=267533&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/faq/xdocs/changes.xml (original)
+++ maven/maven-1/plugins/trunk/faq/xdocs/changes.xml Sat Sep  3 18:18:38 2005
@@ -24,6 +24,7 @@
   <body>
     <release version="1.4.1-SNAPSHOT" date="in SVN">
       <action dev="aheritier" type="fix" issue="MPFAQ-16" due-to="Lukas Theussl">FAQ plugin does not produce valid XHTML 1.0 Transitional.</action>
+      <action dev="aheritier" type="add" issue="MPFAQ-15" due-to="Lukas Theussl">Adding a "top" link beside each answer.</action>
       <action dev="dion" type="update" issue="MPFAQ-14" due-to="florent ramiere">Document .fml extension requirement</action>
       <action dev="aheritier" type="fix" issue="MPFAQ-11" due-to="Lukas Theussl">Questions' font is same size or smaller than answers' one. Xdoc plugin &lt; 1.9.2 required.</action>
       <action dev="aheritier" type="fix">The question is like a link because the anchor shouldn't enclose the question.</action>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org