bestimmte Elemente der XML nicht ausgeben
frage
- xsl
Hallo,
hatte schon eine ähnliche Frage, doch leider funktioniert es immer noch nicht.. :( Kann ich in einer verschachtelten XML-Struktur
<a>texta
<b>textb</b>
</a>
sagen, dass nur der a-Inhalt ausgegeben wird (also texta) und der b-Inhalt (also textb) komplet ausgelassen, wenn ich das mit xsl:apply-templates mache?
oder geht es irgendwie anders? danke für jede Hilfe!
<a>texta
<b>textb</b>
</a>
<xsl:template match="a">
<xsl:apply-templates mode="nob">
</xsl:template>
<xsl:template match="b" mode="nob" />
oder
<xsl:template match="a">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="a/b" />
so mal als quickhack...