<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>

<xsl:template match="/">
<result>
    <xsl:choose>
        <xsl:when test="count(//list/elm[text()='10'])>0">
            <xsl:value-of select="//if10inlist"/>
        </xsl:when>
        <xsl:otherwise>
            <xsl:value-of select="//if10notinlist"/>
        </xsl:otherwise>
    </xsl:choose>
</result>
</xsl:template>

</xsl:stylesheet>
