Date: Mon, 9 Oct 2006 11:58:54 +0200
From: Amedeo Mantica <email@hidden>
Subject: Need Help - problem with XSLT Trasformations - was problem
generating PDF using FOP
To: WebObjects Dev Apple <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
Hi all,
I have my data storage on a OpenBase SQL server and data is stored un
UTF-8 format.
The web applications works fine ( I overrided the appendToResponse,
takeValuesFromRequest and dispatchRequest methods in Application.java
for setting the encoding to UTF-8).
You can see my work at:
http://www.ivc.it
http://www.muratti.it
http://www.azimutcoatings.com
http://www.pennellificiopuma.it
http://www.lineabird.it
http://www.lineahex.it
http://www.anticasignoria.it
These are seven websites, but is an unique WebObject applicatiion
that select correct products, graphics, text and css based on
selected site and language.
Now I need to export PDF tacnical sheet of products.
I followed the great Sasha an Chuck's book "Practical WebObjects" for
serializing my data in XML format, then trasforming to PDF using
Apache FOP.
Exporting data from EO to XML works fine. First XML become UTF-8
encoded.
When I do the "SimpleTrasformation" with XSLT provided by Apple
(where the Output Format is set UTF-8), I got bad data encoding, and
all accented letters are bad.
Then trasforming again using apache FOP produce really bad results.
I tried to do the "SimpleTraformation" using a software (TestXSLT,
http://www.entropy.ch/software/macosx/#testxslt ), a simple MacOS X
app that get in input the original XML and the XLST, and outputs the
trasformed XML. It works fine, no encoding trouble.
So I think the trouble is inside the Java trasformation engine, but I
don't know how to fix.
Can you help me?
Thanks
Regards
Amedeo