-----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 >= number(current())][1]/@color}"
align="right">
...
Hmm. Maybe needs some extra braces:
bgcolor="{(/colormap/color[(_at_)min >= number(current())]
)[1]/@color}"
Cheers,
Andreas