W3C home > Mailing lists > Public > w3c-sgml-wg@w3.org > January 1997

back to XML: The "You Babe" problem

From: Tim Bray <tbray@textuality.com>
Date: Tue, 14 Jan 1997 13:04:59 -0800
Message-Id: <>
To: w3c-sgml-wg@www10.w3.org
Hi everyone; just noticed an irritating conundrum in the XML spec, which
can easily be solved in a couple of arbitrary ways, without apparent 
ill-effect; this note is just to run the problem past the group's eyes to 
make sure the obvious solution doesn't break anything.

Suppose that you wanted to insert a reference to a Unicode character whose
value is decimal 47,806 or hex 0xbabe.

The XML spec as written would allow all of the following:

 &u-babe; &U-babe;  &u-BABE; &u-bABe

which is OK at one level, and no problem for a parser (mine anyhow), but
probably not acceptable, if only for the cultural reason that SGML-folk
expect strings between '&' and ';' to be case-sensitive.

So I think we should reword the spec to require one of:
 (a) &u-babe;
 (b) &U-BABE;
 (c) &u-BABE;
 (d) &U-babe;

I cannot for the life of me see any significant advantage to any one over the
others.  If anyone sees anything worth shouting about, please do so (I really
mean, please don't) - in the event of silence, we'll just do a quickie vote
in the ERB and settle it. - Tim
Received on Tuesday, 14 January 1997 16:06:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:25:06 UTC