From 5d847c583ec27323ea441b0210a034ed3e220cbf Mon Sep 17 00:00:00 2001
From: Peter Reilly
Date: Tue, 5 Aug 2003 16:01:10 +0000
Subject: [PATCH] =?UTF-8?q?Add=20if/unless=20attributes=20to=20=20?=
=?UTF-8?q?element=20of=20=20task=20PR:=2022044=20Obtained=20from:?=
=?UTF-8?q?=20Jens=20Submitted=20by:=09=20Peter=20Reilly=20&=20Jan=20Mat?=
=?UTF-8?q?=EF=BF=BD=EF=BF=BDrne?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275023 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/CoreTasks/style.html | 18 +-
src/etc/testcases/taskdefs/style/build.xml | 45 +++++
src/etc/testcases/taskdefs/style/data.xml | 1 +
.../testcases/taskdefs/style/printParams.xsl | 20 +++
.../tools/ant/taskdefs/XSLTProcess.java | 50 +++++-
.../apache/tools/ant/taskdefs/StyleTest.java | 154 ++++++++++++++++++
6 files changed, 283 insertions(+), 5 deletions(-)
create mode 100644 src/etc/testcases/taskdefs/style/build.xml
create mode 100644 src/etc/testcases/taskdefs/style/data.xml
create mode 100644 src/etc/testcases/taskdefs/style/printParams.xsl
create mode 100644 src/testcases/org/apache/tools/ant/taskdefs/StyleTest.java
diff --git a/docs/manual/CoreTasks/style.html b/docs/manual/CoreTasks/style.html
index de184d734..a8f11b832 100644
--- a/docs/manual/CoreTasks/style.html
+++ b/docs/manual/CoreTasks/style.html
@@ -187,9 +187,20 @@ element is used to perform Entity and URI resolution.
expression |
Text value to be placed into the param.
- Was originally intended to be an XSL expression.
+ Was originally intended to be an XSL expression. |
Yes |
+
+ if |
+ The param will only passed if this property is set. |
+ No |
+
+
+ unless |
+ The param will only passed unless this property is set. |
+ No |
+
+
outputproperty ('trax' processors only)
@@ -230,7 +241,7 @@ Used to specify factory settings.
transformer factory to use. For example
org.apache.xalan.processor.TransformerFactoryImpl
or org.apache.xalan.xsltc.trax.TransformerFactoryImpl
- or net.sf.saxon.TransformerFactoryImpl...
+ or net.sf.saxon.TransformerFactoryImpl...
No. Defaults to the JAXP lookup mechanism. |
@@ -318,7 +329,7 @@ And in Saxon 7.x:
Using factory settings
<xslt in="doc.xml" out="build/doc/output.xml"
style="style/apache.xsl">
- <factory name="org.apache.xalan.processor.TransformerFactoryImpl">
+ <factory name="org.apache.xalan.processor.TransformerFactoryImpl">
<attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
</factory>
</xslt>
@@ -329,4 +340,3 @@ Reserved.