Using a ditaval file in a ditamap
Posted: Mon May 28, 2018 3:01 pm
Or whatever will work for my use case...
I have a number of ditamaps, each of which produces its own manual. A single transformation scenario converts them into pdf (I have another for webhelp). Typically, I want to generate a number of manuals in one go, rather than each separately.
Some dita topics are used in all of the ditamaps. They contain "product" attributes so that I can include or exclude the corresponding product name in each manual.
I define a ditaval file for each product which determines which parts are excluded or included.
How does this then work together? How can I get a ditamap to reference the ditaval file so that only the correct ditaval file is used when building?
I can right-click the ditamap in the DITA Maps Manager and select Edit Preferences. There are a range of options to configure the profile, but nothing I do here has any effect. I just get all of my conditional text, regardless of what I select. Have I missed something here?
The only two ways I find to exclude text are:
I have a number of ditamaps, each of which produces its own manual. A single transformation scenario converts them into pdf (I have another for webhelp). Typically, I want to generate a number of manuals in one go, rather than each separately.
Some dita topics are used in all of the ditamaps. They contain "product" attributes so that I can include or exclude the corresponding product name in each manual.
I define a ditaval file for each product which determines which parts are excluded or included.
How does this then work together? How can I get a ditamap to reference the ditaval file so that only the correct ditaval file is used when building?
I can right-click the ditamap in the DITA Maps Manager and select Edit Preferences. There are a range of options to configure the profile, but nothing I do here has any effect. I just get all of my conditional text, regardless of what I select. Have I missed something here?
The only two ways I find to exclude text are:
- Use the "funnel" filter option at the top of the DITA Maps Manager. This applies the filter correctly, but it is global, i.e. I cannot use different filters for different ditamaps in one build.
- Set the ditaval file in the transformation scenario. This applies the same ditaval to all ditamaps when I build a number. Again, this is effectively a global solution.