- From: Kartik Babu <babuk@cs.rpi.edu>
- Date: 27 Oct 2003 10:31:24 +0100
- To: www-xml-schema-comments@w3.org
Is it currently possible to do this with XML Schema I have the following dtd: <!ELEMENT person (name,pid,sex,(parent,parent?)?,child*) > <!ElEMENT parent (#PCDATA)> <!ATTRIBUTE parent role CDATA #REQUIRED> now my question is that the role must either mother or father, which is easy to do. But, under the current XML specification, can I, without any changes to the given DTD make it such that a particular person cannot accidentally have two mothers or two fathers. How can I enforce that if a person has two parents listed only one can be role=mother and only one can be role=father ?
Received on Monday, 27 October 2003 04:36:56 UTC