MPFAQ-15 : Adding a "top" link beside each answer

Patch submitted by : Lukas Theussl
Patch reviewed by : Arnaud Heritier

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@267533 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier committed 2005-09-04 01:18:38 +00:00
1 parent 849c2c6233
commit 2949d03f62
2 files changed
+6 -3

No files matched your search

+5 -3
View File
@@ -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>