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

multiple elements with different names but same type

From: Luke Graham <lukeg@multitrode.com.au>
Date: Tue, 18 Jan 2005 17:08:16 +1000
Message-ID: <41ECB5E0.1010403@multitrode.com.au>
To: xmlschema-dev@w3.org
multitrode where to buy
Hello list,

I have a problem with some schemas that Im writing. They look as follows...

<xs:complexType name="foo"/>

<xs:element name="_1" type="foo"/>
<xs:element name="_2" type="foo"/>
.....

I want to write something along these lines instead...

<xs:element name="*" type="foo" minOccurs="0" maxOccurs="64"/>

Is it possible?

And... I want to give a range to a simple integer, without deriving a 
new type -

<xs:element name="bar" type="xs:int" minInclusive="0" maxInclusive="10"/>

Do I really have to derive a new type each time? That seems excessive.

-- 
Luke


Received on Tuesday, 18 January 2005 07:45:20 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.