BizTalk Server General - DTD to XSD - content model must be deterministic Error

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > November 2004 > DTD to XSD - content model must be deterministic Error





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author DTD to XSD - content model must be deterministic Error
Raj

2004-11-10, 5:48 pm

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>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com