--- title: choose slug: Web/XSLT/Element/choose tags: - Todas_las_Categorías - XSLT translation_of: Web/XSLT/Element/choose original_slug: Web/XSLT/choose ---
{{XsltRef}}
El elemento <xsl:choose>
define una elección entre un número de alternativas. Funciona como una sentencia switch en los lenguajes procedurales.
<xsl:choose> <xsl:when> <xsl:otherwise> [opcional] </<xsl:choose>
Ninguno.
Ninguno.
Instrucción, aparece con una plantilla. Contiene uno o mas elementos <xsl:when>
, y, opcionalmente, un elemento <xsl:otherwise>
final.
XSLT, sección 9.2.
Soportado.