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

RE: xml spec 1.0 validity constraint for ID/IDREF

  • From: Leigh Dodds <ldodds@i...>
  • To: Xml-Dev <xml-dev@x...>
  • Date: Wed, 29 Mar 2000 16:20:50 +0100

xml validity constraint
> -----Original Message-----
> From: owner-xml-dev@x... [mailto:owner-xml-dev@x...]On Behalf Of
> gopi
> Sent: 29 March 2000 12:57
> To: Xml-Dev
> Cc: tbray@t...
> Subject: xml spec 1.0 validity constraint for ID/IDREF

[various questions regarding ID attribute type]

XML-DEV had a thread on this only recently see [1] for some 
related discussion.

> 	One more thing, I have not read xml schema spec in detail, 
> 	can anyone tell me whether this case is taken care there?

To quote Henry Thompson [2].

>XML Schema ... addresses both your requirements:

>  1) Multiple keys on a single element are OK;
>  2) Being (part of) a key is independent of your datatype.

So I believe XML Schemas better support your needs to map 
database keys to unique attribute values.

In the past I've avoided use of ID for many of the reasons 
you outlined, I used just 'ordinary CDATA' attributes. 
Additional checks at the application level are required 
to enforce the constraints however.

[1]. http://www.egroups.com/group/xml-dev/showthread.html?start=19179
[2]. http://www.egroups.com/group/xml-dev/19189.html

Cheers

L.


-- 
Leigh Dodds, Software Engineer       | "Pluralitas non est ponenda
http://weblogs.userland.com/eclectic |    sine necessitates"
http://www.xml.com/pub/xmldeviant    |     -- William of Ockham

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.