[xslt] How to send   to not UTF-8 html output ?



Only solution I have found is to use
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>

but it is too big, does not work when text is supplied as parameter to
template, and does not work if defined in <!ENTITY nbsp ...

&#160; does not work if output encoding not utf-8 (say KOI8-R)

Is any way to define real entity for &nbsp; ?

Why &#1069; is translated right for all encoding (as valid character or
as entity if can't be converted to characted) but &#160; does not
translated to &nbsp; when it is not possible to out unicode character ?

Looks like it is almost impossible to get text with character '&' on
html output.

Any advises appreciated.

-- 
Vladimir B. Grebenschikov <vova@sw.ru>
SWsoft Inc.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]