rendre un schema deterministe pour contrer erreur : non-deterministic content model

samy sayag <[email protected]>
Newsgroups gmane.text.xml.french.tech
Message-ID <[email protected]>
Bonjour,
je suis toujours avec mes histoire de case a cocher...
cette fois le schema est bon mais le validateur W3C me dit :
Schema validating with XSV 2.10-1 of 2005/04/22 13:10:49

    * Target: [standalone schema assessment]
         (Real name: schemaForm3.1.xsd)
    * schemaDocs: file:/usr/local/XSV/xsvlog/tmpql66RWuploaded
    * The schema(s) used for schema-validation had
        1 error
    * The target was not assessed

Schema resources involved

Attempt to load a schema document from
file:///usr/local/XSV/xsvlog/tmpql66RWuploaded
 (source: command line) for
   no namespace,
    succeeded
Schema representation errors
Detected during instance validation

file:///usr/local/XSV/xsvlog/tmpql66RWuploaded:105:2: Invalid: non-deterministic content model for type FrameType: {None}:CheckBoxcb/{None}:CheckBoxcb

voici mon schema est ce que quelqu'un pourrait me dire comment le rendre deterministe ...

<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:simpleType name="nameType">
        <xs:restriction base="xs:token"/>
    </xs:simpleType>
    <xs:simpleType name="checkBoxValueType">
        <xs:restriction base="xs:byte">
            <xs:enumeration value="0"/>
            <xs:enumeration value="-1"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="enabledType">
        <xs:restriction base="xs:byte">
            <xs:enumeration value="0"/>
            <xs:enumeration value="-1"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="tb1ValueType">
        <xs:restriction base="xs:byte">
            <xs:pattern value="(\d+(;\d+)+)|(\d+)"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="tb2ValueType">
        <xs:restriction base="xs:byte">
            <xs:pattern value="\d"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="tagType">
        <xs:restriction base="xs:token">
            <xs:enumeration value="cb"/>
            <xs:enumeration value="tb1"/>
            <xs:enumeration value="tb2"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:attribute name="Name" type="nameType"/>
    <xs:attribute name="Enabled" type="enabledType"/>
    <xs:attribute name="Tag" type="tagType"/>
    <xs:complexType name="CheckBoxType">
        <xs:simpleContent>
            <xs:extension base="checkBoxValueType">
                <xs:attribute ref="Name"/>
                <xs:attribute ref="Enabled"/>
                <xs:attribute ref="Tag" fixed="cb"/>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="tb1Type">
        <xs:simpleContent>
            <xs:extension base="tb1ValueType">
                <xs:attribute ref="Name"/>
                <xs:attribute ref="Enabled"/>
                <xs:attribute ref="Tag" fixed="tb1"/>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="tb2Type">
        <xs:simpleContent>
            <xs:extension base="tb2ValueType">
                <xs:attribute ref="Name"/>
                <xs:attribute ref="Enabled"/>
                <xs:attribute ref="Tag" fixed="tb2"/>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:group name="checkBoxFrameType2">
        <xs:all>
            <xs:element name="CheckBoxcb" type="CheckBoxType" fixed="-1"/>
            <xs:element name="CheckBoxcb" type="CheckBoxType"/>
        </xs:all>
    </xs:group>
    <xs:group name="checkBoxFrameType3">
        <xs:all>
            <xs:element name="CheckBoxcb" type="CheckBoxType" fixed="-1"/>
            <xs:element name="CheckBoxcb" type="CheckBoxType"/>
            <xs:element name="CheckBoxcb" type="CheckBoxType"/>
        </xs:all>
    </xs:group>
    <xs:group name="checkBoxFrameType5">
        <xs:all>
            <xs:element name="CheckBoxcb" type="CheckBoxType" fixed="-1"/>
            <xs:element name="CheckBoxcb" type="CheckBoxType"/>
            <xs:element name="CheckBoxcb" type="CheckBoxType"/>
            <xs:element name="CheckBoxcb" type="CheckBoxType"/>
            <xs:element name="CheckBoxcb" type="CheckBoxType"/>
        </xs:all>
    </xs:group>
    <xs:group name="textBoxFrameType1">
        <xs:all>
            <xs:element name="TextBoxtb1" type="tb1Type"/>
            <xs:element name="TextBoxtb2" type="tb2Type"/>
            <xs:element name="TextBoxtb2" type="tb2Type"/>
        </xs:all>
    </xs:group>
    <xs:complexType name="FrameType">
        <xs:choice>
            <xs:element name="TextBoxtb1" type="tb1Type"/>
            <xs:group ref="textBoxFrameType1"/>
            <xs:group ref="checkBoxFrameType2"/>
            <xs:group ref="checkBoxFrameType3"/>
            <xs:group ref="checkBoxFrameType5"/>
        </xs:choice>
    </xs:complexType>
    <xs:element name="MultiPage">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Frame" type="FrameType" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>

merci d'avance

sam


 __________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.