W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2004

X3D schema validation problem

From: Helka Folch <hfolch@free.fr>
Date: Wed, 30 Jun 2004 16:45:21 +0200
Message-ID: <40E2D201.3070205@free.fr>
To: xmlschema-dev@w3.org

I'm having problems validating X3D scenes with respect to the X3D schema 

With the schema validator included in the evaluation version of Saxonica 
(http://www.saxonica.com/), I get the following error when checking the 
X3D schema :

 Cannot specify 'minOccurs' on a 'choice' compositor within a group
  Cannot specify 'maxOccurs' on a 'choice' compositor within a group

The problem seems to concern a 'choice' in a group element  that has 
minOccurs and maxOccurs attributes.
It is the following structure in the X3D schema that seems to cause the 

    <xsd:group name="TextureBackgroundChildContentModel">
            <xsd:documentation>Child-node content model corresponding to 
TextureBackground.  Can contain up to six Texture nodes (ImageTexture, 
MovieTexture, MultiTexture or PixelTexture).  Each child texture must 
have a different containerField for topTexture, bottomTexture, 
leftTexture, rightTexture, frontTexture and backTexture.</xsd:documentation>
        <xsd:choice minOccurs="0" maxOccurs="6">
            <xsd:element ref="ImageTexture"/>
            <xsd:element ref="MovieTexture"/>
            <xsd:element ref="MultiTexture"/>
            <xsd:element ref="PixelTexture"/>

I thought that minOccurs and maxOccurs attributs were allowed on choice 
elements, or is that not so? Is it an error in the X3D schema?
What schema validator do you recommend me to use for validating X3D?

Many thanks,

Helka Folch
Received on Wednesday, 30 June 2004 10:45:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:22 UTC