(Another) XSLT - identity template - question [modified]
XML / XSL
1
Posts
1
Posters
0
Views
1
Watching
-
i want to remove all "Blah" nodes where the attribute "Foo" starts with value "Bar" :
<doc>
...
<Blah Foo="Barf">
.... delete this node
</Blah>
<Blah Foo="Goo">
.... don't delete this node
</Blah>
<Beep Foo="Bar">
.... don't delete this node
</Beep>
....</doc>
i'm sure this is a trivial extension of the basic identity template, but i just can't figure this out. -- modified at 22:18 Friday 10th August, 2007 nevermind:
<xsl:template match="@*|node()">
xsl:copy
<xsl:apply-templates select"@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="Blah[starts-with(@Foo, 'Bar')]" />image processing toolkits | batch image processing | blogging