[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-j-dev
Subject: Re: schema validation : choice with min/maxOccurs in group not allow
From: Gildas Guillemot <gguillemot () rennes ! jouve ! fr>
Date: 2003-05-26 13:49:33
[Download RAW message or body]
Sandy Gao a écrit :
>>I have a problem of XML schema validation with Xerces 2.4.0. it seems
>>that the inclusion of an element 'choice' with the attributs minOccurs
>>and/or maxOccurs into a element 'group' was not allow by xerces.
>>
>>
>
>If you look at section 3.7.2 of the structure spec [1], you'll find the
>following (right before 3.7.3)
>
>"Also note that in the first (named) case above no reference is made to
>minOccurs or maxOccurs: this is because the schema for schemas does not
>allow them on the child of <group> when it is named. This in turn is
>because the {min occurs} and {max occurs} of the particles which refer to
>the definition are what count."
>
>This is clear that min/maxOccurs attributes are not allowed on
><all/sequence/choice> that's a direct child of a named group.
>
Thanks to point me there. I've gone to this section and read it, but I
should had missed the end...
>>Whereas it validates with XMLSpy
>>
>Maybe you should complain about XMLSpy. :-)
>
I will :-)
>>and some exemples are built this way
>>in specifications.
>>
>>
>Could you be more specific? If there are such examples, the spec is in
>error.
>
in fact, this example are in the mailing list archives of the
lists.w3.org, sorry for the confusion :-/
>[1] http://www.w3.org/TR/xmlschema-1/#declare-namedModelGroup
>
Thanks a lot,
--
Gildas GUILLEMOT
Société JOUVE
Tel : 02.99.86.98.10
mail : gguillemot@rennes.jouve.fr
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic