This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Proper xsl coding for  ?


> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Elizabeth
> Barham
> Sent: Monday, February 11, 2002 9:23 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] Proper xsl coding for  ?
> 
> 
> Brad Cox <bcox@virtualschool.edu> writes:
> 
> > What is the proper way to write &nbsp; and its html friends in xsl
> > documents?
> 
> Hi Brad,
> 
> The way I've been doing it is with an entity entitled nbsp:
> 
> <nbsp/>
> 
> The reason I'm using this is because XML Schema doesn't work too well
> (at all?) with character entities.
> 
> <xsl:template match="nbsp">
>   <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
> </xsl:template>

This is not portable and always never required.

Just use "&#160;".

FAQ at: <http://www.dpawson.co.uk/xsl/sect2/nbsp.html>


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]