[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: key and keyref

From: Jeni Tennison <jeni@jenitennison.com>
Date: Wed, 21 Nov 2001 17:18:28 +0000
Message-ID: <302218009.20011121171828@jenitennison.com>
To: "Chan, Philip" <Philip.Chan@rbccm.com>
CC: "'xmlschema-dev'" <xmlschema-dev@w3.org>
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 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.