Reputation: 1189
I am making a condition in when element, and I am having errors while validating file. I think the problem is with '<' elements but I do not know how that should looks like. issue/volume and issue/number, these are values from nodes
<xsl:when test="issue/volume='3' and issue/number < 4 or issue/volume < 3">...</xsl:when>
Upvotes: 0
Views: 129
Reputation: 70598
You should really have said what error messages you got, but for the particular code sample you have shown you do need to escape the <
symbols as <
<xsl:when test="issue/volume='3' and issue/number < 4 or issue/volume < 3">...</xsl:when>
Or, if you are using XSLT 2.0, you can use lt
instead
<xsl:when test="issue/volume='3' and issue/number lt 4 or issue/volume lt 3">...</xsl:when>
Upvotes: 3