Does maxOccurs limit the number of language versions?
What I mean is – does
<xs:element ref="attachments" minOccurs="0" **maxOccurs="1"**/>
(in XML schema), forbid:
<attachments>
<audio>
<sound url="http://bla.com/eng.mp3" xml:lang="eng"/>
<sound url="http://bla.com/ger.mp3" xml:lang="ger"/>
</audio>
[...]
And by the way, there’s also “video” and “documents” sections (apart from “audio”), so I’m not sure how this schema (a real life example, not made up!) is actually supposed to work?
Just one attachment of each type? But multiple language versions OK?
It means that there will be at most one
<attachments>element (could be less because of theminOccurs="0") at that particular point in the document. It does not constrain the content of the element; that would be done inside the definition of that element (or in its type).