• 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: Bizarre exception using XSLT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bizarre exception using XSLT


  • Subject: Re: Bizarre exception using XSLT
  • From: Merul Patel <email@hidden>
  • Date: Fri, 26 Sep 2003 10:40:59 +0100

Hi,

I found an answer to the discrepancy in that when using the terminal to perform the XSLT, the Crimson parser was being used, which does accept the "MacRoman" encoding, while my WO application is for some reason using the Xerces parser which rejects this encoding. By adding the line below to the application launch arguments, it forces my WO application to use the same parser, and now my problem is solved.

D"javax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFa ctoryImpl"

My sole remaining issue is how to install the Xerces 2.0 parser, and get the WO App to use this instead. Would be keen to know of solutions to this.

BR

Merul

On Thursday, September 25, 2003, at 11:43  pm, Merul Patel wrote:

Hi,

I'm trying to generate PDF from an RTF file using webobjects, and I have an application that successfully parses an RTF file (at least for my purposes) and dumps out an XML file using MacRoman character encoding.

I've written an XSL transformation which takes the created XML file and converts them into XSL:FO files for generating PDFs. For expediency I've just used a 3 line function as per the example given in the SimpleTransformation.java example that accompanies the Apache Xalan processor. When I test this using javac and java on the command line, the input XML files encoded using MacRoman character encoding are correctly transformed to the desired XSL:FO elements which I can then process using the Apache FOP processor.

However, when I copy the same 3 line function and associated headers into my Webobjects class files, I get an exception stating an unrecognised encoding??!!

I have no idea what's going on, since I only have the Apache jar files that come configured as part of WO 5.1, and the only third party jars I've put into the /Library/Java/Extension folders are the FOP.jar, and Batik.jar.

Needless to say, thanks in advance.

Merul
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Bizarre exception using XSLT
      • From: Han Ming Ong <email@hidden>
References: 
 >Bizarre exception using XSLT (From: Merul Patel <email@hidden>)

  • Prev by Date: dynamic table problem
  • Next by Date: Re: Using NSArray for Lists and WODisplayGroup for Batches
  • Previous by thread: Bizarre exception using XSLT
  • Next by thread: Re: Bizarre exception using XSLT
  • Index(es):
    • Date
    • Thread