RE: How to derive from a mixed anyType?

XML Spy (5.4) rejects the simpleContent formulation.  It highlights 
   base = "AbstractBaseType"
and reports:

"Schema error - undefined schema component 'base' encountered -
simpleContent can not have a base"

Is this a(nother) bug in Spy?

> -----Original Message-----
> From: Lemmin, Harald [mailto:Harald.Lemmin@softwareag.com]
> Sent: Thursday, 17 April 2003 5:06 PM
> To: xmlschema-dev@w3.org
> Subject: RE: How to derive from a mixed anyType?
>  
> > Given a base type defined thus:
> > 
> >   <complexType name="AbstractBaseType" abstract="true" mixed="true">
> >     <attribute name="id" type="ID" use="optional"/>
> >   </complexType>
...
>  
> > 2.  how does one derive a simpleContent type whose content 
> > has a specified
> > simpleType?  
> 
> Define the simpleContent type by a local simpleType:
> 
>   <xs:complexType name = "simpleContent">
>     <xs:simpleContent>
>       <xs:restriction base = "AbstractBaseType">
>         <xs:simpleType>
>           <xs:restriction base = "xs:string"></xs:restriction>
>         </xs:simpleType>
>       </xs:restriction>
>     </xs:simpleContent>
>   </xs:complexType> 
> 

Received on Wednesday, 23 April 2003 00:18:19 UTC