<xsl:template match="number">
<xsl:choose>
<xsl:when test=".[value()$gt$10]">OK</xsl:when>
</xsl:choose>
</xsl:template>

解决方案 »

  1.   

    <xsl:template match="tag">
    <xsl:choose>
    <xsl:when test="number/text()>10">10+</xsl:when>
    <xsl:otherwise>10-</xsl:when>
    </xsl:choose>
    </xsl:template>
      

  2.   

    <xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
    <xsl:template match="number">
    <xsl:choose>
    <xsl:when test=" current() &gt; 10 ">YES <br/></xsl:when>
    <xsl:otherwise>NO<br/></xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>
      

  3.   

    谢谢你们 问题解决了 
    给你们算分  分比较少不好意思我是搞J2EE的  现在在弄AJAX  对XSL不熟悉,天天上班  时间也比较紧所以麻烦2位了 由于第一位朋友  挺帮我忙的  我的2个帖子 他都有回答 
    所以  我多给他一些  请见谅~