choose

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

L'élément <xsl:choose> définit un choix parmi un certain nombre d'alternatives. Il se comporte comme l'instruction switch d'un langage procédural.

Syntaxe

xml
<xsl:choose>
  <xsl:when>
  <xsl:otherwise> [optionnel]
</xsl:choose>

Attributs obligatoires

Aucun.

Attributs optionnels

Aucun.

Type

Instruction, apparaît dans un modèle. Il contient un ou plusieurs éléments <xsl:when>, et éventuellement un élément final <xsl:otherwise>.

Définition

Support Gecko

Supporté.