ComplexType error help [message #586775] |
Thu, 06 May 2004 14:15 |
Lance Phillips Messages: 210 Registered: July 2009 |
Senior Member |
|
|
Ed,
I have the following ComplexType :
<xs:complexType abstract="false" mixed="false" name="Array">
<xs:annotation/>
<xs:group maxOccurs="1" minOccurs="0" ref="Q1:Array"/>
<xs:attributeGroup ref="Q1:arrayAttributes"/>
<xs:attributeGroup ref="Q1:commonAttributes"/>
</xs:complexType>
.... which is the base type for this ComplexType in another schema:
<xs:complexType abstract="false" mixed="false" name="TaxInfoArray">
<xs:complexContent>
<xs:restriction base="Z1:Array">
<xs:sequence maxOccurs="1" minOccurs="1">
<xs:element maxOccurs="unbounded" minOccurs="0"
name="TaxInfo" type="Q1:TaxInfo"/>
</xs:sequence>
<xs:attributeGroup ref="Z1:arrayAttributes"/>
<xs:attributeGroup ref="Z1:commonAttributes"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
I'm getting the following validation error for the second type : XSD: The
restricted content type must accept a subset of the content accepted by the
base type.
What is causing this error?
thanks,
lp
|
|
|
Powered by
FUDForum. Page generated in 0.02714 seconds