<xsl:if test="$x = 2"> ... </xsl:if>
<xsl:choose> <xsl:when test="$x = 1"> ... </xsl:when> <xsl:when test="$x = 2"> ... </xsl:when> <xsl:otherwise> ... </xsl:otherwise> </xsl:choose>