On Mercredi, sep 11, 2002, at 08:40 Europe/Zurich, Stefan Bodewig wrote:
> On Tue, 10 Sep 2002, Guy McArthur <[EMAIL PROTECTED]> wrote: >> Is there a DTD for the build file syntax? > > <http://jakarta.apache.org/ant/faq.html#dtd> > >> Just thinking it would be nifty to validate the build.xml within an >> editor.... > > But won't work, even with the DTD created by the example above. > > <javac fork="${javac.fork}" ...> is invalid as the parser will not be > aware of Ant properties. It won't work because it is outdated, at least it provides a basis for further editing. A DTD can't check the attribute's type/value, as in this example, and it can't check that all the required attributes are present in a valid combination, but it will at least help check the syntax, and help editors with code completion. dna -- Never underestimate the bandwidth of a station wagon full of magnetic tape. -- Andrew S. Tanenbaum -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
