Motivation for "_" as a name

Eric Baatz - Sun Microsystems Labs BOS (ebaatz@barbaresco.East.Sun.COM)
Sun, 20 Apr 1997 18:09:50 -0400 (EDT)


In the 31-Mar-97 W3C Working Draft is the following definition:

[5] Name ::= (Letter | '_') (NameChar)*

This seems to allow "_" to be a name and "<_>" and "</_>" to
be start- and end-tags, which seems "odd" to this acknowledged
alphabetics bigot.

Is that the intent of the Draft?

If not, is something like the following the intent:

[5] Name ::= (Letter | "_" (Letter)+ ) (NameChar)*

Or perhaps

[5] Name ::= (Letter | "_" (Letter)+ | "_" (Digit)+ ) (NameChar)*

Eric Baatz
Sun Microsystems Laboratories
2 Elizabeth Drive, MS UCHL03-207 (508) 442-0257
Chelmsford, MA 01824 fax: (508) 250-5067
USA Internet: eric.baatz@east.sun.com