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

Question on id constraints

  • From: "Anderson, John" <John@B...>
  • To: xml-dev@l...
  • Date: Mon, 23 Jul 2001 16:56:05 +0200

Question on id constraints
Title: Question on id constraints

(could have been: Primary and Foreign Keys)

Hi,

I'm trying to work out som PK/FK mappings to key/keyref structures.

The spec says that the selector must involve the child axis. This imples that in the following example:

<files>
  <file>
    <directoryid>
    <fileid>
    <filetype>
  </file>
  <file> . . . etc
       
</files>

I would not be able to specify a unique or key for <file> consisting of the combination of <directoryid> & <fileid>, since the selector must point to either one or the other of these, unless the key is specified in the parent <files>.

Anyone know if this is correct? It seems a bit limiting since I can't then reuse that constraint in other contexts where <file> is used without redefining it.

John


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.