[Zope3-dev] Re: idea: attr:foo addition to tal

Fred Drake fdrake at gmail.com
Mon Jul 26 11:37:01 EDT 2004


On Mon, 26 Jul 2004 11:18:39 -0400, Fred Drake <fdrake at gmail.com> wrote:
> I'll note that the XML parser used in Zope implements the first
> specification, which clearly states that a qualified name can contain
> at most one colon, so any attribute containing more than one colon
> should not have namespace processing applied.

Actually, looking further at the "Namespaces in XML" recommendation,
using multiple colons in element and attribute names is specifically
disallowed.  This is from section 6, "Conformance of Documents":

    In XML documents which conform to this specification, element types
    and attribute names must match the production for QName and must
    satisfy the "Namespace Constraints".

    An XML document conforms to this specification if all other tokens in
    the document which are required, for XML conformance, to match the
    XML production for Name, match this specification's production for
    NCName.

    The effect of conformance is that in such a document:

    * All element types and attribute names contain either zero or one colon.
    * No entity names, PI targets, or notation names contain any colons.

Expat, the parser used in Zope, describes the error reported for
attribute names with two or more colons as "not well-formed (invalid
token)" when namespace processing is enabled.


  -Fred

-- 
Fred L. Drake, Jr.    <fdrake at gmail.com>


More information about the Zope3-dev mailing list