Re: [xsl] semi-newbie question about escaping

Subject: Re: [xsl] semi-newbie question about escaping
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 15 Oct 2002 12:02:11 -0600 (MDT)
Bob Purvy wrote:
> The goal here was to output some non-breaking space entities in HTML 
> (&nbsp;) to denote indentation.

FAQ. You want to get the no-break space character. In HTML you had the
unnecessary "nbsp" entity that you could reference if you couldn't or didn't
know how to type the character directly (alt-0160 on WinNT/2K/XP) and didn't
know that you could write &#160; or &#xA0;. Well, XML is the same, but doesn't
have the "nbsp" entity. So just write &#160; or &#xA0; and let the XSLT
processor worry about how to serialize it in the output (it will most likely
emit "&nbsp;" for you).

See http://www.dpawson.co.uk/xsl/sect2/nbsp.html for more.

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

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


Current Thread