[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] shortest way to write this xsl:if statement


Subject: [xsl] shortest way to write this xsl:if statement
From: henry human <henry_human@xxxxxxxx>
Date: Fri, 15 Jun 2012 12:54:21 +0100 (BST)

Hello
The following if statement is too long if try it as in the sample
bellow.
How could be shorter?
The if - logic to create a for-each loop:
----------------
xsl:if
D4/G100/6id  or D4/G100/9id or D4/G100/12id or
D4/G100/6id15 or D4/G100/45id or D4/G100/22id, D4/G100/10id
or D4/G100/19id is
'A' or 'B' or 'C', or 'D' or 'F'

The Sample:
<xsl:if test="D4/G100/6id = 'A'
OR test="D4/G100/6id = 'B' OR test="D4/G100/6id = 'C' OR test="D4/G100/9id =
'A' OR test="D4/G100/9id = 'B' .....>

<xsl:for-each select=" ......">
...
</xsl:for-each>

</xsl:if>
---------------

kind regards
hh


Current Thread