W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2003

RE: How to derive from a mixed anyType?

From: <Simon.Cox@csiro.au>
Date: Wed, 23 Apr 2003 12:18:10 +0800
Message-ID: <116D27C8E12BD411B3AB00B0D022B0B801D7AAC1@yate.wa.CSIRO.AU>
To: Harald.Lemmin@softwareag.com, xmlschema-dev@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:36 GMT