1<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 2 <xsl:template match="a[@type='b']" > 3 <xsl:if test="position()"/> 4 </xsl:template> 5 <xsl:template match="a[@type='XX'][.]"/> 6</xsl:stylesheet> 7