Ich möchte nur wissen, wie ein Attribut eines übergeordneten Knotens von einem untergeordneten Knoten in XSLT gelesen wird. Code:
<A>
<b attr1="xx">
<c>
</c>
</b>
</A>
XSLT:
<xsl:template match="c">
<xsl:value-of select="attribute of b node">
</xsl:template>
Du kannst mit "..
". So:
<xsl:value-of select="../@attr1"/>