The min/maxOccurs attributes can't appear on <choice> inside <group>
definitions. The error was reported by Xerces with schema validation
on, and I found the relevant part of the schema for schemas. I'll post
it next week when I'm back from holiday :)
>>> [log in to unmask] 12/29/04 4:23 PM >>>
Andy -- the use of max and min with Choice is used all over the world,
for example
<choice minOccurs="2"maxOccurs="2">
<element name="x"/>
<element name="y"/>
<element name="z"/>
<element name="w"/>
</xsd:choice>
means pick 2 from x,y,z,w
Did this get flagged by your editor?
In MODS we have several instances of
choice maxOccurs="unbounded"
--Ray
----- Original Message -----
From: "Andrew E Switala" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Tuesday, December 21, 2004 6:25 PM
Subject: [MODS] MADS bug report
> In the definition of "additionalElements" (line 177), <xsd:choice>
> cannot have attributes. The min/maxOccurs attributes should be moved
to
> the definition of "madsType" (line 76):
> <xsd:group ref="additionalElements" minOccurs="0"
> maxOccurs="unbounded"/>
>
> --Andy
|