This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
<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 ]
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 ]
Joined: Nov 15, 2002
I found my mistake. The command [not(@type='NAPDEF')] was in the wrong place.