Guidelines for creating attribute filter rules.
When you create a filter rule, you can choose to use the Add Rule button or you can enter the rule in the Expression box manually. When you choose to save a rule, FrameMaker checks the rule syntax. You cannot save a rule with an incorrect syntax.
The name of an attribute in a rule is case-sensitive. However, the value of the attribute is case-insensitive.
(audience="ADMIN" OR audience="enduser")
The above rule will filter content that is tagged with the attribute value ADMIN, Admin, or admin.
(audience="admin" OR Audience="enduser")
The attribute name must be defined with the same case as defined in the Attributes panel.
The value of an attribute must be enclosed within double-quote and cannot be empty.
(audience="")
Do
not use this rule to filter elements having any value for attribute.
Instead, use the ANY
operator described
above.
Each attribute name-value pair must be included within parenthesis.
Include only the same attribute within the same parenthesis.
(audience="admin" OR audience="enduser"
OR audience="author")
(audience="admin" AND product="framemaker")
Only the same attributes can be included in the same parenthesis.
audience="admin" OR audience="enduser"
OR audience="author"
The name-value pairs must be included in parenthesis. Even a single name-value pair must be included in parenthesis.
The AND operator cannot be used to filter the same attribute. It can only be used to filter different attributes.
(audience="admin" AND audience="enduser")
(audience="admin" OR audience="enduser")
AND (product="framemaker")
The NOT operator must be included before the opening parenthesis of an attribute name-value group.
(audience="admin") AND (NOT product="framemaker")
(audience="admin") AND NOT (product="framemaker")
NOT (product="framemaker")
To filter the content tagged with any value of an attribute.
(audience #ANY)
The above rule includes all content tagged with the audience attribute irrespective of the value of the attribute.
NOT (audience #ANY)
The above rule excludes all content tagged with the audience attribute irrespective of the value of the attribute.