Improve the generated TLD doc for the binary distro (remove site related bits conditionally, correct a couple of URLs).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/taglibs/proper/rdc/trunk@734030 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/taglibs-rdc/src/util/taglibs20-doc.xsl b/taglibs-rdc/src/util/taglibs20-doc.xsl
index 42c4b98..bc89d2f 100755
--- a/taglibs-rdc/src/util/taglibs20-doc.xsl
+++ b/taglibs-rdc/src/util/taglibs20-doc.xsl
@@ -132,8 +132,10 @@
</xsl:for-each>
<!-- End Additional TOC sections -->
<li><a href="#examples">Examples</a></li>
- <li><a href="#javadocs">Javadocs</a></li>
- <li><a href="#history">Revision History</a></li>
+ <xsl:if test="$generationtarget = 'xdoc'">
+ <li><a href="#javadocs">Javadocs</a></li>
+ <li><a href="#history">Revision History</a></li>
+ </xsl:if>
<xsl:if test="developers-notes">
<li><a href="#developers-notes">Developers' Notes</a></li>
</xsl:if>
@@ -210,17 +212,19 @@
<!-- Footer Section (Examples, Javadoc, History) -->
<a name="examples"><h3>Examples</h3></a>
<p>See the example application
- <xsl:value-of select="short-name"/>-examples.war for examples of the usage
+ taglibs-<xsl:value-of select="short-name"/>-examples.war for examples of the usage
of the tags from this custom tag library.</p>
- <a name="javadocs"><h3>Java Docs</h3></a>
- <p>Java programmers can view the java class documentation for this tag
- library as <a href="apidocs/index.html">javadocs</a>.</p>
+ <xsl:if test="$generationtarget = 'xdoc'">
+ <a name="javadocs"><h3>Java Docs</h3></a>
+ <p>Java programmers can view the java class documentation for this tag
+ library as <a href="apidocs/index.html">javadocs</a>.</p>
- <a name="history"><h3>Revision History</h3></a>
- <p>Review the complete <a href="changes.html">revision history</a> of
- this tag library.</p>
-
+ <a name="history"><h3>Revision History</h3></a>
+ <p>Review the complete <a href="changes-report.html">revision history</a> of
+ this tag library.</p>
+ </xsl:if>
+
<!-- developers' notes, if any -->
<xsl:apply-templates select="developers-notes"/>