Hi all, This is from the XML whiz mock exam. How can you declare in a DTD that the element a has the attribute x or y but not both of them? My answer was this <!ATTLIST a (x|y) CDATA #REQUIRED> But the correct answer is It is not possible to make the presence of one attribute dependent on another attribute. Am i missing something here. please help Hari
Hari babu, In a DTD you cannot make a declaration for attributes as "x or y but not both". This type of declaration is not possible for attributes. It is possible for elements only. The answer 'It is not possible to make the presence of one attribute dependent on another attribute.' is correct. Thanks, Rakesh.
Police line, do not cross. Well, this tiny ad can go through:
Two software engineers solve most of the world's problems in one K&R sized book