xml: <moment mid="1"><name>foo</name></moment> xsl: //moment/name //moment/@mid
<xsl:choose> <xsl:when test="mid = //values/mid"> ... </xsl:when> <xsl:otherwise> ... </xsl:otherwise> </xsl:choose>
http://www.dpawson.co.uk/xsl/sect2/N8090.html#d10871e79