
I was using oXygen to take a look at the ant-build-docbook.xml file from the DocBook Ant distribution. http://www.cs.put.poznan.pl/dweiss/site/projects/ant-docbook-styler/download... oXygen is telling me that <available> can't be a child of <and> inside <condition>. The ant manual seems to contradiction that assertion: http://ant.apache.org/manual/CoreTasks/condition.html Why? -- http://chris.chiasson.name/

Hello, <oXygen/> includes an Ant DTD file in [oXygen-install-folder]/frameworks/ant generated with the Ant target called antstructure. This DTD should define all the task names and their attributes supported by that Ant version but it seems the generated DTD is not complete. You can find attached a corrected ant.dtd file able to validate ant-build-docbook.xml with the exception of custom tasks like fop, xep and LastModifiedMillis defined by taskdef elements. A custom task can have any name and any attributes so if you want to validate also the custom task elements of an Ant buildfile you have to add their definitions manually to ant.dtd. We will include this updated version of ant.dtd also in <oXygen/>. Regards, Sorin Chris Chiasson wrote:
I was using oXygen to take a look at the ant-build-docbook.xml file from the DocBook Ant distribution.
http://www.cs.put.poznan.pl/dweiss/site/projects/ant-docbook-styler/download...
oXygen is telling me that <available> can't be a child of <and> inside <condition>. The ant manual seems to contradiction that assertion:
http://ant.apache.org/manual/CoreTasks/condition.html
Why?

Thank you. That was most helpful. On 8/28/06, Sorin Ristache <sorin@oxygenxml.com> wrote:
Hello,
<oXygen/> includes an Ant DTD file in [oXygen-install-folder]/frameworks/ant generated with the Ant target called antstructure. This DTD should define all the task names and their attributes supported by that Ant version but it seems the generated DTD is not complete. You can find attached a corrected ant.dtd file able to validate ant-build-docbook.xml with the exception of custom tasks like fop, xep and LastModifiedMillis defined by taskdef elements. A custom task can have any name and any attributes so if you want to validate also the custom task elements of an Ant buildfile you have to add their definitions manually to ant.dtd. We will include this updated version of ant.dtd also in <oXygen/>.
Regards, Sorin
Chris Chiasson wrote:
I was using oXygen to take a look at the ant-build-docbook.xml file from the DocBook Ant distribution.
http://www.cs.put.poznan.pl/dweiss/site/projects/ant-docbook-styler/download...
oXygen is telling me that <available> can't be a child of <and> inside <condition>. The ant manual seems to contradiction that assertion:
http://ant.apache.org/manual/CoreTasks/condition.html
Why?
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Chris Chiasson
-
Sorin Ristache