c:switch

<c:switch
  value = expression >
  <!-- Content: (c:when+, c:otherwise?) -->
</c:switch>

Chooses between multiple alternatives for a given value.

Category
instruction
Permitted parent elements
Any XCST element whose content model is sequence-constructor
Any literal result element

Attributes

value The value to match.

In addition to the attributes in the preceding table, there are a number of standard attributes that may appear on any XCST element.