Re: [oXygen-user] Setting output file name

I'm trying solution #2 a. I edited build.xml (I made a backup copy first!) b. In the section starting with <project name="dita.build" basedir="." I added <property name="pdf.file.name" value="${dita.map.filename.root}" /> c. In the section starting with <target mae="publish.map.pdf"> I commented out the entry <param name="outputFile" value="${dita.map.output.dir}/${dita.map.filename.root}.pdf"/> and added <param name="outputFile" value="${dita.map.output.dir}/${pdf.file.name}.pdf"/> d. in my transform setting I clicked the Parameters tab, added the name "pdf.file.name" and made the value XYZSAMPLEXYZ And...it worked! This is great stuff. -----Original Message----- From: Steve Matlock [mailto:stephenmatlock@gmail.com] Sent: Thursday, November 05, 2009 9:37 AM To: Radu Coravu Subject: Re: [oXygen-user] Setting output file name Thanks, Radu, I will try that. It's OK that Oxygen won't open the PDF automatically - that's not an essential part of the transform process for me -- I can just open it manually in Acrobat Pro. On Wed, Nov 4, 2009 at 10:53 PM, Radu Coravu <radu_coravu@sync.ro> wrote:
Dear Steve,
Thank you for contacting us.
From what it seems the DITA Open Toolkit does not yet have an ANT parameter which can be set to indicate the output file name for PDF IDIOM transformations. Of course you can make some changes in the build files to accomplish this. If for example you open the "OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\demo\fo\build.xml" file there is a target in it called "publish.map.pdf". That target contains a parameter like: <param name="outputFile" value="${dita.map.output.dir}/${dita.map.filename.root}.pdf"/>
so the output file is hardcoded to the name of the map.
There are two options: 1) You can replace the paramter with something hardcoded like: <param name="outputFile" value="${dita.map.output.dir}/customFileName.pdf"/>
2) Create a new property which you can afterwards set from the Oxygen parameters tab. For this, in the beginning of the build.xml where all properties are defined, add a new entry: <property name="pdf.file.name" value="${dita.map.filename.root}" /> and use this entry in the parameter I mentioned above: <param name="outputFile" value="${dita.map.output.dir}/${pdf.file.name}.pdf"/>
Then you will be able to add the "pdf.file.name" as a new parameter in the Oxygen transformation scenario "Parameters" tab with your custom file name value.
There is a downside to this: Oxygen will not know what PDF file to open after the transformation succeeds so you will either have to open it externally or edit the transformation scenario and in the "Output" tab specify explicitly the "Other location" to open.
Regards, Radu
-- Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
Steve Matlock wrote:
I'm generating PDFs using the default/demo PDF generator in Oxygen 10.x on Vista and using a bookmap and a dita map.
I'm looking for a way to set the output file name explicitly -- currently the ditamap/bookmap I'm using becomes the output file name.
I've looked through help and through the demo transforms, but I'm not finding this. I see that I can do this for PS, HTML, or TXT output.
Is there a way to explicitly set the file name in Oxygen 10.x / DITA? _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Steve Matlock http://nohomeformyblog.blogspot.com/ Sent from Seattle, WA, United States

I don't know if this error is what it means or if there is a problem with the XML and/or XSL. But I am running this with the XSL-files that came with Oxygen and the validated XML-file uses standard TEI P5 with no changes: "SystemID: /home/espeo/BF/Forlag/BBv20esoarb.xml Engine name: Built-in (Apache FOP) Severity: error Description: The process 'FOP' ended with code: 1. The error was: License file saxon-license.lic not found. Running with licensable features disabled Nov 11, 2009 4:48:19 PM" I am running Oxygen 11.0, build 2009102316 under Ubuntu 9.10. These are my first experiments with generating PDF using Oxygen's built in transformation system, so the errors may still be mine. Espen Ore Holmestrand, Norway

