Whether it is mixed content or not does not matter, the basic approach is always starting with
Code:
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
then you add templates for those tasks you want to perform e.g.
Code:
<xsl:template match="objectref">
<a href="{.}">
<xsl:apply-templates/>
</a>
</xsl:template>
You have not really shown what you want to put in the
href attribute of the hyperlink to be created but as far as transforming some elements while copying the rest unchanged the approach is as given above.