W3C home > Mailing lists > Public > www-html@w3.org > January 2000

RE: Using Entity References in XSL Templates

From: Kay Michael <Michael.Kay@icl.com>
Date: Mon, 24 Jan 2000 05:18:02 -0500 (EST)
Message-ID: <93CB64052F94D211BC5D0010A800133101FDE965@wwmess3.bra01.icl.co.uk>
To: "'xsl-list@mulberrytech.com'" <xsl-list@mulberrytech.com>
Cc: "'www-html@w3.org'" <www-html@w3.org>
> In HTML, &nbsp; is always ISO-8859-1 character number 160, i.e. a
> non-breaking space ... but &#160; is simply character number 
> 160 in the character set of the document encoding, and thus may not refer
to a
> non-breaking space. 

> References:
> http://www.w3.org/TR/1999/PR-html40-19990824/charset.html

That's not my reading of this reference. To quote selectively:

<QUOTE>
To promote interoperability, SGML requires that each application (including
HTML) specify its document character set. A document character set consists
of:

A Repertoire: A set of abstract characters
Code positions: A set of integer references to characters in the repertoire.


The ASCII character set is not sufficient for a global information system
such as the Web, so HTML uses the much more complete character set called
the Universal Character Set (UCS), defined in [ISO10646].

Authoring tools (e.g., text editors) may encode HTML documents in the
character encoding of their choice, and the choice largely depends on the
conventions used by the system software. These tools may employ any
convenient encoding that covers most of the characters contained in the
document, provided the encoding is correctly labeled. Occasional characters
that fall outside this encoding may still be represented by character
references. These always refer to the document character set, not the
character encoding.
</QUOTE>

I read that as saying that in HTML as in XML, &#160; is the non-breaking
space character regardless what character encoding is in use.

Mike Kay
Received on Monday, 24 January 2000 05:21:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:41 GMT