Leximation
 Tools and Solutions for Print and Online Publishing
Gears

Leximation blog:

User links:

Login / Register
Username: Forgot?
Password:
 Remember me [?]

Conditional CHM - This set of files provides an example of one method for conditionalizing content in a CHM (or HTML) file. This method uses CSS classes to hide/show certain elements, but instead of compiling the CSS into the CHM file, the CSS lives as a separate file outside of the CHM. This CSS would be installed (copied) to the proper location by the installation or other external application.

Note that because this only "hides" the content, it is still available via Search (search on "prod2" when the "Prod 1" CSS is in use). It also does not provide for conditionalized Index or TOC. However, this may give you some ideas about interesting ways to manage alternate types of content in an HTML-based Help system.

This example contains a working CHM and source files.

download conditionalchm.zip v.1.00 [13KB]