Re: [xml] ATTRIBUTE NAME validation problem
- From: Stefan Behnel <stefan_ml behnel de>
- To: murulidharar huawei com, xml gnome org
- Subject: Re: [xml] ATTRIBUTE NAME validation problem
- Date: Tue, 29 Jan 2008 08:46:06 +0100
Mike Hommey wrote:
But that's still true that the XML declaration spec tells : is a valid
attribute name in an ATTLIST. ::::::::::: is, too.
Hmm, interesting. Even the errata list this as a valid production for a Name.
There, it even says:
Document authors are encouraged to use names which are meaningful words or
combinations of words in natural languages, and to avoid symbolic or white
space characters in names. Note that COLON, HYPHEN-MINUS, FULL STOP (period),
LOW LINE (underscore), and MIDDLE DOT are explicitly permitted.
However, I assume that the reason is simply the support for XML namespaces,
which explicitly exclude the ':' in their NCName production:
So, a namespace aware parser is absolutely allowed to treat "::::::" names as
] [Thread Prev