W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1996

wwwlib SGML.c and entity names in attribute values?

From: Markku Savela <msa@msa.tte.vtt.fi>
Date: Mon, 19 Aug 1996 12:54:19 +0300 (EET DST)
Message-Id: <199608190954.MAA26353@msa.tte.vtt.fi>
To: www-lib@w3.org
Cc: msa@msa.tte.vtt.fi
I may be missing something obvious, but I suddenly noticed that the
wwwlib SGML.c model does not support at all entities in attribute
values.

The current model in SGML is to generate start_element, end_element,
entity and content calls to upstream. This model does not fit at all,
if the entiry appears inside an attribute value, which should already
have been parsed by the time start_element occurs?

I think the entity upstream call is a misdesign and should be removed.
The SMGL.c (or equivalent) needs to "unpack" entities itself. For ISO
8859-1 characters this doesn't appear to be a problem, but I am
wondering how the problem is solved for entities that don't map into
ISO 8859-1 character sequences?

Any ideas? (Has this been discussed to the death somewhere already?)

--
Markku Savela (msa@hemuli.tte.vtt.fi),     Technical Research Centre of Finland
Multimedia Systems, P.O.Box 1203,FIN-02044 VTT,http://www.vtt.fi/tte/staff/msa/
Received on Monday, 19 August 1996 05:54:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:26 GMT