Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - >Thread Next - RE: [xsl] multiple or statements in xsl:when [xsl] multiple or statements in xsl:whenTo: Date: 4/2/2004 7:33:00 AM 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
