Lösung: Condition & Variable
<xsl:template match="cd">
<xsl:variable name="farbe">
<xsl:choose>
<xsl:when
test="preis">orange</xsl:when>
<xsl:otherwise>lightgrey</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tr style="background: {$farbe}">
<td><xsl:value-of
select="titel"/></td>
</tr>
</xsl:template>