diff --git a/docs/manual/CoreTasks/style.html b/docs/manual/CoreTasks/style.html index 37a67ee7d..de184d734 100644 --- a/docs/manual/CoreTasks/style.html +++ b/docs/manual/CoreTasks/style.html @@ -186,8 +186,8 @@ element is used to perform Entity and URI resolution.

expression - XSL expression to be placed into the param. To pass a text - value into the style sheet it needs to be escaped using single quotes. + Text value to be placed into the param.
+ Was originally intended to be an XSL expression. Yes diff --git a/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java b/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java index 9cfbb75cc..afba587ba 100644 --- a/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java +++ b/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java @@ -609,7 +609,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger { /** The parameter name */ private String name = null; - /** The parameter's XSL expression */ + /** The parameter's value */ private String expression = null; /** @@ -622,10 +622,9 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger { } /** - * The XSL expression for the parameter value - * - * @param expression the XSL expression representing the - * parameter's value. + * The parameter value + * NOTE : was intended to be an XSL expression. + * @param expression the parameter's value. */ public void setExpression(String expression) { this.expression = expression; @@ -645,10 +644,10 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger { } /** - * Get the parameter expression + * Get the parameter's value * - * @return the parameter expression - * @exception BuildException if the expression is not set. + * @return the parameter value + * @exception BuildException if the value is not set. */ public String getExpression() throws BuildException { if (expression == null) {