[xsl] Renaming an element when using copy-of

Subject: [xsl] Renaming an element when using copy-of
From: Chad Chelius <cchelius@xxxxxxxxxxxxxxx>
Date: Tue, 13 Jun 2006 15:01:39 -0400
I am trying to copy the contents of an element called <source> using a template but I want to change it's name when doing so. This <source> element contains several children that I want to carry over but I also want to rename them as well. I'm currently using:

<xsl:copy-of select="source"/>

This works but I want to change the name of source. How do I do this?

Current Thread