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 : [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]