Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » ComplexType error help
ComplexType error help [message #586775] Thu, 06 May 2004 14:15
Lance Phillips is currently offline Lance PhillipsFriend
Messages: 210
Registered: July 2009
Senior Member
I have the following ComplexType :
<xs:complexType abstract="false" mixed="false" name="Array">
<xs:group maxOccurs="1" minOccurs="0" ref="Q1:Array"/>
<xs:attributeGroup ref="Q1:arrayAttributes"/>
<xs:attributeGroup ref="Q1:commonAttributes"/>

.... which is the base type for this ComplexType in another schema:
<xs:complexType abstract="false" mixed="false" name="TaxInfoArray">
<xs:restriction base="Z1:Array">
<xs:sequence maxOccurs="1" minOccurs="1">
<xs:element maxOccurs="unbounded" minOccurs="0"
name="TaxInfo" type="Q1:TaxInfo"/>
<xs:attributeGroup ref="Z1:arrayAttributes"/>
<xs:attributeGroup ref="Z1:commonAttributes"/>

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?


Previous Topic:More namespace help
Next Topic:ComplexType error help
Goto Forum:

Current Time: Fri Oct 30 20:35:51 GMT 2020

Powered by FUDForum. Page generated in 0.01877 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top