Filtering content

All the values in at least one attribute must be set to "exclude" for an element to be filtered out.
  1. 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".
  2. Open the file, and type this content into it:
    <?xml version="1.0" encoding="UTF-8"?> 
    <val> </val>
  3. Define the property you want to exclude:
    1. Find the attribute name. Type a new property to exclude by adding a new line <prop att="" val="" action="exclude"/>.
    2. Select the attribute ("audience", "platform", "product", "otherprops") on which you want to exclude. For example, "audience".
    3. 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>
  4. 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.