W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2005

RE: complex uniqueness

From: Michael Kay <mike@saxonica.com>
Date: Tue, 20 Sep 2005 12:03:17 +0100
To: "'AYDOS Carlos C'" <Carlos_AYDOS@rta.nsw.gov.au>, <xmlschema-dev@w3.org>
Message-ID: <E1EHfuL-0002KZ-LX@lisa.w3.org>

The subset of XPath allowed in specifying uniqueness constraints doesn't
allow predicates, and doesn't allow use of the sibling axes, so I don't
think this is possible.

Michael Kay
http://www.saxonica.com/
 

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of AYDOS Carlos C
> Sent: 20 September 2005 09:05
> To: xmlschema-dev@w3.org
> Subject: complex uniqueness
> 
> 
> Hi,
> 
> Does anyone knows if its possible to create a xs:key to 
> guarantee that the below instance document could have a 
> uniqueness constraint among names A,B,C,D of only the 2nd,3rd 
> and 4th pointSets (they are linked via the attribute 'extends')
> 
> Carlos
> 
> <root>
> 	<pointSet type="ordinary">
> 		<point name="A"/>
> 		<point name="B"/>
> 	</pointSet>
> 	<pointSet type="basic">
> 		<point name="A"/>
> 		<point name="B"/>
> 	</pointSet>
> 	<pointSet type="complex" extends="basic">
> 		<point name="C"/>
> 	</pointSet>
> 	<pointSet type="verycomplex" extends="complex">
> 		<point name="D"/>
> 	</pointSet>
> </root>
> 
> IMPORTANT NOTICE: This e-mail and any attachment to it are 
> intended only to be read or used by the named addressee. It 
> is confidential and may contain legally privileged 
> information. No confidentiality or privilege is waived or 
> lost by any mistaken transmission to you. The RTA is not 
> responsible for any unauthorised alterations to this e-mail 
> or attachment to it. Views expressed in this message are 
> those of the individual sender, and are not necessarily the 
> views of the RTA. If you receive this e-mail in error, please 
> immediately delete it from your system and notify the sender. 
> You must not disclose, copy or use any part of this e-mail if 
> you are not the intended recipient.
> 
> 
Received on Tuesday, 20 September 2005 11:03:32 GMT

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