You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Christoph Klocker <kl...@superfund.com> on 2004/11/03 15:20:32 UTC

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

HI,

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 a 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



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


AW: AW: chinese characters just working when defined in xsl-fo-page directly

Posted by Christoph Klocker <kl...@superfund.com>.
I found out now, that the problem lies in the esql query,
I generate an XML through xsp/esql with cocoon,
if I have a look on the generated xml, I can see that the chinese glyphs are
not shown as
such ones, just the ones I define in the xsp page.
So there must be something wrong with the querying.

I use the jdbc driver from MS, and my database is MSSQL,

Anyone an Idea how to get Unicode data out of the database??

christoph

-----Ursprüngliche Nachricht-----
Von: J.Pietschmann [mailto:j3322ptm@yahoo.de]
Gesendet: Samstag, 06. November 2004 12:21
An: fop-user@xml.apache.org
Betreff: Re: AW: chinese characters just working when defined in
xsl-fo-page directly


Christoph Klocker wrote:
> Thats what I did, when I Serialize it to XML its as it is stated here, so
I
> got no Idea, why this doesn't work
> <FaaLocTextCH>&#32173;&#20063;&#32013;</FaaLocTextCH>
>
> I am happy for any suggestion how to solve this problem.

I meant: serialize the input to the PDF serializer to XML, after
the transformation. You should not get a FaaLocTextCH element in
a FO document.
Be sure you aren't using disable-output-escaping either.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: AW: chinese characters just working when defined in xsl-fo-page directly

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Christoph Klocker wrote:
> Thats what I did, when I Serialize it to XML its as it is stated here, so I
> got no Idea, why this doesn't work
> <FaaLocTextCH>&#32173;&#20063;&#32013;</FaaLocTextCH>
> 
> I am happy for any suggestion how to solve this problem.

I meant: serialize the input to the PDF serializer to XML, after
the transformation. You should not get a FaaLocTextCH element in
a FO document.
Be sure you aren't using disable-output-escaping either.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


AW: chinese characters just working when defined in xsl-fo-page directly

Posted by Christoph Klocker <kl...@superfund.com>.

Christoph Klocker wrote:
> <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>

Looks like double escaping. Serialize the result to XML rather
than PDF and check whether there is an &amp;#32173; etc there.
Then track down where it comes from.
Other than than. I'm not sure what your problem really is, nor
whether you actually have a real problem.

J.Pietschmann

Thats what I did, when I Serialize it to XML its as it is stated here, so I
got no Idea, why this doesn't work
<FaaLocTextCH>&#32173;&#20063;&#32013;</FaaLocTextCH>

I am happy for any suggestion how to solve this problem.

/christoph
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: chinese characters just working when defined in xsl-fo-page directly

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Christoph Klocker wrote:
> <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>

Looks like double escaping. Serialize the result to XML rather
than PDF and check whether there is an &amp;#32173; etc there.
Then track down where it comes from.
Other than than. I'm not sure what your problem really is, nor
whether you actually have a real problem.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org