[jdom-interest] DOCTYPE still giving me the worst headache!

Jason Hunter jhunter at servlets.com
Mon Feb 4 15:39:57 PST 2002

> I made checkXMLName() in Verifier public so EntityRef and DocType
> could use it. (They do allow colons in their names which
> checkElementName() forbids.) I don't think this will cause a problem,
> but if it does it could be package private.

I don't think we should allow colons in JDOM element names.  If we do,
people are going to try to put colons in element names as a way to
manage namespaces (since that's the obvious way to do it), and get
themselves into loads of trouble.  

I know the easy counter argument is that the XML spec says XML
processors should allow colons in element names, but JDOM is not an XML
processor, it's a higher-level document object model.  We should do what
is reasonable and makes sense.  Besides, allowing colons seems counter
to supporting the Namespace spec.


More information about the jdom-interest mailing list