MaKSiNG
Technical User
- Dec 4, 2003
- 19
Hi All,
Can someone tell me how to do an <xsl:when> statement testing for one condition 'OR' another, as well as one condition 'AND' another?
This is the gist of it but it obviously does not work:
I want the template to be called if the first node contains Text1 or Text2 but the second node must also contain Text3.
Thx,
MaKS
Can someone tell me how to do an <xsl:when> statement testing for one condition 'OR' another, as well as one condition 'AND' another?
This is the gist of it but it obviously does not work:
Code:
<xsl:choose>
<xsl:when test="record/item/value='Text1' OR 'Text2' AND record/item/value/item/value='Text3' ">
<xsl:call-template name="MyTemplate1"></xsl:call-template>
</xsl:when>
</xsl:choose>
I want the template to be called if the first node contains Text1 or Text2 but the second node must also contain Text3.
Thx,
MaKS