Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-beta1
-
None
-
jre 1.4.1 on win2k
Description
In xwork.xml, parameter values are specified as text elements. In validation xml files, they are specified as text attributes. e.g.:
xwork.xml:
...
<param name="myParam">
myValue
</param>
...
xwork-validation.xml:
...
<param name="myParam" value="myValue"/>
...
It'd be nice if they were consistent. I'm in favor of changing xwork-validator-1.0.dtd to have param values specified as text elements. That way, complicated expressions are more readable. Furthermore, if you create a new validator that uses a scripting language, you'll have more room to work with. I know you could just use a CDATA expression, but I think changing the dtd is cleaner.