xsl-list
[Top] [All Lists]

Re: semi-newbie question about escaping

2002-10-15 11:02:11
Bob Purvy wrote:
The goal here was to output some non-breaking space entities in HTML 
( ) 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   or  . Well, XML is the same, but doesn't
have the "nbsp" entity. So just write   or   and let the XSLT
processor worry about how to serialize it in the output (it will most likely
emit " " 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



<Prev in Thread] Current Thread [Next in Thread>