I have the following variable quarter defined and I want to increment it's current value by one in my XSL sheet if it's value does not equal 4.
I have the following code:
<xsl:if test="not($quarter=4)">
</xsl:text><xsl:value-of select="$quarter+1" />
</xsl:if>
But this does not work - does anyone have an idea of how I can add 1 to my $quarter variable?
This cannot work due to the /xsl:text tag. Does the if statement really work? Try by outputing the variable with xsl:message. Aside from that, check that the variable actually stores a number, and, if it does, try explicitely casting the variable contents as a number using an xpath function.