[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Using Entity References in XSL Templates

Subject: RE: Using Entity References in XSL Templates
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 24 Jan 2000 10:16:17 -0000
encode xsl reference
> 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


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.