Jeremias Maerki wrote:
On 23.01.2003 22:15:17 Clay Leeds wrote:

It helps. However, I only have fop-0.20.4 (&.5rc) installed. I also notice that in the lib/ folder I've got xalan-2.3.1.jar. Will this suffice, or do I need to install the full version of xalan. Also, the current version of xalan is 2.4.1... should I try it with that?
Yep. In this case do:

java -cp lib/xml-apis.jar;lib/xercesImpl-2.2.1.jar;lib/xalan-2.4.1.jar org.apache.xalan.xslt.Process -IN test2.xml -XSL test2.xsl -OUT test2.out.xml -DIAG
That worked great (except I had to change the version numbers for xerces (xercesImpl-2.0.1.jar) & xalan(xalan-2.3.1.jar) (which was probably expcected :-):

C:\Program Files\Java\fop-0.20.4>java -cp lib/xml-apis.jar;lib/xercesImpl-2.0.1.jar;lib/xalan-2.3.1.jar org.apache.xalan.xslt.Process -IN C:\xml_med7\biglinux\test_MIWC_1.1.xml -XSL C:\xml_med7\fo\xml_med7_MIWC.fo -OUT 030123_test_xml_med7_MIWC_1.1.out.xml -DIAG

========
Transform of C:\xml_med7\biglinux\test_MIWC_1.1.xml via C:\xml_med7\fo\xml_med7_MIWC.fo took 2813 ms

C:\Program Files\Java\fop-0.20.4>

That will run the XSL transformation. It assumes you're in the root
directory of your FOP distribution (location of fop.bat) and you're
using Windows. You may have to adjust the names of the jar files
depending on the FOP version.

Lastly, I want my system to match--as closely as possible--that of my clients. What steps can I take to ensure that I can regain that "parity" for testing?
Well, if you use fop.bat to do the testing, you're using the same jars I
used above for the XSL transformation.

Jeremias Maerki
In the end, the following took just over 4 seconds, which means I don't think it was xalan which took so long.

C:\Program Files\Java\fop-0.20.4>java -cp build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -d -fo 030123_test_xml_med7_MIWC_1.1.out.xml -pdf 030123_test_XSLT_001.pdf
[DEBUG] Input mode:
[DEBUG] FO
[DEBUG] fo input file: 030123_test_xml_med7_MIWC_1.1.out.xml
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: 030123_test_XSLT_001.pdf
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] base directory: file:/C:/Program Files/Java/fop-0.20.4/
[INFO] FOP 0.20.4
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[DEBUG] setting up fonts
[INFO] [1]
[INFO] [2]
[DEBUG] Last page-sequence produced 2 pages.
[INFO] Parsing of document complete, stopping renderer
[DEBUG] Initial heap size: 726Kb
[DEBUG] Current heap size: 5396Kb
[DEBUG] Total memory used: 4669Kb
[DEBUG] Memory use is indicative; no GC was performed
[DEBUG] These figures should not be used comparatively
[DEBUG] Total time used: 4422ms
[DEBUG] Pages rendered: 2
[DEBUG] Avg render time: 2211ms/page

C:\Program Files\Java\fop-0.20.4>

--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


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

Reply via email to