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

RE: ID & IDREF Schema Confusion

From: Andy Del Rio <adelrio@decadesystems.com>
Date: Wed, 27 Mar 2002 15:52:31 -0500
To: "Eddie Robertsson" <erobertsson@allette.com.au>
Cc: <xmlschema-dev@w3.org>
Message-ID: <PJEGLHABDMFKMBPDFGKAAEJKCAAA.adelrio@decadesystems.com>
Thanks Eddie.

I finally got the ID/IDREF concept!  Well, I was just told that in addition
to creating an XML Schema from the the datamodel, I would also have to
generate a DTD.  Problem with this is that the DTD will not allow me to use
the more
robust identity constraints XML Schema has to offer.

Sincere Regards,


-----Original Message-----
From: xmlschema-dev-request@w3.org
[mailto:xmlschema-dev-request@w3.org]On Behalf Of Eddie Robertsson
Sent: Monday, March 25, 2002 6:09 PM
To: adelrio@decadesystems.com
Cc: xmlschema-dev@w3.org
Subject: Re: ID & IDREF Schema Confusion

Hi Andy,

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


> Basically, I am trying to covert a datamodel into an XML Schema.
> 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.


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

> Thanks!
> Andy
Received on Wednesday, 27 March 2002 15:52:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:55 UTC