0

Hello mates

i am having a problem designing a new DTD over the existing one found at:

http://dblp.uni-trier.de/xml/dblp.dtd

This is the DTD over their original XML file. I used a SAX parser to store specific data from the original file into my relational database.

Now i have to do the following: "Design a DTD to specify an XML document that consists of all publications in the conferences or journals that are co-authored by four specific authors Woo, Kin, Glas and Gert"

In few words what it needs is a DTD that is valid for if one of the 4 people is an author but how do i implement this restriction to 4 values only?

Edited by Blondeamon: n/a

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by iceandrews
0

plz provide me data about DBLP.......
i wana to project that technique.......

0

Here's a real answer. Look at the web pages below under the "Enumerated attribute values"
http://www.w3schools.com/DTD/dtd_attributes.asp
http://www.xmlfiles.com/dtd/dtd_attributes.asp

Use google and "enumerate DTD" and you'll find other examples. The idea is that you can use the <!ATTLIST> and make a list of valid strings that are allowed in those attributes. you should be able to adjust your <ATTLIST declarations in that DTD to restriction content for those authors and Conf/Journals.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.