When saving to a rich text field via Core Service my HTML is not as desired. During create tags like:
<a id="abc" name="abc"></a>
becomesbecome:
<a id="abc" name="abc"/>
I have added to the XSLT to try and prevent this:
<template match="a[(@name) and (count(node()) = 0)]">
<copy>
<apply-templates select="@*"></apply-templates>
<span class="hidden"></span>
</copy>
</template>
but no joy!
IfIt seems to apply the base XSLT when creating via Core Service. Then if I open the component and make a change thenany changes my updated XSLT appies and the tags updateHTML updates to:
<a id="abc" name="abc">
<xhtml:span xmlns:xhtml="http://www.w3.org/1999/xhtml" class="hidden"></xhtml:span>
</a>