RE: Defining uniqueness on optional element

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