Re: Re[2]: [xml-dev] Sharing Techniques: White Spaces in HTML pages by XSLT

From
Jonathan Perret <>
To
Date
2001-11-29T11:26:54Z
ID
<030d01c178c8$bfbf6b70$e1010a0a@jperret>
Thread
Re: Re[2]: [xml-dev] Sharing Techniques: White Spaces in HTML pages by XSLT
> KAK> Why not simply use &#xa0; as Mike Kay suggests on p. 135 of his XSLT
> KAK> Reference? And if you really want a general entity named nbsp, simply
> KAK> say as the HTML DTD does:
>
> KAK> <!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>
>
>
> That's what I use, but when my XSLT output goes to other machines,
> the &#160; characters are not always recognised as spaces. How come?
>

Is your XSLT output supposed to be HTML ? What charset are you using ?
Do you really need special (non-breaking) spaces, or will regular whitespace
do ?

Cheers,
Jonathan