Mark Lybarger wrote:
i'd like to validate some properties in my build file. we have version numbers specified as MAJOR, MINOR, and BUG and i'd like to make sure they're numeric (preferably 2 digits or under). does anyone know how i can possibly use ant's script (javascript) or something else to validate this?
write a custom schema. In XML Schema you would do something like:
<xs:attribute name="MAJOR" use="required" type="xs:int"/>
Many people find Relax NG much easier to work with, so you might want to use it.
best, -Rob
thanks
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]