Ilian Iliev complains about hassles arising from using QNames in an XML document that is to be DTD-validated. This is a situation where hassles are highly likely. In my article on namespaces [1], I wrote:
The older document type definition (DTD) syntax for specifying document structure is not namespace-aware. However, DTDs tolerate element and attribute names that contain colons. If you want to use DTDs and namespaces together, you can do so by designating specific prefixes and treating them as fixed parts of the element and attribute names. The technique is explained in detail in C. M. Sperberg-McQueen's memo in The Cover Pages [2]. Expect substantial discomfort if you must do this. (DTDs allow the assignment of values to attributes not explicitly present in the XML document. Setting an attribute named xmlns through this DTD mechanism is a bad idea.) I suggest you read that memo [2] for more complete guidance. .................David Marston [1]http://www-106.ibm.com/developerworks/xml/library/x-nmspace.html [2]http://xml.coverpages.org/namespacesAndDTDsSperbergMQ200105.html