--- title: when slug: Web/XSLT/Element/when tags: - Référence_XSLT translation_of: Web/XSLT/Element/when original_slug: Web/XSLT/when --- {{ XsltRef() }} L'élément `` apparaît toujours dans un élément ``, et se comporte comme une structure conditionelle 'case'. ### Syntaxe MODÈLE ### Attribut obligatoire - `test` - : Définit une expression booléenne à évaluer. Si elle est vraie, le contenu de l'élément est exécuté ; sinon, il est ignoré. ### Attributs obligatoires Aucun. ### Type Sous-instruction, apparaît toujours dans un élément ``. ### Définition [XSLT 1.0, section 9.2](http://www.w3.org/TR/xslt#section-Conditional-Processing-with-xsl:choose). ### Support Gecko Supporté.