On Jul 16, 2008, at 13:00, Bones wrote:
Hi Phil
My parser/transform environment is the standard which comes with FOP,
however when I use FOP for development I also use SAXON for
transformation
and sometimes pure Sax2 for parsing. It depends.
I haven't yet encountered such issues when /running/ FOP, only when
building.
If you only use FOP, this shouldn't really pose a problem. Seen that
you're eager to start developing, it is a rather unfortunate one... :-/
BTW: Remember also that, when running FOP, unless you explicitly
force the JVM to use the Xerces and Xalan versions in the
distribution, then it will use whatever XML parser and XSLT processor
come first in the classpath (most JVMs come bundled with a fallback
parser; some, like GNU Classpath, do not have an XSLT processor,
which causes mayhem in some environments because Xalan does not work
in combination with the GNU XML parser...)
"In the end, I got it working by making sure that the build process
was using the exact same XML parser and XSLT processor that were
distributed with FOP. " - How do I do that with in ant?
Basically the same as for every other java application, it comes down
to either:
* copying all necessary JARs to JAVA_HOME/lib/endorsed
* prepending those JARs to the bootclasspath (as in: "java -
Xbootclasspath/p:...")
* specifying the exact implementations to use by passing Java system
properties (pattern: -Dinterface=implementation, as in: "java -
Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryI
mpl ...")
The latter two options, for Ant, work by setting the ANT_OPTS
environment variable (see: http://ant.apache.org/manual/
running.html#envvars)
The first I already hinted at earlier, and you said you had tried it,
to no avail, so I'm quite clueless at the moment. :-S
Cheers
Andreas