Braumüller wrote:

Hi friends,

I have following command line problem on windows system:

Because FOP 0.20.5  cannot handle passing parameter, i am trying doing the 
fo.file with xalan.
As second step passing the output file to fop:

 xalan   -PARAM docName finance -IN fw-forms.xml -XSL pdf38.xsl  -OUT temp.fop
fop -fo temp.fop -pdf finance-doc.pdf
But i am getting: Missing argument for option: -OUT

ooppsss.


Why?

Because the xalan.bat file bundled with FOP 0.20.5 only passes up to 8 arguments from the command line to the java call to xalan. You have 9 arguments! Change the batch file to include the 9th argument, e.g.

java -cp %LOCALCLASSPATH% org.apache.xalan.xslt.Process %1 %2 %3 %4 %5 %6 %7 %8

becomes:

java -cp %LOCALCLASSPATH% org.apache.xalan.xslt.Process %1 %2 %3 %4 %5 %6 %7 %8 %9

or better yet (if you are using a recent version of windows), you can do:

java -cp %LOCALCLASSPATH% org.apache.xalan.xslt.Process %*

which will always ensure ALL arguments specified to the batch file are passed onto Xalan.

Chris





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

Reply via email to