Comparing Variables
Posted: Tue Apr 01, 2014 8:30 pm
I am trying to compare xsl variable but its not printing anything out.
Code: Select all
<tr>
<td class="gpl">Applied</td>
<td class="gl">
<xsl:variable name="vGRAD" select="/Rpt/Dg/Cust[@Code='GRADMJ']"/>
<xsl:variable name="vMAJ" select="/Rpt/Fop/Gl[@Code='MAJ']"/>
<xsl:choose>
<xsl:when test="$vGRAD = $vMAJ">YES</xsl:when>
<xsl:when test="$vGRAD != $vMAJ">NO</xsl:when>
</xsl:choose>
</td>
</tr>