Learn to apply filter attributes in a DITA topic in Adobe FrameMaker.
You can make elements in a DITA topic conditional by applying values to the attribute of the elements. You then create a filter in which you define the rules to include and exclude content based on the element attribute values.
Before you create topics with conditional content, you need to first plan the criteria for the output. For example, say that a topic has content that is conditionally targeted at administrators and end users. In the topic, you apply attribute values based on the target audience of the content (see Create attribute filters). You then create a filter in FrameMaker in which you specify the elements to include and exclude based on the attribute value defined in the topic (see Create attribute filters).
To apply attributes to an element, do the following:
Select the element in the topic.
You can select the element in the Structure View or in the Document view.
Chooe Attributes panel and enter the value for the specific element attribute.
to open theYou do not need to apply attributes to every element in your topic. You only need to apply attributes to elements that need to be conditionally filtered.
To allow FrameMaker to conditionally process elements in a DITA topic, you need to specify the elements to include or exclude from the output based on the attribute values.
For example, you can
set the @audience
attribute values for the an element
to admin
, enduser
,
and author
depending on the target
audience.
You can set a value to any attribute in the elements in a DITA topic. You can then filter the content based on the specified attribute values.
You can use the Smart Catalog shortcut to apply attribute values to an element:
Press ctrl+7 to display the Smart Catalog to set one or more attribute values for the current element.
From the Smart Catalog select the required attribute.
The Attributes panel displays with the attribute selected.
Enter the attribute value.