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

RE:   vs  

Subject: RE:   vs  
From: "Michael Fitzgerald" <mike@xxxxxxxxxx>
Date: Fri, 3 Aug 2001 11:57:44 -0700
&#xa0; is Unicode and ISO 8859-1 for non-breaking space. In HTML most of us
are accustomed to using &nbsp;, but to use this reference in XML, you have
to declare it in a DTD, such as in an internal subset:

<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp "#160">

You have options. How you use these -- &#160;, &nbsp;, &#xa0; and your
$space -- is often a matter of taste. I usually go with what will take the
fewest keystrokes over time.

See also http://dpawson.co.uk/xsl/sect2/nbsp.html.

Good luck,

-Mike Fitzgerald

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Alan Alda
Sent: Friday, August 03, 2001 11:28 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  &#xA0; vs &#160;

Hi all,

I am using &#160; in my sheets to insert a whitespace-
however, in Michael Kay's excellent book, I came
across &#xA0. They look like they do the same thing,
but which is a more standard way of inserting an
&nbsp; in the resulting HTML?

Also, do you think doing the following approach is
better than the previous ones?

<xsl:variable name="space">
<xsl:value-of select=" ' ' " />

Now use $space to insert up to one space character in
the resulting HTML.

I know this is not a very serious issue (meaning my
implementation does not depend very heavily on the
resolution of this issue) but any guidance will be
greatly appreciated.


Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger

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

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

Current Thread


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.
First Name
Last Name
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.