W3C home > Mailing lists > Public > www-rdf-interest@w3.org > March 2003

RE: the composite ID attribute

From: Ashok Malhotra <ashokma@microsoft.com>
Date: Thu, 13 Mar 2003 09:55:22 -0800
Message-ID: <E5B814702B65CB4DA51644580E4853FB03DA797F@red-msg-12.redmond.corp.microsoft.com>
To: "Kalam Abu" <kalamabu@yahoo.com>, <www-rdf-interest@w3.org>
Look at the key and keyref facilities in XML Schema.


All the best, Ashok 

-----Original Message-----
From: Kalam Abu [mailto:kalamabu@yahoo.com] 
Sent: Thursday, March 13, 2003 3:45 AM
To: www-rdf-interest@w3.org
Subject: the composite ID attribute



The concept of composite key which is available in Relational Database
is it also available in the XML DTD or XML RDF?  ..I tried to declare an
element attributes of a course relation as the following:

 1. <!ELEMENT  COURSE (course_id, dep_id , title, units)>

   2.  <!ATTLIST  COURSE  (course_id, dep_id) ID    # REQUIRED> 

as you can see  the two attributes course_id and dep_id  of the main
Element (relation) COURSE are key (composite key) .

my question: Is the syntax of line no.2 right or not and why?





Do you Yahoo!?
Yahoo! Web Hosting <http://webhosting.yahoo.com/ps/wh3/prod/>  -
establish your business online
Received on Thursday, 13 March 2003 12:55:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:41 UTC