O
olivier
Is someone able to explain to me if Infopath is right to recognize a "choice"
instead of a "sequence" in the following XML schema for "Correspondants" ?
Xmlspy does recognize "Correspondants" as a sequence. Infopath change from
"choice" to "sequence" only if the "minoccurs" attributes are removed for the
"Correspondants" elements (Nom, Organisme...)
<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XMLSPY v2004 rel. 3 U (http://www.xmlspy.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="IdentificationSystemeType">
<xs:sequence>
<xs:element name="NomDetaille" type="xs:string"/>
<xs:element name="InformationsDiverses" type="xs:string"/>
<xs:element name="Correspondants">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="Organisme" type="xs:string" minOccurs="0"/>
<xs:element name="Nom" type="xs:string" minOccurs="0"/>
<xs:element name="Telephone" type="xs:string" minOccurs="0"/>
<xs:element name="Telecopie" type="xs:string" minOccurs="0"/>
<xs:element name="Mail" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="GestionFicheType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="Date" type="xs:date"/>
<xs:element name="Edition" type="xs:string"/>
<xs:element name="Objet" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="FicheSysteme">
<xs:complexType>
<xs:sequence>
<xs:element name="IdentificationSysteme"
type="IdentificationSystemeType"/>
<xs:element name="GestionFiche" type="GestionFicheType"/>
</xs:sequence>
<xs:attribute name="nom" type="xs:string" use="required"/>
<xs:attribute name="version" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>
instead of a "sequence" in the following XML schema for "Correspondants" ?
Xmlspy does recognize "Correspondants" as a sequence. Infopath change from
"choice" to "sequence" only if the "minoccurs" attributes are removed for the
"Correspondants" elements (Nom, Organisme...)
<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XMLSPY v2004 rel. 3 U (http://www.xmlspy.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="IdentificationSystemeType">
<xs:sequence>
<xs:element name="NomDetaille" type="xs:string"/>
<xs:element name="InformationsDiverses" type="xs:string"/>
<xs:element name="Correspondants">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="Organisme" type="xs:string" minOccurs="0"/>
<xs:element name="Nom" type="xs:string" minOccurs="0"/>
<xs:element name="Telephone" type="xs:string" minOccurs="0"/>
<xs:element name="Telecopie" type="xs:string" minOccurs="0"/>
<xs:element name="Mail" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="GestionFicheType">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="Date" type="xs:date"/>
<xs:element name="Edition" type="xs:string"/>
<xs:element name="Objet" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="FicheSysteme">
<xs:complexType>
<xs:sequence>
<xs:element name="IdentificationSysteme"
type="IdentificationSystemeType"/>
<xs:element name="GestionFiche" type="GestionFicheType"/>
</xs:sequence>
<xs:attribute name="nom" type="xs:string" use="required"/>
<xs:attribute name="version" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>