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