Re: Invoking schema validation processors

Michael Glavassevich <[email protected]>
Newsgroups gmane.text.xml.schema.devel
Message-ID <OFEC2967E7.CF9D1207-ON85257981.005B898D-85257981.005CE2AC@ca.ibm.com>
Michael Kay <[email protected]> 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: [email protected]
E-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.