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

RE: Defining unique pair of elements

From: Scott, Michael Gordon <Michael.Gordon.Scott@kla-tencor.com>
Date: Thu, 20 Mar 2003 09:27:42 -0800
Message-ID: <40B0D8284A5B404E82C080023047C5EE16D499@ca1xpr08.kla-tencor.com>
To: "'Cams Ismael'" <Ismael.Cams@siemens.com>, "'Jeni Tennison'" <jeni@jenitennison.com>
Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

Would it be allowable to do something like this instead?

<modules>
     <module>
	<masteragent>
	</masteragent>
     </module>
     <module>
	<proxyagent>
	</proxyagent>
	<proxyagent>
	</proxyagent>
     </module>
</modules>

If so, use <xsd:choose>, then set <xsd:element proxyagend minOccurs="1"
maxOccurs="unbounded">
 -----Original Message-----
From: 	Cams Ismael [mailto:Ismael.Cams@siemens.com] 
Sent:	Thursday, March 20, 2003 6:56 AM
To:	'Jeni Tennison'
Cc:	'xmlschema-dev@w3.org'
Subject:	RE: Defining unique pair of elements


So the only solution to perform what I need is rename my <module> tags, if I
only want to use XSD.
I am a little surprised this isn't possible in XSD. But maybe am I missing
something here.

Anyway thanks a lot for the provided help.

Kind regards,
IsmaŽl
Received on Thursday, 20 March 2003 12:27:54 GMT

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