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

Re: ID & IDREF Schema Confusion

From: Eddie Robertsson <erobertsson@allette.com.au>
Date: Tue, 26 Mar 2002 10:08:46 +1100
Message-ID: <3C9FADFE.21F51D1D@allette.com.au>
To: adelrio@decadesystems.com
CC: xmlschema-dev@w3.org
Hi Andy,

> Good Morning All,
>
> I'm a little confused on how to properly relate an entity to another in XML
> Schema.  For example, I have would like to relate an entity I called
> "BORROWER" to the "PARTY" element.  Below is an example.

</snip>

> Basically, I am trying to covert a datamodel into an XML Schema.  Therefore,
> it's imperative that I understand how to relate an entity to another for
> reference purposes.
>
> Does this looks like I'm referencing these element's correctly?

If you're going to use XML Schema I would suggest that you use the identity constraints defined for XML Schema instead. These are
much more powerful than the ID/IDREF mechanism. See [1] for more details.

Cheers,
/Eddie

[1] http://www.w3.org/TR/xmlschema-0/#quartelyReport

>
>
> Thanks!
>
> Andy
Received on Monday, 25 March 2002 17:56:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:30 GMT