Re: [xslt] How to send to not UTF-8 html output ?
- From: "Vladimir B. Grebenschikov" <vova sw ru>
- To: Peter Jacobi <pj walter-graphtek com>
- Cc: xslt gnome org
- Subject: Re: [xslt] How to send to not UTF-8 html output ?
- Date: Mon, 02 Feb 2004 11:08:13 +0300
÷ ÐÔ, 30.01.2004, × 18:45, Peter Jacobi ÐÉÛÅÔ:
> >   does not work if output encoding not utf-8 (say KOI8-R)
>
>   is NBSP in any encoding. Which app interpreting the generated HTML
> disagrees with that?
xslt processor do translation of entity   to unicode character when
there no such character in output encoding:
3c 68 74 6d 6c 3e 0a 3c 68 65 61 64 3e 3c 6d 65 |<html>.<head><me|
74 61 20 68 74 74 70 2d 65 71 75 69 76 3d 22 43 |ta http-equiv="C|
6f 6e 74 65 6e 74 2d 54 79 70 65 22 20 63 6f 6e |ontent-Type" con|
74 65 6e 74 3d 22 74 65 78 74 2f 68 74 6d 6c 3b |tent="text/html;|
20 63 68 61 72 73 65 74 3d 4b 4f 49 38 2d 52 22 | charset=KOI8-R"|
3e 3c 2f 68 65 61 64 3e 0a 3c 62 6f 64 79 3e 0a |></head>.<body>.|
20 20 20 20 20 20 20 20 5b 9a 5d 0a 20 20 20 20 | [.]. |
20 20 3c 2f 62 6f 64 79 3e 0a 3c 2f 68 74 6d 6c | </body>.</html|
3e 0a |>.|
<xsl:stylesheet version="1.0" extension-element-prefixes="xsl"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="html" encoding="KOI8-R"/>
<xsl:template match="/">
<html>
<head/>
<body>
[ ]
</body>
</html>
</xsl:template>
</xsl:stylesheet>
As I understand   should be output as entity ( or  ) but
not as invalid character: 0x9a, (when output encoding set to utf-8 it is
outputed as 0xc2 0xa0 characters and work right).
Of course browser (I have tried MSIE, Mozilla, Opera) refuses to show
non-breaking spache in case of KOI8-R output encoding.
> Regards,
> Peter Jacobi
--
Vladimir B. Grebenschikov <vova@sw.ru>
SWsoft Inc.
<xsl:stylesheet version="1.0" extension-element-prefixes="xsl"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="html" encoding="KOI8-R"/>
<xsl:template match="/">
<html>
<head/>
<body>
[ ]
</body>
</html>
</xsl:template>
</xsl:stylesheet>
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]