Multiple keyword values for a single keydef, in one output?
Posted: Thu Aug 17, 2017 5:58 pm
Hello
We'd like to publish a single output for multiple domain types, using keydefs to populate terms specific to each domain. The goal is to avoid hardcoding terms that may change in future (and would therefore require manual/Find and Replace updating). Our topics are contained within a "user_guide.ditamap", which contains a "product_variables.ditamap", which contains the keydefs and their keyword values. Our current transformation scenario for the PDF output is filtered using a .ditaval file. We're using oXygen XML author 18, DITA-OT 1.8.5, Mac OS X version 10.11 (El Capitan)
For example, we'd like to be able to have a single topic containing multiple instances of
Where the 'Domain' keyword would populate as follows
The .ditaval for the output would be set as follows:
That way, when we product a single PDF output, we'll have a topic containing the following sections
"Example Term for domain A Charts"
"Example Term for domain B Charts"
"Example Term for domain C Charts"
However, during the PDF transformation, oXygen populates all
with 'Term for domain A'. If we change the keyword order in our product_variables.ditamap, say
Then all populate with 'Term for domain B' upon PDF transformation.
We've tried inserting <ph domain="b"><keyword keyref="Domain"/></ph>, to enable the output to display 'Term for domain B' in the appropriate sections, but find that doing so omits any value in the output.
Is it possible to produce a single output with keydefs populated with different values?
Thanks,
Ren
We'd like to publish a single output for multiple domain types, using keydefs to populate terms specific to each domain. The goal is to avoid hardcoding terms that may change in future (and would therefore require manual/Find and Replace updating). Our topics are contained within a "user_guide.ditamap", which contains a "product_variables.ditamap", which contains the keydefs and their keyword values. Our current transformation scenario for the PDF output is filtered using a .ditaval file. We're using oXygen XML author 18, DITA-OT 1.8.5, Mac OS X version 10.11 (El Capitan)
For example, we'd like to be able to have a single topic containing multiple instances of
Code: Select all
<section id="example_charts"><title>Example
<keyword keyref="Domain"/> Charts</title></section>
Code: Select all
<keydef keys="Domain">
<topicmeta>
<keywords>
<keyword>Term for domain A</keyword>
<keyword>Term for domain B</keyword>
<keyword>Term for domain C</keyword>
</keywords>
</topicmeta>
</keydef>
Code: Select all
<prop att="domain" val="a" action="include"/>
<prop att="domain" val="b" action="include"/>
<prop att="domain" val="c" action="include"/>
"Example Term for domain A Charts"
"Example Term for domain B Charts"
"Example Term for domain C Charts"
However, during the PDF transformation, oXygen populates all
Code: Select all
<keyword keyref="Domain"/>
Code: Select all
<keydef keys="Domain">
<topicmeta>
<keywords>
<keyword>Term for domain B</keyword>
<keyword>Term for domain C</keyword>
<keyword>Term for domain A</keyword>
</keywords>
</topicmeta>
</keydef>
We've tried inserting <ph domain="b"><keyword keyref="Domain"/></ph>, to enable the output to display 'Term for domain B' in the appropriate sections, but find that doing so omits any value in the output.
Is it possible to produce a single output with keydefs populated with different values?
Thanks,
Ren