I am copying image elements from one XML file into a new one using XSLT. I am using the following template to copy an image element, but I think there is a simpler way to do this.
…
<xsl:apply-templates select="art_id"/>
…
<xsl:template match="art_id"><xsl:text>
</xsl:text><image><art_id>
<xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
</art_id></image>
</xsl:template>
The "new" XML image element is an exact copy of the original.