<xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*[not(type='NAPDEF')]|node()"/> </xsl:copy> </xsl:template> But it doesn't work. How can I select the nodes that have no characteristic node of type NAPDEF?
[ March 15, 2005: Message edited by: Brian Grey ] [ March 15, 2005: Message edited by: Brian Grey ]
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
Try
I find the exclusion pattern where things I don't want go into their own template much more readable than putting the stuff inline. Hope that helps [ March 16, 2005: Message edited by: Stephan H. Wissel ]
Brian Grey
Ranch Hand
Joined: Nov 15, 2002
Posts: 43
posted
0
I found my mistake. The command [not(@type='NAPDEF')] was in the wrong place.