Hello,
Using the code below I get the results I'm expecting.
Code:
<xsl:variable name="varDenialCRC">
<xsl:choose>
<xsl:when test="../../CRCDATA/CRCDATALINE[CRCFUNCTION='900' and CRCOVERRIDE!='']">
Y
</xsl:when>
<xsl:otherwise>
N
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="RC[.!=''] and RCOVERRIDE[.!='Y']">
<xsl:value-of select="$varDenialCRC"/>
<xsl:value-of select="RC"/>
</xsl:if>
Line 1 prints: Y 01
Line 2 prints: Y 01
Line 3 prints: N 01
However, when I include a test using varDenialCRC I get nothing printing out!
Code:
<xsl:variable name="varDenialCRC">
<xsl:choose>
<xsl:when test="../../CRCDATA/CRCDATALINE[CRCFUNCTION='900' and CRCOVERRIDE!='']">
Y
</xsl:when>
<xsl:otherwise>
N
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="RC[.!=''] and RCOVERRIDE[.!='Y'] and $varDenialCRC='N'">
<xsl:value-of select="$varDenialCRC"/>
<xsl:value-of select="RC"/>
</xsl:if>
I'm expecting the following:
Line 1 prints:
Line 2 prints:
Line 3 prints: N 01
but the following is the result:
Line 1 prints:
Line 2 prints:
Line 3 prints:
I cant see what the issue is!
Any help is greatly appreciated.
Thanks,
Rita