Thread XSLT > Anfängerfrage zum Ersetzen von Tags in Text (1 answers)
Opened by Gast at 2007-11-15 16:41

Gast Gast
 2007-11-16 17:20
#102490 #102490
Hier die Antwort, jemand anders konnte mir weiterhelfen :D
<xsl:templatematch="main">
<xsl:apply-templatesselect="text"/>
</xsl:template>

<xsl:templatematch="text">
<xsl:apply-templatesselect="text()|person-ref"/>
</xsl:template>

<xsl:templatematch="person-ref">
<xsl:variablename="testid"select="@idref"/>
<xsl:value-ofselect="/main/person[@id=$testid]/name"/>
</xsl:template>

View full thread XSLT > Anfängerfrage zum Ersetzen von Tags in Text