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.
I know how to do an identity transform, and I know how to filter specific nodes out of it, but how do I specify that you copy only specific nodes and everything else (comments, etc.)? The reason why I do that is because the XML that the XSLT is to be applied to may grow (new nodes) and I want to exclude all new nodes. A filter will only exclude a set of the current ones.
Suppose all I wanted to see was:
What should the xslt look like to accomplish that?
I thought that I could try to first copy over all non-nodes then focus on the nodes and list the specific ones I wanted to copy but I could not get it to work.
What I have now is just a filter like this
Again, I don't want to filter out specific nodes like this does. I just want to copy specific ones!