You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/01/30 18:41:14 UTC

DO NOT REPLY [Bug 16605] - xmlns:my-prefix attribute fails validation when using DTD

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16605>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16605

xmlns:my-prefix attribute fails validation when using DTD





------- Additional Comments From keshlam@us.ibm.com  2003-01-30 17:41 -------
Unfortuantely, that is correct behavior. DTDs were written before the namespace 
spec, and are unaware of it. To a DTD, a namespace declaration attribute is just 
another attribute and subject to the same rules.

You can code your DTD to allow a few pre-selected (or pre-bound) prefixes. Or 
you can give up DTD validation, and either switch to Schemas or settle for 
well-formed documents.

(This is a well-known nuisance. It was raised while namespaces were still under 
development and they decided to accept it, since the alternative seemed to 
involve starting an XML 2.0 effort. All we can do is live with it and work 
around it.)

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org