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

elements with different types in a <choice>

From: aldib <aldib@fuurou.org>
Date: Tue, 09 Dec 2003 14:11:42 +0000
Message-ID: <20031209141142.25000.qmail@server262.com>
To: xmlschema-dev@w3.org
different types of elements
Hi,
I'm trying to create a schema element called <bean> where the children called <field> can be of different types. I created a complexType for every field and I have a choice model that contains three elements called "field" with different types. When I try to validate the schema I get an error message saying that I am violating the unique name constraint for the model.

Does anybody know how to fix/implement this kind of structure?

Thanks


p.s. I attached the schema to this message


Received on Tuesday, 9 December 2003 09:11:45 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.