ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: using <xmlvalidate> task with XML Schema 1.1 and Saxon
Date Mon, 10 May 2010 10:02:26 GMT
On 2010-05-10, Heath, Graham <graham.heath@ts.fujitsu.com> wrote:

> I include here Mike Kay's offline assessment of using saxon validate
> inside ant.

>> It looks as if this task relies on the validation engine implementing
>> XMLReader - that is, it's assuming validation is something that
>> parsers do.  I would have expected something that expects to work
>> with any validation engine to use javax.xml.vaidation.Validator,

Just to prvide some feedback - feel free to relay it back:

Ant still targets JDK 1.4 and with Ant 1.7.x we even had to maintain
backwards compatibility with Java 1.3.  The JAXP validation API has only
been introduced with the JAXP version that ships with Java5.

Given the tasks are only part of the "optional tasks" section anyway, we
could certainly introduce an additional task that wouldn't work with
Java 1.4 and in theory even allowed validation of Relax NG or other
schema descriptions.  If I find time, I may give it a try (I know the
validation API a bit via my XMLunit work) - I'm just not sure when "if I
find time" may happen, so if anybody else wants to start with it, you
are more than welcome.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message