RE: ID & IDREF Schema Confusion

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,

Andy

-----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
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 Wednesday, 27 March 2002 15:52:44 UTC