das folgende Beispiel xml Gegeben:XSLT1 - Prüft, ob alle ausgewählten Knoten haben ein bestimmtes Attribut
<table>
<tr>
<td style="border-top:1px">
<p class="bodytext">right</p>
</td>
<td style="border-top:1px">
<p class="bodytext">left right</p>
</td>
<td style="border-top:1px">
<p class="bodytext">left</p>
</td>
</tr>
<tr>
<td style="border-top:1px">
<p class="bodytext">right</p>
</td>
<td style="border-top:1px">
<p class="bodytext">left right</p>
</td>
<td style="border-top:1px">
<p class="bodytext">left</p>
</td>
</tr>
</table>
Ich möchte, wenn ALL die TDs des ersten TR, zu überprüfen, das Stil-Attribut auf Rand- oben.
Der folgende Ausdruck funktioniert offenbar nicht:
<xsl:when test="tr[1]/td/@style[contains(.,'border-top')]">
</xsl:when>
ich XSLT1 bin mit, gibt es eine einfache Möglichkeit, dies zu tun?