cf2:cst.Switch

Purpose

Conditionally selects one of a number of alternative cases. Each case has an associated test, and only the first item which matches the test is processed.

Exported Features

cf2:cst.Switch

Imported Features

n/a

Markup

This component is represented by the cst:switch element. It can contain one or more cst:case elements followed by an optional cst:otherwise element. The cst:case element tests the value of the cst:switch element against a fixed value, and if they are equal, then the element is selected for processing. The cst:otherwise element specifies a case to be selected for processing if none of the cst:case elements within the containing cst:switch element are selected.

Related topics