Matching language attributes can also be accomplished via a lang() function.
Example:
<terms> <term xml:lang="en"></term> <term xml:lang="fr"></term> <term xml:lang="pl"></term> </terms>
to find the Polish language term:
<xsl:template match="term[lang('pl')]"> Polish: <xsl:apply-templates/> </xsl:template>