xsl-list
[Top] [All Lists]

RE: xsl:if statement with numeric

2004-03-28 03:22:49
-----Original Message-----
From: Andreas L. Delmelle [mailto:a_l(_dot_)delmelle(_at_)pandora(_dot_)be]

<snip />

Then you could avoid all the xsl:choose / xsl:if logic by merely fetching
the color value corresponding to the number value in question, like

<xsl:template match="monat">
  <td bgcolor="{/colormap/color[(_at_)min &gt;= number(current())][1]/@color}"
      align="right">
...

Hmm. Maybe needs some extra braces:

bgcolor="{(/colormap/color[(_at_)min &gt;= number(current())]
           )[1]/@color}"


Cheers,

Andreas



<Prev in Thread] Current Thread [Next in Thread>