Something might be worth clarifying in
http://jmvanel.free.fr/xsd/valid-sitemap.txt

First of all, it's always a good idea to say which version of Xerces you
are using. I'm assuming it's the latest one 2.2.1.

> Xerces gives on sitemap.xsd about 10 error messages that maybe are not
relevant.

I guess you are referring to the "cos-nonambig" ones. But as you said,

> it seems that parallel choices
> for matchType lead to what is considered "non-deterministic
> content model" by XSV

So some content modes in your schema *are* ambiguous, which is why Xerces
reports those errors. "cos-nonambig" is the official error code for such
kinds of errors. It's defined in the schema structure spec.

> It didn't find the inner complexType having a name.

I do see an error if I put the name attribute back on line 330. Are you
sure you weren't using the corrected schema when running Xerces?

> But it also found an error that no other processor found:
> maxOccurs="0" (lines 205 and 206)
> (See ANNEXES for details on running Xerces).
> I don't know if it is formally erroneous,
> but it has no common sense to specify something to occur zero time,
> better nothing at all.

I guess you had

<group ref="..." maxOccurs="0"/>

It's invalid not because maxOccurs=0, but because minOccurs = 1 < maxOccurs
= 0. (Note that the default value of minOccurs is 1.) (Also note that
minOccurs=maxOccurs=0 is allowed, which doesn't correspond to any particle
at all.)

So as you can see, Xerces is correct in every aspect. And the error code it
gives at the beginning of each error message is a good hint to find out
what caused the error.

Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]



                                                                                       
                                                
                      Jean-Marc Vanel                                                  
                                                
                      <[EMAIL PROTECTED]>        To:       [EMAIL PROTECTED]   
                                                
                                               cc:                                     
                                                
                      01/25/2003 05:12         Subject:  enhanced Xerces sample : 
Schema validation                                    
                      AM                                                               
                                                
                      Please respond to                                                
                                                
                      xerces-j-dev                                                     
                                                
                                                                                       
                                                
                                                                                       
                                                



Hello

I enhanced the Xerces sample :
samples/sax/Counter.java .
It does XML Schema validation against 1 or more external Schema(s)
(i. e. not in <?xml-styleshhet ).

The source is here:
http://jmvanel.free.fr/xsd/Counter.java
The .class is also here in same directory.

More details here:
http://jmvanel.free.fr/xsd/valid-sitemap.txt


--
Jean-Marc Vanel
[EMAIL PROTECTED]
http://jmvanel.free.fr/ ===) CV, software resources

XML Publication
http://wwbota.free.fr/XMLPublication/doc/index.html

Worldwide Botanical Knowledge Base
http://wwbota.free.fr/




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to