Hi all, I'm using Xerces 1.4.3, and I'm having a problem validating an XML document wrt its XML Schema.
The XML Schema defines two complexTypes: the first has some elements in an
xs:all group, and the second extends the previous adding another xs:all
group. See the attached example catalog.xsd
I edited this XML Schema with XMLSpy 4, and it appears to be valid. I also
created an XML document based on this Schema (see attached file book.xml),
and XML Spy validates it successfully wrt catalog.xsd.
Xerces, instead, does not validate the XML document: it says the XML Schema
is not correct. I used the default DOMCount example, and if I try
java dom.DOMCount -v book.xml
I get the following error:
[Error] book.xml:3:126: Schema error: ComplexType 'Book':
cos-all-limited.1.2: An "all" model group that is part of a complex type
definition must constitute the entire {content type} of the definition..
book.xml: 771 ms (6 elems, 2 attrs, 0 spaces, 96 chars)
Am I trying to do something illegal wrt the W3C specification, or is this an
implementation issue with Xerces? Does anyone have any suggestion?
TIA
Marco Sbodio
catalog.xsd
Description: Binary data
book.xml
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
