Filtering content
All the values in at least one attribute must be set to
"exclude" for an element to be filtered out.
-
Create a DITA filter file in the directory where you want to add
the file. Give the file a descriptive name, such as
"audience-flag-build.ditaval".
-
Open the file, and type this content into it:
<?xml version="1.0" encoding="UTF-8"?>
<val> </val>
-
Define the property you want to exclude:
-
Find the attribute name. Type a new property to
exclude by adding a new line <prop att="" val="" action="exclude"/>.
-
Select the attribute ("audience", "platform",
"product", "otherprops") on which you want to exclude.
For example, "audience".
-
Type the value you want to exclude on.
For example, "programmer".
You can define more properties by following the steps
above. The final .ditaval file with the example values should look like
this:
<?xml version="1.0" encoding="UTF-8"?>
<val>
<prop att="audience" val="programmer" action="exclude"/>
</val>
-
When you publish output from the topic or map, specify the
filter file you want by using the parameter
/filter:{args.input.valfile} for the output options.
Content is excluded only when all the values in a single
attribute are set to exclude. For example, if you have a list item
that applies to programmer and administrator audiences, and you
exclude programmers, the list item will remain in the output
because it still applies to administrators.