|
|
@@ -11,10 +11,10 @@ |
|
|
|
<h3>Description</h3> |
|
|
|
<p>Process a set of documents via XSLT.</p> |
|
|
|
<p>This is useful for building views of XML based documentation, |
|
|
|
or in generating code.</p> |
|
|
|
or for generating code.</p> |
|
|
|
<p><b>Note:</b> This task depends on external libraries not included in the Ant distribution. |
|
|
|
See <a href="../install.html#librarydependencies">Library Dependencies</a> for more information.</p> |
|
|
|
<p>It is possible to refine the set of files that are being copied. This can be |
|
|
|
<p>It is possible to refine the set of files that are being processed. This can be |
|
|
|
done with the <i>includes</i>, <i>includesfile</i>, <i>excludes</i>, <i>excludesfile</i> and <i>defaultexcludes</i> |
|
|
|
attributes. With the <i>includes</i> or <i>includesfile</i> attribute you specify the files you want to |
|
|
|
have included by using patterns. The <i>exclude</i> or <i>excludesfile</i> attribute is used to specify |
|
|
@@ -52,7 +52,7 @@ inclusion/exclusion of files works, and how to write patterns.</p> |
|
|
|
<tr> |
|
|
|
<td valign="top">extension</td> |
|
|
|
<td valign="top">desired file extension to be used for the targets. If not |
|
|
|
specified, the default is "html".</td> |
|
|
|
specified, the default is ".html".</td> |
|
|
|
<td align="center" valign="top">No</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
@@ -171,15 +171,18 @@ nested <code><classpath></code>, as well - that is, a |
|
|
|
<blockquote> |
|
|
|
<pre> |
|
|
|
<style basedir="doc" destdir="build/doc" |
|
|
|
extension="html" style="style/apache.xsl"/></pre> |
|
|
|
extension=".html" style="style/apache.xsl"/></pre> |
|
|
|
<h4>Using XSL parameters</h4> |
|
|
|
<pre><style basedir="doc" destdir="build/doc" |
|
|
|
extension="html" style="style/apache.xsl"> |
|
|
|
<param name="date" expression="'07-01-2000'"/> |
|
|
|
</style></pre> |
|
|
|
<p>This will replace an xsl:param definition<xsl:param name="date"></xsl:param> |
|
|
|
with the text value 07-01-2000 </p> |
|
|
|
</blockquote> |
|
|
|
extension=".html" style="style/apache.xsl"> |
|
|
|
<param name="date" expression="07-01-2000"/> |
|
|
|
</style></pre> |
|
|
|
|
|
|
|
<p>Then if you declare a global parameter "date" with the top-level |
|
|
|
element <xsl:param name="date"/>, the variable |
|
|
|
<code>$date</code> will subsequently have the value 07-01-2000. |
|
|
|
</p> |
|
|
|
</blockquote> |
|
|
|
<hr> |
|
|
|
<p align="center">Copyright © 2000,2001 Apache Software Foundation. All rights |
|
|
|
Reserved.</p> |
|
|
|