Well readers, here is another update from Mike Kay just to whet your appetites
> I've now implemented a ValidatingReader that implements XMLReader and >recognizes the Apache-defined XMLReader properties that are passed >between Ant and Xerces, so that Saxon can now be used to implement >both the xmlvalidate and schemavalidate tasks. >This will be released in Saxon-EE 9.3. > >Michael Kay Graham (esel) Heath -----Original Message----- From: Stefan Bodewig [mailto:[email protected]] Sent: Monday, May 10, 2010 12:02 PM To: [email protected] Subject: Re: using <xmlvalidate> task with XML Schema 1.1 and Saxon On 2010-05-10, Heath, Graham <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
