[xsl] chinese characters just working when defined in xsl-fo-page directly

Subject: [xsl] chinese characters just working when defined in xsl-fo-page directly
From: "Christoph Klocker" <klocker@xxxxxxxxxxxxx>
Date: Fri, 5 Nov 2004 14:28:30 +0100
Hi,
tried to solve this problem, now for 3 days, but couldn't figure out the
problem,
even on the FOP list I couldn't find an answer, maybe someone of you
experienced the same.


I got a strange problem, I am using Fop through cocoon.

I have embedded the chinese font for displaying the glyphs.
The strange thing, if I define the characters like this

<fo:block font-size="7pt" color="rgb(0,160,198)"
font-family="SimSun">&#32173;&#20063;&#32013;</fo:block>
I got the right result, the glyphs are displayed correctly.

but
when I try to print the data out of an XML file the output is the unicode
reference and not the right glyphs
this
<fo:block font-size="7pt" color="rgb(0,160,198)"
font-family="SimSun">&#32173;&#20063;&#32013;<xsl:value-of
select="*[1]"/></fo:block>
results in "3 chinese glyphs + &#32173;&#20063;&#32013;"
where the XML data is:
<FaaLocTextCH>&#32173;&#20063;&#32013;</FaaLocTextCH>

thanks for help
Christoph

Current Thread