I'm working on an XSLT stylesheet, but I've run into a problem. I need to find a way to copy out an element and all its attributes, but not its children. Neither xsl:copy nor xsl:copy-of is suitable; copy doesn't do attributes and copy-of gets the node's children (which I need to be able to perform further transformations on, so I can't do that).
Anyone know of a way to do this?