Invalid Restriction?
Posted: Sat Aug 25, 2012 6:14 pm
The Error:
ct_05363e2b_d67c_4831_b224_7e38d9b283da
Base type: DvStringType (mlhim2.xsd)
Base type For DvStringType is DvAnyType (mlhim2.xsd):
There are a number of "datatypes" in the schema (mlhim2.xsd) and they all exhibit similar errors in the restrictions schemas similar to ccd_8057ea74_47d8_470d_b9b9_a0b9a8e3b8c0.xsd Both mlhim2.xsd and the restrictions schemas have targetNamespace="http://www.mlhim.org/xmls/mlhim2/2_3_1"
and elementFormDefault="qualified"
entries.
Any ideas where to start on this?
Thanks,
Tim
PS.My other issue re:Derivation levels was solved by setting the default parser to Saxon EE and the version to 1.1 But it hasn't passed moderation yet at the time I am posting this one.
Code: Select all
System ID: /home/tim/MLHIM/slot-example/ccd_8057ea74_47d8_470d_b9b9_a0b9a8e3b8c0.xsd
Main validation file: /home/tim/MLHIM/slot-example/ccd_8057ea74_47d8_470d_b9b9_a0b9a8e3b8c0.xsd
Engine name: Saxon-EE 9.4.0.3
Severity: fatal
Description: The content model of the complex type ct_05363e2b_d67c_4831_b224_7e38d9b283da is not a valid restriction of the content model of the type DvStringType. Restricted type allows element DvString_dv where the base type does not
Start location: 63:0
Code: Select all
<xs:complexType name="ct_05363e2b_d67c_4831_b224_7e38d9b283da">
<xs:complexContent>
<xs:restriction base="mlhim2:DvStringType">
<xs:sequence>
<xs:element name="DvString_dv" minOccurs="1" maxOccurs="1" type="xs:string"/>
<xs:element name="data_name" type="xs:string" maxOccurs="1" minOccurs="1" fixed="Slot Filler"/>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
Code: Select all
<xs:complexType name="DvStringType">
<xs:annotation>
<xs:documentation>
The string data type can contain characters, line feeds, carriage returns, and tab characters.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="mlhim2:DvAnyType">
<xs:sequence>
<xs:element minOccurs="0" name="DvString_dv" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="0" name="language" type="xs:language"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
Code: Select all
<xs:complexType abstract="true" name="DvAnyType">
<xs:annotation>
<xs:documentation>
Serves as a common ancestor of all datatypes in MLHIM models.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="data_name" type="xs:string" maxOccurs="1" minOccurs="1"/>
<xs:element maxOccurs="1" minOccurs="0" name="ev" nillable="true" type="mlhim2:ExceptionalValueType"/>
<xs:element maxOccurs="1" minOccurs="0" name="valid_time_begin" nillable="true" type="xs:dateTime"/>
<xs:element maxOccurs="1" minOccurs="0" name="valid_time_end" nillable="true" type="xs:dateTime"/>
</xs:sequence>
</xs:complexType>
and elementFormDefault="qualified"
entries.
Any ideas where to start on this?
Thanks,
Tim
PS.My other issue re:Derivation levels was solved by setting the default parser to Saxon EE and the version to 1.1 But it hasn't passed moderation yet at the time I am posting this one.