[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
Re: anonymous element


>  
>
> <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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.