Hallo,
<td>
<xsl:value-of select="/modul/tabelle2/*[local-name()=name(current())][@name=current()/attribute::name]"/>
<xsl:if test="/modul/tabelle2/*[local-name()=name(current())][@name=current()/attribute::name]!=current()">
Ungleich
</xsl:if>
</td>
</tr>
</xsl:for-each>
</xsl:template>
<xsl:variable name="cellStyle">
xsl:choose
<xsl:when test="/modul/tabelle2/*[local-name()=name(current())][@name=current()/attribute::name]!=current()">background-color: #FF0000;</xsl:when>
xsl:otherwisebackground-color: #000000;</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<td style="{$cellStyle}">
<xsl:value-of select="/modul/tabelle2/*[local-name()=name(current())]
</td>
Viele Grüße
Siri