W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2002

use of "or" in keyref selector

From: Colin Mackenzie <colin@elecmc.com>
Date: Fri, 14 Jun 2002 10:09:35 +0100
To: <xmlschema-dev@w3.org>


Can anyone confirm whether or not it is valid to specify an "or" for a
selector in a keyref.
Tools seem to support it but I just want to be sure (in the past I have
tried key selectors using element[childelement]/value which are not

<xsd:keyref name="RefStaffToDetails" refer="KeyStaffbyURN">
	<xsd:field xpath="."/>

where the schema enforces a choice of fulltimestaff or parttimestaff

e.g. two instance snippets

		<staffmember refURN="123"/>
		<staffmember URN="123">


		<staffmember refURN="124"/>
		<staffmember URN="124">

Colin Mackenzie
Received on Friday, 14 June 2002 05:09:21 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:57 UTC