[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Multiple expressions in if conditons

Subject: Multiple expressions in if conditons
From: "Thangavelu Srinivasan" <vasantry@xxxxxxxxx>
Date: Fri, 16 Feb 2007 19:50:28 +0530
 Multiple expressions in if conditons
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.