Christian Seiler: Eine Zeile einer Tabelle in XML hervorheben

Beitrag lesen

Hallo nochmal,

xsl:choose

<xsl:when test="position() mod 2 = 0">
              <xsl:attribute name="style">background-color: #fcc;</xsl:attribut
            </xsl:when>
            xsl:otherwise
              <xsl:attribute name="style">background-color: #ccf;</xsl:attribut
            </xsl:otherwise>
          </xsl:choose>

  
Das Copy-&-Paste hat mir das "e>" von </xsl:attribute> geklaut, ich hoffe, das ist auch so klar, dass das da hin gehört. ;-)  
  
Viele Grüße,  
Christian