Simple conditional (no "else")
<xsl:if test="{$somecondition}"> <xsl:text>this text only gets used if $somecondition is true()</xsl:text> </xsl:if>
Select among alternatives with <xsl:when> and <xsl:otherwise>
<xsl:choose> <xsl:when test="$count > 2"><xsl:text>, and </xsl:text></xsl:when> <xsl:when test="$count > 1"><xsl:text> and </xsl:text></xsl:when> <xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise> </xsl:choose>