• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: roblem with XSLT Trasformations - was problem generating PDF using FOP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: roblem with XSLT Trasformations - was problem generating PDF using FOP


  • Subject: Re: roblem with XSLT Trasformations - was problem generating PDF using FOP
  • From: Amedeo Mantica <email@hidden>
  • Date: Tue, 10 Oct 2006 12:36:19 +0200

Thank you for reply and collaboration

here the link for dile downloads

http://downloads.insigno.net/fileswo.zip

the sourceXML is the XML data grabbed from database (using WebObjects's NSXMLOutputStream)
the file is perfect. (some /u000d for CR/LF, but I think is ok)


the SimpleTrasformation.xls is an Apple provided XLST file for removing unuseful data and simplyfing the XML file.

the destinationXML file is the result of sourceXML trasformed using SimpleTrasformation.xml
myTrasformer.java is the routine that do the XSLT trasformation.


see the accented letters in destinationXML file...

Regards
Amedeo

On 09/ott/06, at 21:23, Travis Cripps wrote:

Hi, Amadeo.

Would you mind sending me your xslt file, your xml file, and a sample of the data output by your xml serializer (object->xml tag mapping) file?

Travis

On Oct 9, 2006, at 6:08 AM, Amadeo Mantica wrote:

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

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: roblem with XSLT Trasformations - was problem generating PDF using FOP
      • From: Travis Cripps <email@hidden>
  • Prev by Date: Re: Help with ERJavaMail and system properties
  • Next by Date: Re: To lock() or not to lock()
  • Previous by thread: Tomcat By SW 3.2
  • Next by thread: Re: roblem with XSLT Trasformations - was problem generating PDF using FOP
  • Index(es):
    • Date
    • Thread