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

multiple or statements in xsl:when

Subject: multiple or statements in xsl:when
From: Daniel Purucker <dpu@xxxxxxxxxxxxxxxxxx>
Date: Fri, 2 Apr 2004 18:37:30 +0200
xsl when multiple
Hi,
how can i get multiple or-statements inside an <xsl:when> working?
The FAQ gives an example for two or's and that works fine.

<xsl:if test="@name='John' or @name='Joe'">
  <xsl:text>Smith</xsl:text>
</xsl:if>

But using the following code doesn't work. I'd like to test if the element is named "void", if it has an attribute called property and if it has, whether the property has the value container or assetscontainer, and so on...

<xsl:when test="name(.)='void' and @property !='' and @property !=
'container' or
@property != 'container' or
@property != 'assetscontainer' or
@property != 'incomecontainer' or
@property != 'value' or
@property != 'variable' "
</xsl:when>

Any ideas why my code doesn't work? Thanx in advance,
Daniel Purucker

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.