Hi Leute,
danke nochmal für Eure Hilfe. Ich hab mich gleich dran gesetzt und aus euren Vorschlägen und Tipps auch ein template zusammengebastelt:
<xsl:template name="XMLtoTEXT">
<xsl:for-each select="descendant-or-self::*">
< <xsl:value-of select="name()" />
xsl:choose
<xsl:when test="child::text()">
<xsl:for-each select="attribute::*"> <xsl:value-of select="name()" />="<xsl:value-of select="." />"
</xsl:for-each>
><xsl:value-of select="child::text()"/>>
</xsl:when>
xsl:otherwise
<xsl:for-each select="attribute::*"> <xsl:value-of select="name()" />="<xsl:value-of select="." />"</xsl:for-each>>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each></<xsl:value-of select="name()" />>
</xsl:template>
Damit ist es möglich auch Textknoten auszulesen.
Was haltet Ihr davon ???
Ach ja es funtioniert auch ohne CDATA
Gruss Hevelmann