Daniel Thoma: Total blöde Dau + Anfängerfrage

Beitrag lesen

Hallo,

<td colspan="<xsl:value-of select="count(row[position()=1]/field)"/>">

Tags innerhalb von Attributen sind in XML nicht zulässig. Du kannst, wenn du statt den " " schreibst, natürlich auch Markup in ein Attribut schreiben, es wird aber nicht als solches  interpretiert.
<td><xsl:attribute name="colspan">count(row[position()=1]/field)</xsl:attribute></td>
wäre wohl die Lösung des Problems.

Grüße

Daniel