Hallo Fipps,
<circle class="rzehn" transform="scale(1)" cx="0" cy="0" r="26.38" fill="yellow"/>
soll soetwas
<circle class="rzehn" transform="scale(1)" cx="0" cy="0" r="10" fill="yellow"/>
werden und zwar rekursiv für alle "zehn"-Kassen.
Ansatz mittels Identitätsverarbeitung aller Inhalte und spezieller Reaktion auf die r-Attribute im Kontext der entsprechenden Klasse:
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="@r">
<xsl:if test="../@class='rzehn'">
<xsl:attribute name="r">10</xsl:attribute>
</xsl:if>
</xsl:template>
Grüße,
Thomas