Transformation with external FOP: Actualization of file name

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
Posts: 4
Location: Switzerland

Transformation with external FOP: Actualization of file name

Mon Apr 14, 2003 4:45 pm

Transformation with external FOP: Actualization of file names in macros

I'm using an external FO processor (Apache FOP 0.20.4) to produce PDF output from XML files (see also Forum 'Common Problems', Topic ' Configuration of external FO processor'), with following command line template:

org.apache.fop.apps.Fop -xml ${cf} –xsl U:\arbeit\zbuch6\quelle\kodiert_b\fop\buch.xsl -pdf ${tsf}
(just part concerning fop).

In <oXygen/> XML Editor Version 2.0. I noticed a strange behavior. When I configure the transformation (including 'Output Tab') and want to transform an XML file I get following error:

org.apache.fop.apps.Fop -xml U:\arbeit\zbuch6\quelle\kodiert_b\s330_331.xml -xsl U:\arbeit\zbuch6\quelle\kodiert_b\fop\buch.xsl -pdf
[ERROR] you must specify the pdf output file.

Oxygen seems to ignore the macro ${tsf} and the filename given in the 'Configure Transformation Dialog'.
After closing the XML file and reopening it again, the transformation works perfect! The content of the 'Output Tab' is included now with the macro ${tsf} in the command line and the PDF file is produced:

org.apache.fop.apps.Fop -xml U:\arbeit\zbuch6\quelle\kodiert_b\s330_331.xml -xsl U:\arbeit\zbuch6\quelle\kodiert_b\fop\buch.xsl -pdf U:\arbeit\zbuch6\quelle\kodiert_b\fop\s330_331.pdf

There seems to be a problem with the actualization of macro contents. It is a bit annoying when you must reopen every file before transforming it!

Thanks much.
Site Admin
Posts: 2100

Mon Apr 14, 2003 5:45 pm


You are right there is a synchronization problem for the ${tsf} macro. This will be fixed in the next release. Please see my notes to your other post about external FOP configuration - you can use ${out} instead of ${tsf}.

All the best,

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 2 guests