Hi everyone,
I would like to use DITA-OT
project files to define and manage deliverables, but I'm running into
issues when I try to use them for our content. In this post, I will
share my experiences and hopefully get some discussion going (and more
hopefully, move toward solutions!).
1. Can't control PDF output name from <deliverable>
We publish multiple PDFs from the same map via @product profiling and DITAVAL files. We use the outputFile.base parameter to control the output PDF file name. For example,
dita --input=prod_ug.ditamap
--format=pdf
\
--filter=filter_prodA.ditaval \
-DoutputFile.base=prodA_ug
dita --input=prod_ug.ditamap --format=pdf \
--filter=filter_prodB.ditaval \
-DoutputFile.base=prodB_ug
Unfortunately, the <deliverable> element does not provide a corresponding way to control the output filename. I can set the outputFile.base argument from the <publication> element, but it is not practical to create hundreds of unique <publication> elements to capture each file name.
2. Can't apply review/final DITAVAL flagging from <publication>
We have review and final PDF flavors, with DITAVAL files to flag @rev and @audience attributes accordingly:
dita --input=prod_ug.ditamap --format=pdf \
--filter=filter_prodA.ditaval:flag_review.ditaval \
-DoutputFile.base=prodA_ug
dita --input=prod_ug.ditamap --format=pdf \
--filter=filter_prodA.ditaval:flag_final.ditaval \
-DoutputFile.base=prodA_ug
Unfortunately when I configure a flagging DITAVAL file in a <publication>, it is ignored:
<publication transtype="pdf2" id="pub-pdf-review">
<param name="args.draft" value="yes"/>
<param name="args.filter" value="flag_review.ditaval"/>
</publication>
<publication transtype="pdf2" id="pub-pdf-final">
<param name="args.draft" value="no"/>
<param name="args.filter" value="flag_final.ditaval"/>
</publication>
I
welcome any first-hand experience on these (or other!) DITA-OT project
file topics. I also welcome any "armchair engineering" you'd like to
engage in. :)
Thanks!
- Chris