Rob van Oostrum wrote:
> Actually you can have a DTD define enumerations of valid values for
> attributes, which prompts the question: anybody in the mood for writing an
> Ant-aware validating XML parsers? ;-)
>
The reason you can't easily have a DTD for Ant, in general, is not to do
with attribute values and more to do with the fact that the document
itself can modify the allowable elements (i.e. taskdef can create new
elements).
Also Ant files often duplicate nested elements names with different
meanings which is not supported by a DTD either.
Conor
--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
|