I've got 2 fields in my list defined as numbers, @TotalSeats with a current value of 10 and @FilledSeats with a current value of 0. I'm trying to use some XSL Variables to handle some display logic later on in my DVWP. The issue I'm having is these fields do not want to evaluate properly.
I have this:
<xsl:variable name="IsUnlimited" select="@TotalSeats = 0" /> <xsl:variable name="Available" select="@FilledSeats < @TotalSeats"/> <xsl:variable name="IsAvailable" select="$IsUnlimited or $Available > 0" />
IsUnlimited evaluates to false which is expected since it has a value of 10. Available always evaluates to false which I cannot understand why. I've tried @TotalSeats - @FilledSeats and number(@TotalSeats - @FilledSeats) and number(@TotalSeats) - number(@FilledSeats) without success.
If I use the Expression Designer interface in SPD, I can see that it is seeing the values as 10 and 0 and will evaluate to true, however when the page is loaded in the browser, the variables are all evaluating to false.