ÈËÍæ¹ý
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" encoding="gb2312"/> <xsl:template match="/"> <xsl:for-each select="project/subject/option"> <xsl:if test="id[.=251905]"> <xsl:value-of select="count"/> </xsl:if> </xsl:for-each> </xsl:template> </xsl:stylesheet>