I am moving from accessing data via a database to XML for my application specific needs. I am currently writing a DTD for the XML by referring to my SQL table schema. I have defined a constraint on 4 columns to be unique(These 4 columns defines a directory structure 3 step deep so together they have to be unique eg. dir1/dir2/dir3/dirA and dir1/dir2/dir3/dirB). I know I can use an ID to maintain uniqueness of an attribute, but how can I bind this for 4 attributes together?
Thanks,
Shripad
Use an
ID
along with anIDREF
to define this relationship. Here are two formats:DTD
XSD
Here are a few analogues for quick reference: