You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-user@xml.apache.org by Michael McCormick <mm...@adaptisinc.com> on 2003/12/26 23:27:58 UTC

Compiling Schema Error

Hi,

I am receiving some errors when I attempt to compile a schema using the
scomp tool.  I have created a schema using XML Spy based on some XML data
that I have received.  I am now trying to compile that schema into
interfaces using the XML Beans tool scomp.  Scomp is failing with the
following errors.  Any thoughts or help would be appreciated?

C:\xml-xmlbeans\v1\bin>scomp.cmd X12toXML\837-3-A1-EDIFECS.xsd
837-3-A1-EDIFECS.xsd:0: error: The facet enumeration does not apply to the
base type T=boolean@http://www.w3.org/2001/XMLSchema
837-3-A1-EDIFECS.xsd:0: error: The facet enumeration does not apply to the
base type T=boolean@http://www.w3.org/2001/XMLSchema
Time to build schema type system: 1.25 seconds
BUILD FAILED

Thanks.
Mike

The Schema thatI am trying to compile:
<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XMLSPY v2004 rel. 2 U (http://www.xmlspy.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
	<xs:element name="Acknowledgment_Requested" type="xs:boolean"/>
	<xs:element name="Address_Information">
		<xs:complexType mixed="true">
			<xs:choice minOccurs="0" maxOccurs="unbounded">
				<xs:element ref="Address_Information"/>
			</xs:choice>
		</xs:complexType>
	</xs:element>
	<xs:element name="Administrative_Communications_Contact">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Contact_Function_Code"/>
				<xs:element ref="Name"/>
				<xs:element
ref="Communication_Number_Qualifier"/>
				<xs:element ref="Communication_Number"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Application_Receivers_Code" type="xs:string"/>
	<xs:element name="Application_Senders_Code" type="xs:string"/>
	<xs:element name="Authorization_Information" type="xs:string"/>
	<xs:element name="Authorization_Information_Qualifier"
type="xs:byte"/>
	<xs:element name="Beginning_of_Hierarchical_Transaction">
		<xs:complexType>
			<xs:sequence>
				<xs:element
ref="Hierarchical_Structure_Code"/>
				<xs:element
ref="Transaction_Set_Purpose_Code"/>
				<xs:element ref="Reference_Identification"/>
				<xs:element ref="Date"/>
				<xs:element ref="Time"/>
				<xs:element ref="Transaction_Type_Code"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="City_Name" type="xs:string"/>
	<xs:element name="Communication_Number" type="xs:long"/>
	<xs:element name="Communication_Number_Qualifier" type="xs:string"/>
	<xs:element name="Component_Element_Separator" type="xs:string"/>
	<xs:element name="Contact_Function_Code" type="xs:string"/>
	<xs:element name="Date">
		<xs:simpleType>
			<xs:restriction base="xs:int">
				<xs:enumeration value="20020926"/>
				<xs:enumeration value="20030926"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="Entity_Identifier_Code">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="40"/>
				<xs:enumeration value="41"/>
				<xs:enumeration value="71"/>
				<xs:enumeration value="85"/>
				<xs:enumeration value="IL"/>
				<xs:enumeration value="PR"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="Entity_Type_Qualifier">
		<xs:simpleType>
			<xs:restriction base="xs:byte">
				<xs:enumeration value="1"/>
				<xs:enumeration value="2"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="Functional_Group_Header">
		<xs:complexType>
			<xs:sequence>
				<xs:element
ref="Functional_Identifier_Code"/>
				<xs:element ref="Application_Senders_Code"/>
				<xs:element
ref="Application_Receivers_Code"/>
				<xs:element ref="Date"/>
				<xs:element ref="Time"/>
				<xs:element ref="Group_Control_Number"/>
				<xs:element ref="Responsible_Agency_Code"/>
				<xs:element
ref="Version_Release_Industry_Identifier_Code"/>
				<xs:element ref="Health_Care_Claim"/>
				<xs:element ref="Functional_Group_Trailer"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Functional_Group_Trailer">
		<xs:complexType>
			<xs:sequence>
				<xs:element
ref="Number_of_Transaction_Sets_Included"/>
				<xs:element ref="Group_Control_Number"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Functional_Identifier_Code" type="xs:string"/>
	<xs:element name="Geographic_Location">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="City_Name"/>
				<xs:element ref="State_or_Province_Code"/>
				<xs:element ref="Postal_Code"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Group_Control_Number" type="xs:string"/>
	<xs:element name="Health_Care_Claim">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Transaction_Set_Header"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Hierarchical_Child_Code">
		<xs:simpleType>
			<xs:restriction base="xs:boolean">
				<xs:enumeration value="0"/>
				<xs:enumeration value="1"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="Hierarchical_ID_Number">
		<xs:simpleType>
			<xs:restriction base="xs:byte">
				<xs:enumeration value="1"/>
				<xs:enumeration value="2"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="Hierarchical_Level">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Hierarchical_ID_Number"/>
				<xs:element
ref="Hierarchical_Parent_ID_Number" minOccurs="0"/>
				<xs:element ref="Hierarchical_Level_Code"/>
				<xs:element ref="Hierarchical_Child_Code"/>
				<xs:element ref="Provider_Information"
minOccurs="0"/>
				<xs:element ref="Loop_2010AA"
minOccurs="0"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Hierarchical_Level_Code">
		<xs:simpleType>
			<xs:restriction base="xs:byte">
				<xs:enumeration value="20"/>
				<xs:enumeration value="22"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="Hierarchical_Parent_ID_Number" type="xs:boolean"/>
	<xs:element name="Hierarchical_Structure_Code" type="xs:byte"/>
	<xs:element name="Identification_Code">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="00120"/>
				<xs:enumeration value="00435"/>
				<xs:enumeration value="030005074A"/>
				<xs:enumeration value="1135"/>
				<xs:enumeration value="12345"/>
				<xs:enumeration value="222004433"/>
				<xs:enumeration value="33012722"/>
				<xs:enumeration value="B9993722"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="Identification_Code_Qualifier">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="46"/>
				<xs:enumeration value="MI"/>
				<xs:enumeration value="PI"/>
				<xs:enumeration value="XX"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="Individual_or_Organizational_Name">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Entity_Identifier_Code"/>
				<xs:element ref="Entity_Type_Qualifier"/>
				<xs:element
ref="Name_Last_or_Organization_Name"/>
				<xs:element ref="Name_First" minOccurs="0"/>
				<xs:element ref="Name_Middle"
minOccurs="0"/>
				<xs:element
ref="Identification_Code_Qualifier"/>
				<xs:element ref="Identification_Code"/>
				<xs:element
ref="Administrative_Communications_Contact" minOccurs="0"/>
				<xs:element ref="Address_Information"
minOccurs="0"/>
				<xs:element ref="Geographic_Location"
minOccurs="0"/>
				<xs:element ref="Loop_2011A" minOccurs="0"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Interchange_Control_Header">
		<xs:complexType>
			<xs:choice maxOccurs="unbounded">
				<xs:element
ref="Authorization_Information_Qualifier"/>
				<xs:element
ref="Authorization_Information"/>
				<xs:element
ref="Security_Information_Qualifier"/>
				<xs:element ref="Security_Information"/>
				<xs:element ref="Interchange_ID_Qualifier"/>
				<xs:element ref="Interchange_Sender_ID"/>
				<xs:element ref="Acknowledgment_Requested"/>
				<xs:element
ref="Component_Element_Separator"/>
				<xs:element ref="Functional_Group_Header"/>
				<xs:element
ref="Interchange_Control_Number"/>
				<xs:element
ref="Interchange_Control_Standards_Identifier"/>
				<xs:element
ref="Interchange_Control_Trailer"/>
				<xs:element
ref="Interchange_Control_Version_Number"/>
				<xs:element ref="Interchange_Date"/>
				<xs:element ref="Interchange_Receiver_ID"/>
				<xs:element ref="Interchange_Time"/>
				<xs:element ref="Usage_Indicator"/>
			</xs:choice>
		</xs:complexType>
	</xs:element>
	<xs:element name="Interchange_Control_Number" type="xs:string"/>
	<xs:element name="Interchange_Control_Standards_Identifier"
type="xs:string"/>
	<xs:element name="Interchange_Control_Trailer">
		<xs:complexType>
			<xs:sequence>
				<xs:element
ref="Number_of_Included_Functional_Groups"/>
				<xs:element
ref="Interchange_Control_Number"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Interchange_Control_Version_Number"
type="xs:short"/>
	<xs:element name="Interchange_Date" type="xs:short"/>
	<xs:element name="Interchange_ID_Qualifier" type="xs:string"/>
	<xs:element name="Interchange_Receiver_ID" type="xs:string"/>
	<xs:element name="Interchange_Sender_ID" type="xs:string"/>
	<xs:element name="Interchange_Time" type="xs:short"/>
	<xs:element name="Loop_1000A">
		<xs:complexType>
			<xs:sequence>
				<xs:element
ref="Individual_or_Organizational_Name" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Loop_2000A">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Hierarchical_Level"
maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Loop_2010AA">
		<xs:complexType>
			<xs:sequence>
				<xs:element
ref="Individual_or_Organizational_Name"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Loop_2011A">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Reference_Identification"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Name" type="xs:string"/>
	<xs:element name="Name_First">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="JANE"/>
				<xs:enumeration value="JOHN"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="Name_Last_or_Organization_Name" type="xs:string"/>
	<xs:element name="Name_Middle">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="J"/>
				<xs:enumeration value="S"/>
				<xs:enumeration value="T"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="Number_of_Included_Functional_Groups"
type="xs:string"/>
	<xs:element name="Number_of_Included_Segments" type="xs:byte"/>
	<xs:element name="Number_of_Transaction_Sets_Included"
type="xs:string"/>
	<xs:element name="Postal_Code" type="xs:short"/>
	<xs:element name="Provider_Code" type="xs:string"/>
	<xs:element name="Provider_Information">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Provider_Code"/>
				<xs:element
ref="Reference_Identification_Qualifier"/>
				<xs:element ref="Reference_Identification"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Reference_Identification">
		<xs:complexType mixed="true">
			<xs:choice minOccurs="0" maxOccurs="unbounded">
				<xs:element ref="Reference_Identification"/>
				<xs:element
ref="Reference_Identification_Qualifier"/>
			</xs:choice>
		</xs:complexType>
	</xs:element>
	<xs:element name="Reference_Identification_Qualifier">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="87"/>
				<xs:enumeration value="DD"/>
				<xs:enumeration value="EI"/>
				<xs:enumeration value="ZZ"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="Responsible_Agency_Code" type="xs:string"/>
	<xs:element name="Security_Information" type="xs:string"/>
	<xs:element name="Security_Information_Qualifier" type="xs:byte"/>
	<xs:element name="State_or_Province_Code" type="xs:string"/>
	<xs:element name="Time">
		<xs:simpleType>
			<xs:restriction base="xs:int">
				<xs:enumeration value="09320000"/>
				<xs:enumeration value="10370000"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="Transaction_Set_Control_Number" type="xs:int"/>
	<xs:element name="Transaction_Set_Header">
		<xs:complexType>
			<xs:choice maxOccurs="unbounded">
				<xs:element
ref="Transaction_Set_Identifier_Code"/>
				<xs:element
ref="Transaction_Set_Control_Number"/>
				<xs:element
ref="Beginning_of_Hierarchical_Transaction"/>
				<xs:element ref="Reference_Identification"/>
				<xs:element ref="Loop_1000A"/>
				<xs:element ref="Loop_2000A"/>
				<xs:element ref="Transaction_Set_Trailer"/>
			</xs:choice>
		</xs:complexType>
	</xs:element>
	<xs:element name="Transaction_Set_Identifier_Code" type="xs:short"/>
	<xs:element name="Transaction_Set_Purpose_Code" type="xs:byte"/>
	<xs:element name="Transaction_Set_Trailer">
		<xs:complexType>
			<xs:sequence>
				<xs:element
ref="Number_of_Included_Segments"/>
				<xs:element
ref="Transaction_Set_Control_Number"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Transaction_Type_Code" type="xs:string"/>
	<xs:element name="Usage_Indicator" type="xs:string"/>
	<xs:element name="Version_Release_Industry_Identifier_Code"
type="xs:string"/>
</xs:schema>






__________________________________ 
Confidentiality Notice: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain information
that is confidential privileged and/or exempt from disclosure under
applicable law.  Any unauthorized review, use, disclosure or distribution is
prohibited.  If you are not the intended recipient, please contact the
sender by reply e-mail and destroy all copies of the original message.
Thank you.

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/