[ filmil @ 03.02.2004. 20:12 ] @
Pozdrav.

Zna li neko gde se može naći DTD za build.xml koji se piše za Apache Ant?

f
[ StMilan @ 03.02.2004. 23:11 ] @
Sa ANT FAQ:
http://ant.apache.org/faq.html#dtd

Citat:

Is there a DTD that I can use to validate my build files?

An incomplete DTD can be created by the <antstructure> task - but this one has a few problems:

•It doesn't know about required attributes. Only manual tweaking of this file can help here.
•It is not complete - if you add new tasks via <taskdef> it won't know about it. See this page by Michel Casabianca for a solution to this problem. Note that the DTD you can download at this page is based on Ant 0.3.1.
•It may even be an invalid DTD. As Ant allows tasks writers to define arbitrary elements, name collisions will happen quite frequently - if your version of Ant contains the optional <test> and <junit> tasks, there are two XML elements named test (the task and the nested child element of <junit>) with different attribute lists. This problem cannot be solved; DTDs don't give a syntax rich enough to support this.


Medjutim, i pored ovoga neki ljudi su se potrudili i sami napisali DTD.
Vidi ovo:
http://www.sdv.fr/pages/casa/html/ant-dtd.en.html

A ima ih jos. Samo na googlu kazi "ant.dtd".
[ filmil @ 04.02.2004. 17:41 ] @
Citat:

Sa ANT FAQ:
http://ant.apache.org/faq.html#dtd
Citat:
An incomplete DTD can be created by the <antstructure> task - but
this one has a few problems:
Medjutim, i pored ovoga neki ljudi
su se potrudili i sami napisali DTD.
Vidi ovo:


Upravo zbog ovog prvog dela FAQ-a sam i pitao; u trenutku mi se bilo
učinilo da DTD ne postoji. Ali link koji si mi dao je prava stvar. 10x 10e6.

f