Re: Naming Rules

John Cowan (cowan@locke.ccil.org)
Mon, 27 Jul 1998 14:58:25 -0400


Portillo, Christina wrote:

> I need some clarification on the differences in the naming rules defined
> in the XML SGML Declaration and the Naming Rules defined in XML Part 1
> Names and Tokens.

It's important to understand that the SGML declaration for XML
is not normative. In case of conflict, the XML specification rules.

> My understanding of the Name restricts the 1st character position to a
> letter or a underscore or colon which is in sync with the SGML
> Declaration. But the NameChar allows underscores and colons in the
> remaining character positions which is at variance with the naming rules
> defined by the SGML Declaration.

While I am not an SGML mavin, it seems clear that everything declared
as a NAMESTRT character is also valid as a NAMECHAR character.
The characters explicitly listed in NAMECHAR are the non-ASCII digits,
combining marks, and modifier letters, plus the FULL STOP and HYPHEN-MINUS.

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)