W3C home > Mailing lists > Public > xml-names-editor@w3.org > August 2009

Definition of NCName for version 1.0 and 1.1

From: David Matson <dmatson@microsoft.com>
Date: Mon, 24 Aug 2009 07:15:29 +0000
To: "xml-names-editor@w3.org" <xml-names-editor@w3.org>
Message-ID: <72A56A1C3828AA4FA9038864375F7B0C02620DB4@TK5EX14MBXC115.redmond.corp.microsoft.com>
>[[S/MIME Signed Part:Failed]]
>With the Fifth Edition of XML 1.0, the definition of Name has been made
>consistent with version XML 1.1. However, the definition of NCName still
>differs between Namespaces in XML 1.0 (Second Edition, per errata) and
>Namespaces in XML 1.1 (Second Edition).
>
> 
>
>The 1.0 version has (in the errata):
>
>[4]    NCName    ::=    Name - (Char* ':' Char*) /* An XML Name, minus the
>":" */
>
> 
>
>With NCNameChar and NCNameStartChar moved to a new appendix:
>
>[5]    NCNameChar    ::=    NameChar - ':' /* An XML NameChar, minus the ":"
>*/ 
>
>[6]    NCNameStartChar    ::=    NCName - ( Char Char Char* ) /* The first
>letter of an NCName */
>
> 
>
>The 1.1 version has:
>
>[4]    NCName    ::=    NCNameStartChar NCNameChar* /* An XML Name, minus
>the ":" */ 
>
>[5]    NCNameChar    ::=    NameChar - ':' 
>
>[6]    NCNameStartChar    ::=    NameStartChar - ':'
>
> 
>
>Since both versions of XML now define Name identically, it seems odd that
>the corresponding Namespaces specifications would define NCName differently.
>(I understand these two definitions of NCName are equivalent; the discussion
>here relates to the distinction in the way the definitions are written.)
>
>Personally, I find the 1.1 definitions easier to read (and to
>understand/implement correctly).
>
> 
>
>Please consider unifying the definition for NCName between the 1.0 and 1.1
>versions of Namespaces in XML when including errata in the next edition of
>these specifications. 
>
> 
>
>Thanks,
>
> 
>
>David
>
> 
>
>Relevant specifications & errata:
>
>Namespaces in XML 1.0 (Second Edition) Errata, 20 November 2008:
>http://www.w3.org/XML/2006/xml-names-errata
>
>Namespaces in XML 1.1 (Second Edition):
>http://www.w3.org/TR/2006/REC-xml-names11-20060816/
>
>Namespaces in XML 1.0 (Second Edition):
>http://www.w3.org/TR/2006/REC-xml-names-20060816/
>
>XML 1.0 (Fifth Edition): http://www.w3.org/TR/2008/REC-xml-20081126/
>
>XML 1.1 (Second Edition): http://www.w3.org/TR/2006/REC-xml11-20060816/
>
> 
>
>[[End of S/MIME Signed Part]]
------=_NextPart_000_0000_01CA226A.7AD46CA0--
Received on Monday, 31 August 2009 13:01:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:45 GMT