Subject: Re: [xsl] shortest way to write this xsl:if statement From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 15 Jun 2012 07:59:01 -0400 |
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>
D4/G100/X = 'A' or D4/G100/X = 'B' or D4/G100/X = 'C' or D4/G100/Y = 'A' or D4/G100/Y = 'B' or D4/G100/Y = 'C' or D4/G100/Z = 'A' or D4/G100/Z = 'B' or D4/G100/Z = 'C'
-- Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012 Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] shortest way to write this xs, henry human | Thread | Re: [xsl] shortest way to write thi, henry human |
[xsl] shortest way to write this xs, henry human | Date | Re: [xsl] shortest way to write thi, henry human |
Month |