Added stylesheet to show the ant build file targets.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352541 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nicola Ken Barozzi 2002-04-28 21:11:34 +00:00
parent 97f0c9353c
commit 9ae2f77f1d
1 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,43 @@
<?xml version="1.0" ?>
<!-- Create documentation from an ant build file -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="html" indent="yes"/>
<xsl:template match="project">
<html>
<body>
<h1><xsl:value-of select="./@name"/></h1>
<pre><xsl:value-of select="./description"/></pre>
<br />
<xsl:apply-templates select="target"/>
</body>
</html>
</xsl:template >
<xsl:template match="*[ @description | @taskname]">
<!-- use taskname if it exists, otherwise use the task element name-->
<li><b>
<xsl:if test="not(@taskname)">
<xsl:value-of select="name()"/>
</xsl:if>
<xsl:value-of select="@taskname"/></b>
<xsl:text> </xsl:text>
<xsl:value-of select="@description"/>
</li>
</xsl:template>
<xsl:template match="//target">
<xsl:if test = "not(starts-with(@name,'-'))">
<p>
<b><xsl:value-of select="@name"/></b> -
<xsl:value-of select="@description"/>
<ul><xsl:apply-templates select="./*"/></ul>
</p>
</xsl:if>
</xsl:template>
<xsl:template match="*"/>
</xsl:stylesheet>