audience filter behavior when ditaval file is not found during publishing
Posted: Fri Apr 28, 2023 1:22 pm
I'm building webhelp output (using v25.1), and I use DITAVAL files to filter on the audience attribute.
When, during the build the file reference to a ditaval file is invalid, an error is printed. Here, I intentionally renamed the ditaval file to reproduce it
So, I see an error in the build output
[ditaval-merge] [DOTJ071E][ERROR] Cannot find the specified DITAVAL 'file:/C:/..........................l'.
But instead of aborting, the build just continues. No audience filter is applied. I don't want this behavior, because I might accidently expose too much information or incorrect information due to the missing audience filter.
I'm looking to:
- either: make the build abort on this error; instead of continuing
- or can I specify a default / fallback audience value (in the ditamap) ? I would set this to a default that excludes everything ; and will easily spot that the output is mostly empty.
Any known ways to achieve this?
fragment of the .framework file:
When, during the build the file reference to a ditaval file is invalid, an error is printed. Here, I intentionally renamed the ditaval file to reproduce it
So, I see an error in the build output
[ditaval-merge] [DOTJ071E][ERROR] Cannot find the specified DITAVAL 'file:/C:/..........................l'.
But instead of aborting, the build just continues. No audience filter is applied. I don't want this behavior, because I might accidently expose too much information or incorrect information due to the missing audience filter.
I'm looking to:
- either: make the build abort on this error; instead of continuing
- or can I specify a default / fallback audience value (in the ditamap) ? I would set this to a default that excludes everything ; and will easily spot that the output is mostly empty.
Any known ways to achieve this?
fragment of the .framework file:
Code: Select all
<field name="filters">
<ditavalFilters>
<field name="useDitavalFilePath">
<Boolean>true</Boolean>
</field>
<field name="useAppliedConditionSet">
<Boolean>false</Boolean>
</field>
<field name="appliedConditionSet">
<null/>
</field>
<field name="ditavalFilePath">
<String>${pd}/ditaval/mistake_so_file_does_not_exist.ditaval</String>
</field>
<field name="simpleFiltersList">
<list/>
</field>
</ditavalFilters>
</field>