xsl-list
[Top] [All Lists]

[xsl] Multiple expressions in if conditons

2007-02-16 07:20:48
Hi Folks

I am using xslt 1.0. I am facing the problem in if conditions. Any
suggestions are welcome

My XSL
<xsl:for-each select="//*">
<xsl:variable name="code" select="name()" />
<xsl:variable name="value" select="." />
<xsl:if test= "$code != ('state_results') or ('game_results')">
<subject_code><xsl:value-of select="name()"/></subject_code>
<subject_value><xsl:value-of select="."/></subject_value>
<xsl:text disable-output-escaping="yes">&#10;</xsl:text>
</xsl:if>
</xsl:for-each>

I am not able to test multiple value using if condition. i want to
confirm whether my if conditon is correct for checking multiple value

Regards
Srinivas

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>