DITA filtering with default content
Posted: Mon Feb 01, 2021 6:03 pm
Say I have the sets of paragraphs:
If published for use in countries which use ANSI, then the first paragraph in the first set should be included, and the default value in the second set (and similarly for OSHA and ISO).
What is the best way to implement this? I thought of using a conkeyref with audience filtering and a conref to the default value if no specific value is found?
Code: Select all
<p audience="ANSI">According to ANSI legislation ... </p>
<p>Refer to local legislation.</p>
Code: Select all
<p audience="OSHA">According to OSHA legislation ... </p>
<p audience="ISO">According to ISO legislation ... </p>
<p>Refer to local legislation.</p>
If published for use in countries which use ANSI, then the first paragraph in the first set should be included, and the default value in the second set (and similarly for OSHA and ISO).
What is the best way to implement this? I thought of using a conkeyref with audience filtering and a conref to the default value if no specific value is found?