On 01/08/2014 11:16 AM, Mike Dodds wrote:

Is the -c option correct to point to the fop.config file?

I'm sorry but I don't know. I have just tried to help by suggesting something. Please refer to the documentation of Apache FOP:

http://xmlgraphics.apache.org/fop/1.1/running.html#standalone-start

Here at XMLmind, we never attempt to use Apache FOP with a config file from within ditac. In production, for our own needs, we prefer to use convertdoc with the RenderX XEP plug-in:

http://www.xmlmind.com/xmleditor/_distrib/doc/commands/convertdoc.html



When I run this command line:

ditac -t "C:\mosaic\documentation_DITA\Common\fo_custom.xsl"
-foconverter FOP pdf "C:\fop\fop-1.1-bin\fop-1.1\fop.bat" -c
"C:\Users\Mike.Dodds\AppData\Roaming\XMLmind\XMLEditor5\fop\fop.conf" -q
-r -fo "%I" -pdf "%O" out\ConfiguringYourmosaicSite.pdf
C:\mosaic\documentation_DITA\Product\mosaic\bm_configyoursite.ditamap

I get an error relating to the -c option, which ditac expects to be a chunking 
mode

The ditac documentation says:

-foconverter processor_name target_format command

See http://www.xmlmind.com/ditac/_distrib/doc/manual/commandLine.html#commandLine__option-foconverter

That is, -foconverter must be followed by *3* arguments.

Obviously your ditac command has too many arguments after the "-foconverter" option:

-foconverter FOP pdf "C:\fop\fop-1.1-bin\fop-1.1\fop.bat" -c "C:\Users\Mike.Dodds\AppData\Roaming\XMLmind\XMLEditor5\fop\fop.conf" -q -r -fo "%I" -pdf "%O"

On Linux and on the Mac, something like this could work (notice the single quotes surrounding the fop invocation):

-foconverter FOP pdf '"/opt/fop/fop" -c "~/.xxe5/fop/fop.conf" -q -r -fo "%I" -pdf "%O"'

On Windows, I don't know how to quote some text already containing double quotes. Sorry not to be able to help you more.



--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to