Hallo!
Ich habs jetzt so geloest (ist bestimmt nicht der Königsweg, kommt aber nah an die Vorschlaege ran): :-)
<xsl:template match="RAHMEN">
<xsl:choose>
<xsl:when test="HL[contains(.,'Auszug')]">
<AUSZUG>
<xsl:apply-templates/>
</AUSZUG>
</xsl:when>
<xsl:when test="HL[contains(.,'auszug')]">
<AUSZUG>
<xsl:apply-templates/>
</AUSZUG>
</xsl:when>
<xsl:otherwise>
<RAHMEN>
<xsl:apply-templates/>
</RAHMEN>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Und so funktionierts jetzt wunderbar. Vielen Dank fuer die Tipps!
Viele Grüße,
Marc