Re: key and keyref

Hi Philip,

> Now, is it possible to create a key and keyref constaints so that
> /payroll/employees/name/dept/name and
> /payroll/employees/name/dept/location are only pointing to:
> /payroll/"any node()" and /payroll/"the node()"@location?

No. The problem is that you can't have a single keyref point to two
key/unique identity constraints at the same time. To merge them into
one identity constraint, you'd have to get the name of an element,
which isn't possible with the restricted XPath syntax available in the
xs:field elements. Sorry.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Wednesday, 21 November 2001 12:18:30 UTC