In my XSL, I'm trying to copy a complex element, **then** apply a template to it. Currently the templates are only being applied to the children of the copied element.
Thanks for your help... I appreciate this is basic stuff.
This is what I'm trying, which is clearly wrong.
<xsl:template match="activity">
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
<div class="activity">
<xsl:apply-templates />
</div>
</xsl:template>