David Rosenstein schrieb:
Hi all-
when i run fop through my java code and generate a pdf i am apparently using
a different sax parser than if i run it from the command line out of the jar

Different CLASSPATH or different JDK?

[..]

some how the two different parsers parse the xml in a different way and with
the xerces parser i get some weird white space in the pdf's if i have
white-space-collapse set to false.  everything is normal when i am using the
crimson parser.   does anyone have a suggestion for how i get my code to use
the crimson class?

Remove xerces from classpath or set the property javax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl

Oh, the fop command does not support properties for the jvm. So if you're running some kind of Unix you can do a
export FOP_OPTS=-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl
Under Windows just edit fop.bat (we should offer a more flexible way
under Windows too).



Christian


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to