[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: Putting non-breaking space into documents


Subject: Re: Putting non-breaking space into documents
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 14 Jul 2000 09:32:12 -0600 (MDT)

Jürgen Hermann wrote:
> >I'm trying to put &nbsp; into my HTML code using XSL.
> Use &#160; which is XML (&nbsp; is not).

I wouldn't say &nbsp; is "not XML". &nbsp; is fine to use in XML, as long
as it is declared, preferably in the internal DTD subset. I just use
&#160; directly, though. This is in the FAQ, I'm sure.

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

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at         My XML/XSL resources:
webb.net in Denver, Colorado, USA           http://www.skew.org/xml/


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



Current Thread
Keywords
xml