Re: Invoking schema validation processors

Michael Kay <mike@saxonica.com> wrote on 01/10/2012 11:01:46 AM:

> On 10/01/2012 15:14, G. Ken Holman wrote:
> > Hi, folks!  And happy new year!
> And to you, Ken
> >
> > Can anyone help me with the invocations of Xerces and Altova W3C
> > Schema validation?  These processors are reporting problems with valid
> > XML documents and I'm hoping that with the right incantations I'll get
> > rid of the error messages.
> >
> > If I don't use external parsed general entities, everything is fine.
> > When I do, the processors are expecting to find element DTD
> > declarations that do not exist.
> I suspect that some parsers interpret the presence of a <DOCTYPE>
> declaration as an instruction to perform DTD validation, and that most
> of your problems here are that you don't actually want DTD validation
> done.

If Xerces is performing DTD and XSD validation at the same time it's
because the application (xjparse in this case) configured it [1] (by
accident?) to do so. There are multiple ways to get Xerces to do XSD
validation [2] only.

> A lot of the confusion here seems to be that DTD validation and
> XSD validation are happening at the same time and the messages from both
> are getting mixed up.
>
> Michael Kay
> Saxonica

[1] http://xerces.apache.org/xerces2-j/faq-pcfp.html#faq-3
[2] http://xerces.apache.org/xerces2-j/faq-pcfp.html#faq-4

Michael Glavassevich
XML Technologies and WAS Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

Received on Tuesday, 10 January 2012 16:55:18 UTC