Browse Source

Added <xslt> alias for the Style task to make it easier to find for users

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272416 13f79535-47bb-0310-9956-ffa450edef68
master
Erik Hatcher 23 years ago
parent
commit
9115223753
5 changed files with 13 additions and 8 deletions
  1. +3
    -0
      WHATSNEW
  2. +7
    -6
      docs/manual/CoreTasks/style.html
  3. +1
    -1
      docs/manual/coretasklist.html
  4. +1
    -1
      docs/manual/tasksoverview.html
  5. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/defaults.properties

+ 3
- 0
WHATSNEW View File

@@ -296,6 +296,9 @@ Other changes:
* <replace> supports a new replacefilterfile attribute that
automatically turns all properties of a given file into
replacefilters.
* An alias of <xslt> has been added to refer to the <style> task.


Changes from Ant 1.4 to Ant 1.4.1
===========================================


+ 7
- 6
docs/manual/CoreTasks/style.html View File

@@ -2,12 +2,12 @@

<head>
<meta http-equiv="Content-Language" content="en-us">
<title>Style Task</title>
<title>Xslt/Style Task</title>
</head>

<body>

<h2><a name="style">Style</a></h2>
<h2><a name="style">Xslt/Style</a></h2>
<h3>Description</h3>
<p>Process a set of documents via XSLT.</p>
<p>This is useful for building views of XML based documentation,
@@ -29,6 +29,7 @@ inclusion/exclusion of files works, and how to write patterns.</p>
and <code>&lt;patternset&gt;</code> elements.</p>
<p>Style supports the use of a &lt;param&gt; element which is used to pass values
to an &lt;xsl:param&gt; declaration.</p>
<p><i>&lt;style&gt; and &lt;xslt&gt; refer to the same Ant task and can be used interchangeably.</i></p>
<p>If you want to use Xalan-J 1 or XSL:P, you also need Ant's optional.jar</p>
<h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0">
@@ -187,10 +188,10 @@ nested <code>&lt;classpath&gt;</code>, as well - that is, a
&lt;style basedir=&quot;doc&quot; destdir=&quot;build/doc&quot;
extension=&quot;.html&quot; style=&quot;style/apache.xsl&quot;/&gt;</pre>
<h4>Using XSL parameters</h4>
<pre>&lt;style basedir=&quot;doc&quot; destdir=&quot;build/doc&quot;
extension=&quot;.html&quot; style=&quot;style/apache.xsl&quot;&gt;
&lt;param name=&quot;date&quot; expression=&quot;07-01-2000&quot;/&gt;
&lt;/style&gt;</pre>
<pre>&lt;xslt basedir=&quot;doc&quot; destdir=&quot;build/doc&quot;
extension=&quot;.html&quot; style=&quot;style/apache.xsl&quot;&gt;
&lt;param name=&quot;date&quot; expression=&quot;07-01-2000&quot;/&gt;
&lt;/xslt&gt;</pre>

<p>Then if you declare a global parameter &quot;date&quot; with the top-level
element &lt;xsl:param name=&quot;date&quot;/&gt;, the variable


+ 1
- 1
docs/manual/coretasklist.html View File

@@ -70,7 +70,6 @@
<a href="CoreTasks/signjar.html">SignJar</a><br>
<a href="CoreTasks/sleep.html">Sleep</a><br>
<a href="CoreTasks/sql.html">Sql</a><br>
<a href="CoreTasks/style.html">Style</a><br>
<a href="CoreTasks/tar.html">Tar</a><br>
<a href="CoreTasks/taskdef.html">Taskdef</a><br>
<a href="CoreTasks/touch.html">Touch</a><br>
@@ -83,6 +82,7 @@
<a href="CoreTasks/uptodate.html">Uptodate</a><br>
<a href="CoreTasks/waitfor.html">Waitfor</a><br>
<a href="CoreTasks/war.html">War</a><br>
<a href="CoreTasks/style.html">Xslt/Style</a><br>
<a href="CoreTasks/zip.html">Zip</a><br>
</body>
</html>

+ 1
- 1
docs/manual/tasksoverview.html View File

@@ -798,7 +798,7 @@ documentation.</p>
</tr>

<tr valign="top">
<td nowrap><a href="CoreTasks/style.html">Style</a></td>
<td nowrap><a href="CoreTasks/style.html">Xslt/Style</a></td>
<td><p>Processes a set of documents via XSLT.</p></td>
</tr>
</table>


+ 1
- 0
src/main/org/apache/tools/ant/taskdefs/defaults.properties View File

@@ -31,6 +31,7 @@ filter=org.apache.tools.ant.taskdefs.Filter
fixcrlf=org.apache.tools.ant.taskdefs.FixCRLF
patch=org.apache.tools.ant.taskdefs.Patch
style=org.apache.tools.ant.taskdefs.XSLTProcess
xslt=org.apache.tools.ant.taskdefs.XSLTProcess
touch=org.apache.tools.ant.taskdefs.Touch
signjar=org.apache.tools.ant.taskdefs.SignJar
genkey=org.apache.tools.ant.taskdefs.GenerateKey


Loading…
Cancel
Save