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

RE: Defining uniqueness on optional element

From: Cams Ismael <Ismael.Cams@siemens.com>
Date: Thu, 27 Mar 2003 10:00:44 +0100
Message-ID: <57FD2C3A246F76438CA6FDAD8FE9F1957ABC71@hrtades7.atea.be>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

><xsd:unique name="uniqueModule">
>	<xsd:selector xpath="module"/>
>	<xsd:field xpath="community"/>
></xsd:unique>

Of course this should be:

<xsd:unique name="uniqueModule"> (xsd:unique because community tag is
optional)
	<xsd:selector xpath="module"/>
	<xsd:field xpath="@name"/>
	<xsd:field xpath="community"/>
</xsd:unique>

IsmaŽl
Received on Thursday, 27 March 2003 04:00:51 GMT

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