Hi,
This is a snippet of my XSLT
<xsl:for-each select = "SAFS_LOG/LOG_MESSAGE">
<xsl:choose>
<xsl:when test="@type = 'FAILED'">
<xsl:variable name="isFailed" select="@type" />
<BR> "FAILED" </BR>
</xsl:when>
<xsl:when test="@type = 'END DATATABLE'">
<xsl:if test = "not('FAILED'=$isFailed)">
<BR> "PASSED" </BR>
</xsl:if>
</xsl:when>
</xsl:choose>
</xsl:for-each>
I am looping an XML file. If I get an attribute named 'type' with a
value of 'FAILED',
I would like to assign that value to a variable, then in the next
conditional statement
if that variable does not contain the value 'FAILED', I would like to
create a pass.
However, when I run the tansform, I receive a variable not resolved or
defined error.
Could you please help?
Aidy