Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

choose


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

<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

XSLT 1.0, section 9.2.

Support Gecko

Supporté.

Interwiki Languages Links

Étiquettes et contributeurs liés au document

 Contributeurs à cette page : VincentN, Fredchat
 Dernière mise à jour par : VincentN,