Re: Identity contraint specification, backwards compatibility...

If I read you correctly, this should never have worked.

You've asserted in your schema that <name> has _a_ unique value for
each <obj> under <object_space>, but this is manifestly untrue.

If what you meant was that its value is unique for each <name> under <obj>,
then you need a different declaration, namely:

	<xsd:unique name="unique_obj_name">
		<xsd:selector xpath="name"/>
		<xsd:field xpath="."/>
	</xsd:unique>

which would be contained within the element decl for <obj>.

If you want to say that its value is unique each <name> under <object_space>,
then you need

	<xsd:unique name="unique_obj_name">
		<xsd:selector xpath=".//obj/name"/>
		<xsd:field xpath="."/>
	</xsd:unique>

which would be contained within the element decl for <object_space>.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/

Received on Thursday, 27 September 2001 05:29:12 UTC