There is this certain element in my xml:
<para><link href="D52871.dita">abc</link>
</para>
I want the output to be
<para><link id="D52871">abc</link>
</para>
I have used identity transform in the beginning to copy everything. I tried this code snippet
<xsl:template match="link/@href">
<xsl:attribute name="id">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>
but it's not working probably because I need to specify that link element is inside para. Have tried few approaches to include that but none worked so far.
D52871.ditatoD52871?