Bug in the Ant schema

Hi, With oXygen 13.2, when opening an existing Ant build script (or when creating a new one from scratch), if in a target we have an 'ant' task with some property: <project basedir="." default="dist" name="prj"> <target name="dist"> <ant> <property name="n" value="v"/> </ant> </target> </project> then oXygen complains that: E [Xerces] The content of element type "ant" must match "EMPTY". Even though this is an important feature when using DITA-OT ;-) This might be a good idea to amend the schema? Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/

Hi, We are ware of some missing elements from the ANT DTD that is bundled with Oxygen. This is a DTD that is generated by ANT itself, but even so, it's still incomplete. We do plan to improve the ANT content completion and validation at a later time, I've added your vote for this issue. If you want to tinker with the current DTD, it's located in: Oxygen/frameworks/ant/ant.dtd Regards, Adrian Adrian Buza oXygen XML Editor and Author Support Florent Georges wrote:
Hi,
With oXygen 13.2, when opening an existing Ant build script (or when creating a new one from scratch), if in a target we have an 'ant' task with some property:
<project basedir="." default="dist" name="prj"> <target name="dist"> <ant> <property name="n" value="v"/> </ant> </target> </project>
then oXygen complains that:
E [Xerces] The content of element type "ant" must match "EMPTY".
Even though this is an important feature when using DITA-OT ;-) This might be a good idea to amend the schema?
Regards,

That's what I thought. Just wanted to point this one, in case it can help. Thanks for your response, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ ----- Mail original -----
De : Adrian Buza <adrian@sync.ro> À : Florent Georges <lists@fgeorges.org> Cc : oXygen User ML <oxygen-user@oxygenxml.com> Envoyé le : Jeudi 24 mai 2012 14h30 Objet : Re: [oXygen-user] Bug in the Ant schema
Hi,
We are ware of some missing elements from the ANT DTD that is bundled with Oxygen. This is a DTD that is generated by ANT itself, but even so, it's still incomplete. We do plan to improve the ANT content completion and validation at a later time, I've added your vote for this issue. If you want to tinker with the current DTD, it's located in: Oxygen/frameworks/ant/ant.dtd
Regards, Adrian
Adrian Buza oXygen XML Editor and Author Support
Florent Georges wrote:
Hi,
With oXygen 13.2, when opening an existing Ant build script (or when creating a new one from scratch), if in a target we have an 'ant' task with some property:
<project basedir="." default="dist" name="prj"> <target name="dist"> <ant> <property name="n" value="v"/> </ant> </target> </project>
then oXygen complains that:
E [Xerces] The content of element type "ant" must match "EMPTY".
Even though this is an important feature when using DITA-OT ;-) This might be a good idea to amend the schema?
Regards,

I would also like to register a vote for improved ant support. -- -- ------------------------------------------------------------------------- Michael Anthony Smith, DeltaXML Ltd "Change control for XML" T: +44 1684 891992 E: anthony.smith@deltaxml.com http://www.deltaxml.com Registered in England 02528681 Reg. Office: Monsell House, WR8 0QN, UK On 24/05/2012 14:40, Florent Georges wrote:
That's what I thought. Just wanted to point this one, in case it can help. Thanks for your response,

On 24.5.2012 15:51, Adrian Buza wrote:
I've added another vote.
If it makes any difference, please count me in as well. I found this http://www.elovirta.com/2009/04/13/ant-relax-ng-schema/ but not tested myself. Anyway RELAX NG schema should provide much solid grounds for reasonable Ant support. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member ------------------------------------------------------------------

+1 We actually have a request from Jarno Elovirta for a RELAX NG schema for ANT. Unfortunately, I see that his github repository for 'ant-relaxng' is no longer working. Regards, Adrian Adrian Buza oXygen XML Editor and Author Support Jirka Kosek wrote:
On 24.5.2012 15:51, Adrian Buza wrote:
I've added another vote.
If it makes any difference, please count me in as well.
I found this
http://www.elovirta.com/2009/04/13/ant-relax-ng-schema/
but not tested myself. Anyway RELAX NG schema should provide much solid grounds for reasonable Ant support.
Jirka

I still have the original ant-relaxing repo locally stored. Also, I have another repository, ant-rng which is basically the same thing, but doesn't separate core and optional modules and may be a bit cleaner. If someone wants to see the RNG, I can push it to GitHub. Cheers, Jarno On 24 May, 2012, at 17:14, Adrian Buza wrote:
+1
We actually have a request from Jarno Elovirta for a RELAX NG schema for ANT. Unfortunately, I see that his github repository for 'ant-relaxng' is no longer working.
Regards, Adrian
Adrian Buza oXygen XML Editor and Author Support
Jirka Kosek wrote:
On 24.5.2012 15:51, Adrian Buza wrote:
I've added another vote.
If it makes any difference, please count me in as well.
I found this
http://www.elovirta.com/2009/04/13/ant-relax-ng-schema/
but not tested myself. Anyway RELAX NG schema should provide much solid grounds for reasonable Ant support.
Jirka
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi Jirka, Jarno suggested the RelaxNG schema to us a while ago and indeed it is a better alternative than the DTD one. But in an ANT script you can define custom tasks or use tasks which are defined in libraries which may come as extensions to the ANT libraries. What we will try to do (and maybe succeed to do this in Oxygen 14.1) will be to use functionality from the ANT Java libraries in order to parse the build files (+ to parse all dependencies of imports and includes). Probably the validation of build files will be a combination of applying a schema and performing some Java-based custom checking. Or maybe only the Java-based checking will be enough. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 5/24/2012 4:55 PM, Jirka Kosek wrote:
On 24.5.2012 15:51, Adrian Buza wrote:
I've added another vote.
If it makes any difference, please count me in as well.
I found this
http://www.elovirta.com/2009/04/13/ant-relax-ng-schema/
but not tested myself. Anyway RELAX NG schema should provide much solid grounds for reasonable Ant support.
Jirka
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Whatever the Eclipse Ant editor does would be ideal. Cheers, E. On 5/24/12 9:23 AM, "Radu Coravu" <radu_coravu@sync.ro> wrote:
Hi Jirka,
Jarno suggested the RelaxNG schema to us a while ago and indeed it is a better alternative than the DTD one.
But in an ANT script you can define custom tasks or use tasks which are defined in libraries which may come as extensions to the ANT libraries.
What we will try to do (and maybe succeed to do this in Oxygen 14.1) will be to use functionality from the ANT Java libraries in order to parse the build files (+ to parse all dependencies of imports and includes). Probably the validation of build files will be a combination of applying a schema and performing some Java-based custom checking. Or maybe only the Java-based checking will be enough.
Regards, Radu
Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 5/24/2012 4:55 PM, Jirka Kosek wrote:
On 24.5.2012 15:51, Adrian Buza wrote:
I've added another vote.
If it makes any difference, please count me in as well.
I found this
http://www.elovirta.com/2009/04/13/ant-relax-ng-schema/
but not tested myself. Anyway RELAX NG schema should provide much solid grounds for reasonable Ant support.
Jirka
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Eliot Kimber Senior Solutions Architect, RSI Content Solutions "Bringing Strategy, Content, and Technology Together" Main: 512.554.9368 www.rsicms.com www.rsuitecms.com Book: DITA For Practitioners, from XML Press, http://xmlpress.net/publications/dita/practitioners-1/
participants (8)
-
Adrian Buza
-
Eliot Kimber
-
Florent Georges
-
Jarno Elovirta
-
Jirka Kosek
-
Mark Baker
-
Michael Anthony Smith
-
Radu Coravu