Here's the following pseudo code I'm achieving:
if {./jobtype eq 1} jobbackgroundcolor='#ffffff';
if {./jobtype eq 2} jobbackgroundcolor='#000000';
if {./jobtype eq 3} jobbackgroundcolor='#ababab';
if {./jobtype eq 4} jobbackgroundcolor='#eac123';
if {./jobtype eq 5} jobbackgroundcolor='#eacddd';
I don't know how to set the jobbackgroundcolor to a variable so I can essentially do this:
<a href="" style="background-color:{$jobbackgroundcolor}"></a>
Of course the code is pseudo code so any concrete implementations would be great.
xsl:choose. Please post an example of the input and the expected output, if you want a more detailed answer.