xsl-list
[Top] [All Lists]

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

2012-06-15 06:54:38
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--