W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2006

Re: anonymous element

From: David Carver <d_a_carver@yahoo.com>
Date: Fri, 01 Dec 2006 22:06:19 -0500
Message-ID: <4570EDAB.6050101@yahoo.com>
To: "Kassahun, Ayalew" <Ayalew.Kassahun@wur.nl>
CC: xmlschema-dev@w3.org


>  
>
> <xsd:schema targetNamespace="http://www.bla" 
> xmlns:xsd=http://www.w3.org/2001/XMLSchema>
>
>     <!-- anonymous element  -->
>
>     <xsd:complexType name="Anonymous.Type">
>
>         <xsd:attribute name="id" type="xsd:string"/>
>
>         <xsd:attribute name="name" type="xsd:string"/>
>
>     </xsd:complexType>
>
>  
>
>      <xsd:element name="*" type=" Anonymous.Type"/>
>
> </xsd:schema>
>
Sounds like you need to make use of xs:any possibly extend it, and add 
your attributes so that the xs:any must have those additional attributes.

Dave
Received on Saturday, 2 December 2006 03:06:24 GMT

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