|
| I used Biztalk's Generate Schema and converted the DTD to the XSD
successfully(listed below).But when I try to validate the schema in the
Biztalk editor, it gives an error saying "The content model must be
deterministic. Multiple definition of element 'ORIdentifier' causes the
content model to become ambiguous"
Any thoughts?
Raj
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="ORIdentifier">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" use="required">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="RO"/>
<xs:enumeration value="PO"/>
<xs:enumeration value="OTH"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="POHeader">
<xs:complexType>
<xs:sequence>
<xs:element ref="Partner" maxOccurs="unbounded"/>
<xs:choice minOccurs="0">
<xs:element ref="ORIdentifier"/>
</xs:choice>
<xs:choice minOccurs="0">
<xs:element ref="ORIdentifier"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Partner" type="xs:string"/>
</xs:schema>
|
|