Saturday, 27 September 2014

XSL:if test not working as expected




<!--
Major: <xsl:if test="major[@Year > 2008]">
<xsl:value-of select="major"/> ,
declared in: <xsl:value-of select="major[@Year]"/>
</xsl:if>-->


XML code: <major Year="2010">CS:BS</major>


Hi guys,


Im trying to get only majors whose Year is greater than 2008, for some reason im getting the wrong output.


thanks


No comments:

Post a Comment