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

Re: IDs - make them case sensitive

From: Rick Jelliffe <ricko@allette.com.au>
Date: Sat, 28 Jun 1997 04:56:07 +1000
Message-Id: <199706271854.EAA11451@jawa.chilli.net.au>
To: <w3c-sgml-wg@w3.org>, "Tim Bray" <tbray@textuality.com>

> From: Tim Bray <tbray@textuality.com>
> No.  I'm happy with Names being names.  I'm wondering why the ID
> attribute has a value that's a Name, as opposed to being CDATA with
> the added proviso that it be unique. -T.


If you need unique references + wild data, you could use ENTITY 
rather than ID.  

<!ENTITY xxx "#@#$*@&^#$%($)!@#@#!_)(_(#($)#&$">
<p wild-id="xxx">

This is of course not inline, but probably it achieves the purpose.
It, of course, doesn't check that the entities values are unique,
but the entity names must be, which may be the same thing. 

Rick Jelliffe
Received on Friday, 27 June 1997 14:55:33 UTC

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