Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

13 Converting to HTML/XHTML > 13.10 Converting conditions to HTML attributes > 13.10.3 Displaying condition indicators in HTML with CSS


13.10.3 Displaying condition indicators in HTML with CSS

You can use CSS to make the FrameMaker conditions transferred to HTML attributes stand out, by setting flags to display the original condition indicators such as color, underline, and strikethrough:

[ConditionOptions]

; UseConditionalFlagging = No (default, do not include flags)

; or Yes (set flags per conditions)

UseConditionalFlagging = Yes

; CSSFlagsFile = name of CSS file to use for flagging classes for

; HTML outputs. If not specified, related settings below ignored.

CSSFlagsFile = flags.css

; WriteFlagsFile = Yes (default, write in project directory) or

; No (do not write)

WriteFlagsFile = Yes

; ReferenceFlagsFile = Yes (default, reference after main CSS file

; in output document head) or No (do not reference).

ReferenceFlagsFile = Yes

When UseConditionalFlagging=Yes, Mif2Go writes class="condition_name" into the HTML, or prepends condition_name to an existing class attribute. This works because a class attribute can have multiple values, separated by spaces. When there is a CSS rule for more than one of them, the rules are additive. If a particular property has contradictory settings, such as two different colors, the later of the two in the CSS file overrides the earlier; the order in the class attribute does not matter.

CSS file name is required

You must specify a name for CSSFlagsFile if you want the CSS file written and referenced in HTML output. By default, the CSS file is placed in the project directory.

Colors are not combined

In preparing the CSS rules for condition indicators, Mif2Go does not try to combine colors. If multiple conditions with different color indicators are applied to the same text in FrameMaker, the last applicable selector in the CSS file overrides any that precede it.



13 Converting to HTML/XHTML > 13.10 Converting conditions to HTML attributes > 13.10.3 Displaying condition indicators in HTML with CSS