         <xsl:variable name="etargets" select="key('id',@endterm)"/>             <xsl:variable name="etarget" select="$etargets[0]"/>             <xsl:choose>               <xsl:when test="count($etarget) = 0">             