[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
> -----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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|