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

RE: Creating a whitespace for web page

Subject: RE: Creating a whitespace for web page
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Wed, 18 Aug 2004 14:16:53 -0400
whitespace encoding
> From: michael.s.eberhart@xxxxxxxxxxx


> I would like to my xslt code to create a whitespace for display on the
web
> page.  I am using the following code:
>
> <td>&#160;</td>
>
> and
>
> <td>&#xa0;</td>
>
> Both ways have failed, creating garbage characters instead of spaces.


That probably indicates an encoding mismatch between the encoding the
browser is using and the encoding your stylesheet is producing.  Chances
are that the browser is using iso-8859-1 (Latin -1), and you are
producing utf-8.  Note that if you do not specify the encoding you will
get utf-8 (or possibly utf-16 with Microsoft products, depending on how
you produce it).

You can specify the same encoding as the browser uses (but you don't
have control over what other peoples' browsers are set for), or you can
add a meta element to the html you produce, specifying the encoding.

Cheers,

Tom P

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.