[xslt] Kannada fonts garbled in xsltproc



Hi,

I am using libxml 20610 and libxslt 10100 on Linux. When I run xsltproc
t.xsl t.xml
the output is changed.

Following are my files:

t.xsl

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="html" indent="yes" encoding="X-user-defined"/>
<xsl:template match="/">
<font face="Shree-Kan-0850">
<h1>
<xsl:value-of select="test" disable-output-escaping = "yes"/>
</h1>
</font>
</xsl:template>
</xsl:stylesheet>

t.xml

<?xml version="1.0" encoding="iso-8859-1"?>
<test>±Ü¨ÜÊÜáãÆ : Çæp? ×ÊÜå? væç !</test>

output

<font face="Shree-Kan-0850">
<h1>±�¨���áã� : �æp� ���å� væç !</h1>
</font>

I copied the text in the t.xml from a word file. In the word file
this text is properly displayed in the Indian Kannada language, if I
choose the font Shree-Kan-0850 which I downloaded from
http://www.thatskannada.com/download/Shree850.ttf

What should I do to get libxslt to throw the following output

<font face="Shree-Kan-0850">
<h1>±Ü¨ÜÊÜáãÆ : Çæp? ×ÊÜå? væç !</h1>
</font>

Hope there is a way out for this.

regards
Manoj Lobo




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