W3C home > Mailing lists > Public > xml-dist-app@w3.org > November 2001

Re: Spaces allowed in XML element names

From: <Noah_Mendelsohn@lotus.com>
Date: Fri, 9 Nov 2001 14:57:39 -0500
To: RGerber@iworksoftware.com
Cc: xml-dist-app@w3.org
Message-ID: <OF8FB41BDE.D59B650D-ON85256AFF.006E30F8@lotus.com>
Raymond Gerber writes: 

>> Does anyone know where I can get a statement 
>> regarding the use of spaces in
>> XML element Names.

Not surprisingly, that would be in the XML 1.0 Recommendation. 
Specifically [1] is the production covering element names.  It is: 

Name    ::=    (Letter | '_' | ':') (NameChar)* 
NameChar    ::=    Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar 
| Extender 

and when you follow through all the references you'll find that spaces are 
not allowed in XML element or attribute names.

[1] http://www.w3.org/TR/REC-xml#NT-Name



------------------------------------------------------------------------
Noah Mendelsohn                                    Voice: 1-617-693-4036
Lotus Development Corp.                            Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
------------------------------------------------------------------------
Received on Friday, 9 November 2001 15:08:21 GMT

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