You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by xi chen <su...@yahoo.com.cn> on 2001/10/24 11:20:09 UTC
bug?
hi,dear Mr/Mrss,
Now I am using Xalan, I use it just like:
"java -cp
.;xerces.jar;xalan.jar;bsf.jar;fop.jar;w3c.jar;xml.jar
org.apache.xalan.xslt.Process -in %1 -xsl a.xsl -out
index.html"
I met a problem, i found when i write my xml source
file in chinese, such as
"<title>创建你的文件</title> "
and then in my xsl file, i write like this
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="position ()"/><xsl:text>.
</xsl:text><xsl:value-of select="title"/>
</xsl:attribute>
But i found in the html file, it display like this:
"<img border="0" height="20" width="380" name="menu2"
src="imagemaster/menu2.jpg" alt="2.
&#21019;&#24314;&#20320;&#30340;&#31532;&#19968;&#20010;&#25945;&#31243;">
"
I need the content of title display as content of alt
in html file, My OS is windows2000 chinese version, i
found if i change the OS to english version, the
content of alt will be ok, I wonder if it is a bug in
Xalan to handle chinese Font? Can u give me any
suggestion, thanks a lot!
_________________________________________________________
Do You Yahoo!? 登录免费雅虎电邮! http://mail.yahoo.com.cn
<font color=#6666FF>无聊?郁闷?高兴?没理由?都来聊天吧!</font>――
雅虎全新聊天室! http://cn.chat.yahoo.com/c/roomlist.html
Re: bug?
Posted by Yueming Xu <yx...@vitria.com>.
just wondering if you can get Chinese back by setting the output encoding.
For example, adding the following line before your first template?
<xsl:output method="xml" encoding="ISO2022CN_GB"/>
cheers,
Yueming
----- Original Message -----
From: "xi chen" <su...@yahoo.com.cn>
To: <xa...@xml.apache.org>
Sent: Wednesday, October 24, 2001 3:20 AM
Subject: bug?
> hi,dear Mr/Mrss,
> Now I am using Xalan, I use it just like:
>
> "java -cp
> .;xerces.jar;xalan.jar;bsf.jar;fop.jar;w3c.jar;xml.jar
> org.apache.xalan.xslt.Process -in %1 -xsl a.xsl -out
> index.html"
>
> I met a problem, i found when i write my xml source
> file in chinese, such as
>
> "<title>创建你的文件</title> "
>
> and then in my xsl file, i write like this
> </xsl:attribute>
> <xsl:attribute name="alt">
> <xsl:value-of select="position ()"/><xsl:text>.
> </xsl:text><xsl:value-of select="title"/>
> </xsl:attribute>
>
> But i found in the html file, it display like this:
>
> "<img border="0" height="20" width="380" name="menu2"
> src="imagemaster/menu2.jpg" alt="2.
>
&#21019;&#24314;&#20320;&#30340;&#31532;&#19968;&
;#20010;&#25945;&#31243;">
> "
> I need the content of title display as content of alt
> in html file, My OS is windows2000 chinese version, i
> found if i change the OS to english version, the
> content of alt will be ok, I wonder if it is a bug in
> Xalan to handle chinese Font? Can u give me any
> suggestion, thanks a lot!
>
> _________________________________________________________
> Do You Yahoo!? 登录免费雅虎电邮! http://mail.yahoo.com.cn
>
> <font color=#6666FF>无聊?郁闷?高兴?没理由?都来聊天吧!</font>――
> 雅虎全新聊天室! http://cn.chat.yahoo.com/c/roomlist.html