Hello all. I'm having a problem that I need some help with. I have a
Schema that validates without errors using XML Spy 4 beta 2. I've also
validated it using the W3C's web based validator without errors. But when I
try to validate an XML instance against the Schema using Xerces-J v1.4.2,
Xerces reports Schema errors. Based on the cause of the errors either
Xerces is right and the other validators are wrong or vice-versa.
If it turns out that Xerces's Schema evaluation is correct could someone
suggest replacement language for the content-models that are causing the
errors.
The Schema is located at:
http://www.equitytg.com/XML/Schema/SB2Questionnaire.xsd
The errors are:
<Error>
Schema error: Anonymous complexType: ct-props-correct.2: The type
'xs:string' is a simple type. It cannot be used in a derivation by
RESTRICTION for a complexType.
line 2
column 262</Error>
<Error>
Schema error: Anonymous complexType: ct-props-correct.2: The type
'xs:positiveInteger' is a simple type. It cannot be used in a derivation by
RESTRICTION for a complexType.
line 2
column 262</Error>
<Error>
Schema error: ComplexType 'extended-integer': ct-props-correct.2: The type
'xs:positiveInteger' is a simple type. It cannot be used in a derivation by
RESTRICTION for a complexType.
line 2
column 262</Error>
<Error>
Schema error: ComplexType 'phone': ct-props-correct.2: The type 'xs:string'
is a simple type. It cannot be used in a derivation by RESTRICTION for a
complexType.
line 2
column 262</Error>
<Error>
Schema error: ComplexType 'month-type': ct-props-correct.2: The type
'xs:positiveInteger' is a simple type. It cannot be used in a derivation by
RESTRICTION for a complexType.
line 2
column 262</Error>
<Error>
Schema error: ComplexType 'year-type': ct-props-correct.2: The type
'xs:positiveInteger' is a simple type. It cannot be used in a derivation by
RESTRICTION for a complexType.
line 2
column 262</Error>
<Error>
Schema error: ComplexType 'yes-no': ct-props-correct.2: The type 'xs:string'
is a simple type. It cannot be used in a derivation by RESTRICTION for a
complexType.
line 2
column 262</Error>
<Error>
Schema error: Anonymous complexType: ct-props-correct.2: The type
'xs:string' is a simple type. It cannot be used in a derivation by
RESTRICTION for a complexType.
line 2
column 262</Error>
<Error>
Schema error: Anonymous complexType: cos-all-limited.1.2: An "all" model
group that is part of a complex type definition must constitute the entire
{content type} of the definition..
line 2
column 262</Error>
<Error>
Schema error: Anonymous complexType: ct-props-correct.2: The type
'xs:string' is a simple type. It cannot be used in a derivation by
RESTRICTION for a complexType.
line 2
column 262</Error>
<Error>
Schema error: Anonymous complexType: ct-props-correct.2: The type
'xs:string' is a simple type. It cannot be used in a derivation by
RESTRICTION for a complexType.
line 2
column 262</Error>
Dane Foster
Equity Technology Group, Inc
http://www.equitytg.com.
954.360.9800
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]