Let's say I've got the following XML:
<a>
<c>
<d>text</d><e> more text</e>
</c>
</a>
And I'd like to get:
<a>
<d innerXML="<d>text</d><e> more text</e>">
</d>
</a>
How would I select the inner XML of c
? The following XSLT doesn't work:
<xsl:template match="c">
<d>
<xsl:attribute name="innerXML">
<xsl:copy-of select="."/>
</xsl:attribute>
</d>
</xsl:template>
P.S. Please note that this is an extremely simplified version of what I'm try