Set value for DoutputFile.base dynamically

Here should go questions about transforming XML with XSLT and FOP.
asurkau
Posts: 6

Set value for DoutputFile.base dynamically

Wed Jul 11, 2018 7:20 pm

Hi,

we are using DITA-OT 2.5.4 to create PDF files using a customised version of the PDF2 transformation, which works well.
We are using version control and have automated the transformation for all our documentation so that they are built whenever a file has been updated in the repository.

Our DITA command in the batch file that is used to do the transformations contains the parameter DoutputFile.base to set the file name of the output file, similar to this:

Code: Select all

dita -i inputfile.ditamap -o c:\out -f custom-pdf -DoutputFile.base=outputfilename


Is there a way to set the value for DoutputFile.base dynamically using a variable?

Thanks for your help!
Angela
Radu
Posts: 5692

Re: Set value for DoutputFile.base dynamically

Thu Jul 12, 2018 9:47 am

Hi Angela,

You can pass parameters to a Windows ".bat" file and then use them in the command line:

https://stackoverflow.com/questions/26551/how-do-i-pass-command-line-parameters-to-a-batch-file

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 1 guest