9.5 Assigning attributes with conditional flags

To assign an attribute to conditionally flagged elements:

[ConditionAttributes]
; flag name = attribute name=value pair for output, usually class
flagname = attrname="value"

For example:

[ConditionAttributes]
blueback= class="bluebg"

Typically this setting is used to assign a CSS class name, which is appended to any other class attribute so that the flag properties can be defined in CSS. This setting has no effect in RTF output.

For HTML output only, the names of any flags to which you have not explicitly assigned a class attribute here become the class names themselves (class="flagname"). If an element has multiple unassigned flags, all are applied; for the HTML class attribute, that means all the class names appear as a space-delimited list in the attribute. Unassigned flags are ignored for XML output.

Previous Topic:  9.4.3 Highlighting conflicting flag properties

Next Topic:  9.6 Scoping and filtering within maps

Parent Topic:  9. Specifying conditional processing

Sibling Topics:

9.1 Extracting conditions from ditaval files

9.2 Defining conditional actions

9.3 Including flags for ditaval conditions

9.4 Configuring conditional flags

9.6 Scoping and filtering within maps

Table of ContentsIndex