The first part of my xslt code is more than sufficient to solve your problem. You don't even need the extention. However, you do need to write a few lines of code, copying will not work.
Balaji's link is very specific to your question, however, you still need to read them, and digest. Then you need to apply what you learned from there, and write a few lines of your own code.
