W3C home > Mailing lists > Public > xml-editor@w3.org > January to March 2003

Irritating behaviour

From: <thilo.kirchheiner@techem.de>
Date: Mon, 17 Feb 2003 06:09:38 -0500 (EST)
Message-Id: <TFSMRXBK@techem.de>
To: xml-editor@w3.org




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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:32 GMT