W3C home > Mailing lists > Public > www-smil@w3.org > October to December 2005

Problems with SMIL 2.0 XSD

From: Johannes Koch <koch@w3development.de>
Date: Fri, 18 Nov 2005 16:25:51 +0100
Message-ID: <437DF27F.4050206@w3development.de>
To: www-smil@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:53:28 GMT