PDF File Name using mainbooktitle element
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 21
- Joined: Wed Jun 28, 2023 11:49 pm
PDF File Name using mainbooktitle element
When I have a ditamap file named and the book map named running the PDF transform generates the output PDF as foo.pdf.
Is there a method to automatically rename the output PDF automatically to foobar.pdf possibly using args.output.base based on the mainbooktitle element (foobar)?
I currently set the args.output.base value to, which prompts me to use the default (foo) or change the name to something else, such as foobar.
I am in the process of converting many ditamaps with long file names containing dates and other descriptors. I know I can rename the ditamap files, but I wanted to keep those as is for now.
Code: Select all
foo.ditamap
Code: Select all
foobar
Is there a method to automatically rename the output PDF automatically to foobar.pdf possibly using args.output.base based on the mainbooktitle element (foobar)?
I currently set the args.output.base value to
Code: Select all
${ask('Message', input_type, '${cfn}')}
I am in the process of converting many ditamaps with long file names containing dates and other descriptors. I know I can rename the ditamap files, but I wanted to keep those as is for now.
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: PDF File Name using mainbooktitle element
Hi,
Maybe as value for the "args.output.base" param you could use our ${xpath_eval()} editor variable:
post54730.html#p54730
https://www.oxygenxml.com/doc/ug-editor ... ables.html
Regards,
Radu
Maybe as value for the "args.output.base" param you could use our ${xpath_eval()} editor variable:
post54730.html#p54730
https://www.oxygenxml.com/doc/ug-editor ... ables.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service