This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE:   vs  
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl]   vs  
- From: "Michael Fitzgerald" <mike at wyeast dot net>
- Date: Fri, 3 Aug 2001 11:57:44 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
  is Unicode and ISO 8859-1 for non-breaking space. In HTML most of us
are accustomed to using , 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 --  , ,   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@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Alan Alda
Sent: Friday, August 03, 2001 11:28 AM
To: xsl-list@lists.mulberrytech.com
Subject: [xsl]   vs  
Hi all,
I am using   in my sheets to insert a whitespace-
however, in Michael Kay's excellent book, I came
across  . They look like they do the same thing,
but which is a more standard way of inserting an
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=" ' ' " />
</xsl:variable>
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.
Thanks,
Cheers,
Alan.
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list