Hello, The message about the license file saxon-license.lic is only a warning that does not stop the FOP processor. If you hover the mouse over the error line in the errors output view the whole error message is displayed in a tooltip. Also you can right click on the error and select Show Message to see the whole error message. Please post the error message and a sample TEI P5 file for reproducing it. Regards, Sorin Espen S. Ore wrote:
I don't know if this error is what it means or if there is a problem with the XML and/or XSL. But I am running this with the XSL-files that came with Oxygen and the validated XML-file uses standard TEI P5 with no changes:
"SystemID: /home/espeo/BF/Forlag/BBv20esoarb.xml Engine name: Built-in (Apache FOP) Severity: error Description: The process 'FOP' ended with code: 1. The error was: License file saxon-license.lic not found. Running with licensable features disabled Nov 11, 2009 4:48:19 PM"
I am running Oxygen 11.0, build 2009102316 under Ubuntu 9.10. These are my first experiments with generating PDF using Oxygen's built in transformation system, so the errors may still be mine.
Espen Ore Holmestrand, Norway

I have now run an external fop-engine and stored the fo-file (is there an option for that in Oxygen?). I believe I found the problem part in a biblStruct. This is from my TEI-file: <div><head>Andre oversettelser fra pali-tekstene </head><p>Vinayapitaka </p><biblStruct><analytic><editor>I.B. Horner</editor></analytic><monogr><title> The Book of the Discipline</title><imprint><biblScope>6 volumes, Vol. I (1938, 1992), Vol. II (1940, 1993), Vol. III (1942, 1993), Vol. IV (1951, 1993), Vol. V (1952, 1993), Vol. VI (1966, 1993)Set ISBN 254 4</biblScope></imprint></monogr> </biblStruct><p>Suttapitaka </p> This is from the fo-file where the biblStruct has been changed into a list-item: <block xmlns="http://www.w3.org/1999/XSL/Format">Vinayapitaka </block> <list-item xmlns="http://www.w3.org/1999/XSL/Format" space-before.optimum="4pt"> <list-item-label end-indent="label-end()"> <block text-align="start" font-weight="bold">I.B. Horner (ed.)</block> </list-item-label> <list-item-body start-indent="body-start()"> <block font-weight="normal">I.B. Horner (ed.) </block> <block font-weight="normal"><inline font-style="italic"> The Book of the Discipline</inline>, 6 volumes, Vol. I (1938, 1992), Vol. II (1940, 1993), Vol. III (1942, 1993), Vol. IV (1951, 1993), Vol. V (1952, 1993), Vol. VI (1966, 1993)Set ISBN 254 4. </block> </list-item-body> </list-item> <block xmlns="http://www.w3.org/1999/XSL/Format" text-indent="1em" space-before.optimum="0pt" space-before.maximum="12pt">Suttapitaka </block> ----------------------------------- Espen Sorin Ristache skrev:
Hello,
The message about the license file saxon-license.lic is only a warning that does not stop the FOP processor. If you hover the mouse over the error line in the errors output view the whole error message is displayed in a tooltip. Also you can right click on the error and select Show Message to see the whole error message. Please post the error message and a sample TEI P5 file for reproducing it.
Regards, Sorin
Espen S. Ore wrote:
I don't know if this error is what it means or if there is a problem with the XML and/or XSL. But I am running this with the XSL-files that came with Oxygen and the validated XML-file uses standard TEI P5 with no changes:
"SystemID: /home/espeo/BF/Forlag/BBv20esoarb.xml Engine name: Built-in (Apache FOP) Severity: error Description: The process 'FOP' ended with code: 1. The error was: License file saxon-license.lic not found. Running with licensable features disabled Nov 11, 2009 4:48:19 PM"
I am running Oxygen 11.0, build 2009102316 under Ubuntu 9.10. These are my first experiments with generating PDF using Oxygen's built in transformation system, so the errors may still be mine.
Espen Ore Holmestrand, Norway
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (3)
-
Espen S. Ore
-
Sorin Ristache
-
Stephen Matlock