You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Green Cap <gr...@hotmail.com> on 2002/11/14 19:47:20 UTC
Why is the generated ANT DTD missing attributes for core tasks?
According to the ANT manual, ANT has a core task called "fail"
Now "fail" has 3 attributes which are
"message", "if", & "unless".
I generate an ANT DTD using
<antstructure output="project.dtd"/>
My question is, Why doesn't the "fail" element contain those 3 attributes in
the project.dtd file?
Instead it contains the following attributes:
id, loops, source, duration
(By the way my computer only has one version of ANT which is 1.5)
<!-----copied from the project.dtd file ---->
<!ELEMENT fail EMPTY>
<!ATTLIST fail
id ID #IMPLIED
loops CDATA #IMPLIED
source CDATA #IMPLIED
duration CDATA #IMPLIED>
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Why is the generated ANT DTD missing attributes for core tasks?
Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 14 Nov 2002, Green Cap <gr...@hotmail.com> wrote:
> <!-----copied from the project.dtd file ---->
> <!ELEMENT fail EMPTY>
> <!ATTLIST fail
> id ID #IMPLIED
> loops CDATA #IMPLIED
> source CDATA #IMPLIED
> duration CDATA #IMPLIED>
This is the not the DTD for the <fail> task, but for the nested <fail>
element in <sound>.
DTDs just don't give us enough flexibility to describe Ant's syntax
properly.
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>