Irritating behaviour

Dear editor,

maybe it's not a bug, but in my opinion the possibility of having ambiguous DTDs is rather unpleasant. An example:
<!ELEMENT elem_one (#PCDATA)>
<!ELEMENT elem_two (#PCDATA)>

These two statements are the content of a DTD, let's call it onetwo.dtd.
Two XML-Files are now in agreement with the rules:

<?xml version="1.0"?>
<!DOCTYPE elem_one System "onetwo.dtd">
<elem_one>content</elem_one>

<?xml version="1.0"?>
<!DOCTYPE elem_two System "onetwo.dtd">
<elem_two>content</elem_two>

We have one "Document Type Definition" and two different document types. Is this a bug or a feature?

Greetings

Thilo Kirchheiner
TECHEM Development GmbH

Received on Monday, 17 February 2003 12:37:39 UTC