Re: Attribute error - a bug or a feature?

Mark Feblowitz <mfeblowitz@frictionless.com> writes:

> Xerces reports the following error:
> 
> [Error] ToonWorldProcessPurchaseOrder.xml:57:42: cvc-complex-type.3.2.2:
> Attribute 'qualifyingAgency' is not valid respect to the attribute wildcard
> of Elment 'AddressId'
> 
> when a particular element derives its type by extension:
> 
> 	<xs:element name="AddressId" minOccurs="0" maxOccurs="unbounded">
> 		<xs:complexType>
> 			<xs:simpleContent>
> 				<xs:extension base="AddressId"/>
> 			</xs:simpleContent>
> 		</xs:complexType>
> 	</xs:element>
> 
> but the error goes away when that type is merely referenced:
> 
> 	<xs:element name="AddressId" type="AddressId" minOccurs="0"
> maxOccurs="unbounded">
> 
> 
> Does this problem arise due to the attempt to derive by extension, or does
> it look legit?

Looks OK to me.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/

Received on Friday, 11 January 2002 04:50:26 UTC