Problems with SMIL 2.0 XSD

Hi there,

I tried to validate a SMIL 2.0 file against the XML schema from the 
specification using Apache Xerces. There are some problems:

1. Error (smil20-language.xsd 408:39): s4s-att-not-allowed: Attribute 
'minOccurs' cannot appear in element 'choice'.
2. Error (smil20-language.xsd 408:39): s4s-att-not-allowed: Attribute 
'maxOccurs' cannot appear in element 'choice'.
3. Error (smil20-language.xsd 491:34): s4s-att-not-allowed: Attribute 
'minOccurs' cannot appear in element 'choice'.
4. Error (smil20-language.xsd 491:34): s4s-att-not-allowed: Attribute 
'maxOccurs' cannot appear in element 'choice'.
5. Error (smil20-language.xsd 500:40): s4s-att-not-allowed: Attribute 
'minOccurs' cannot appear in element 'choice'.
6. Error (smil20-language.xsd 500:40): s4s-att-not-allowed: Attribute 
'maxOccurs' cannot appear in element 'choice'.
7. Error (xml-mod.xsd 12:64): s4s-att-not-allowed: Attribute 'use' 
cannot appear in element 'attribute'.

All of these are about global definitions. The XML Schema Primer says in 
<http://www.w3.org/TR/xmlschema-0/#OccurrenceConstraints>:
"Note that neither  minOccurs,  maxOccurs, nor use  may appear in the 
declarations of global elements and attributes."
-- 
Johannes Koch
In te domine speravi; non confundar in aeternum.
                             (Te Deum, 4th cent.)

Received on Friday, 18 November 2005 15:26:29 UTC