Reputation: 915
I had a problem with conditional statement in XSLT. I have simple conditional block with one variable $address and one constant in $buyer variable:
<xsl:if test="$address=$buyer>
(.... some content)
</xsl>
Now I got additional variable $supplier that need also the same content like $buyer
So I need something like if test="$address=$buyer ||/or $address=$supplier"
but followed code break my program:
<xsl:if test="$address=$buyer || $address=$supplier" >
My question is how to make this conditional statement correctly?
Upvotes: 0
Views: 29
Reputation: 1176
You have to use XPath operators. In this case "or":
More info:
http://www.w3schools.com/xpath/xpath_operators.asp
Upvotes: 1