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

Re: How to deal with special characters in XSL?

Subject: Re: How to deal with special characters in XSL?
From: "Rafael 'Dido' Sevilla" <sevillar@xxxxxxxxxxxxxxxxx>
Date: Wed, 17 Oct 2001 16:48:35 +0800
0160
On Wed, Oct 17, 2001 at 09:49:58AM +0200, Amiceto wrote:
> Hi everybody:
> I come back to the list.
> 
> What if I need &nbsp; printed in the outputed html?
> yes I can use &#0160; but this prints " " not "&nbsp;"

No, it prints the Unicode character with the code #0160, which is the
UTF-8 representation of a non-breaking space.  All web browsers younger
than perhaps Netscape 2.0 should understand this (Gosh, that was about
six years ago!).

> and I need it for crossbrowser html

You don't need it for crossbrowser HTML, unless you're looking at
giving support for ancient browsers that don't understand Unicode; I
doubt such creatures are still used anywhere!

Some XSLT engines (Saxon for example) produce &nbsp; for &#0160;, and
substitute entities here and there, if they are set up to operate in
HTML output mode, but this is not required by the standard, so don't
count on it being available everywhere.

-- 
Rafael R. Sevilla <sevillar@xxxxxxxxxxxxxxxxx>   +63(2)   8177746 ext. 8311
Programmer, Inter.Net Philippines                +63(917) 4458925
http://dido.engr.internet.org.ph/                OpenPGP Key ID: 0x5CDA17D8

 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.