RE: [xsl] hyperlinks

Subject: RE: [xsl] hyperlinks
From: "Michael Fitzgerald" <mike@xxxxxxxxxx>
Date: Thu, 1 Feb 2001 14:34:49 -0800
My apologies for missing the obvious (dec 160 is hex a0). I shall be more
FAQtual next time.

I may have a hint about what the problem is. I got the a character with an
acute accent (á) when I tested &#160; or &#x00A0; with Saxon 6.1 and msxsl
on DOS. I supposed this is because DOS uses the IBM code page 437 character
set (same as IBM code page 850). An a with acute (á) is decimal 160 in
437/850. An nbsp in 437/850 is decimal 255 so that given a stylesheet with:

<!DOCTYPE xsl:stylesheet [
 <!ENTITY nbsp "&#255;">

and then applying:


with output encoding of iso-8859-1 yields the result:


You can't tell, but those are NBSPs. Why it only works with iso-8859-1 and
not UTF-8 baffles me. The result makes me assume that what Michael Beddow
said is correct:

>Check the character encoding of your output html document (or the
>default encoding settings) of your browser. Looks like your browser
>may be using an encoding in which 0xA0 doesn't map to a non-breaking
>space. There are some around.

I tested this on IE 5.5 using UTF-8 which, with both &#160; and &#xa0;,
performed as advertised.

I believe when Ha Tran determines what character set is in use by his
browser or other environment, he will be able to clear up his problem.


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of David
Sent: Thursday, February 01, 2001 10:07 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] hyperlinks

   Do you want a non-breaking space in XML? In HTML browsers, &#160; was
   to nbsp, but in a XML char ref (Unicode) its 00A0. Try: <!ENTITY nbsp
   "&#xa0;"> or <!ENTITY nbsp "&#x00A0;">. Didn't test but should work.

As mentioned already this week (and in the faq for this list)
&#160; _is_ &#xa0; 'cause xao is 10 x 16 + 0 = 160.


This message has been checked for all known viruses by Star Internet
through the MessageLabs Virus Control Centre. For further information visit

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread