I want to do this using xslt, new to this and struggling.
<xsl:template match="h1">
<h1 title="">
<xsl:apply-templates select="@* | node()"/>
</h1>
</xsl:template>
Example XML
<h1>This is the inner text <para>some other text</para>
</h1>
Desired output
<h1 title="This is the inner text"><para>some other text</para>
</h1>