I've got this incoming XML I'm transforming (with XSLT in ASP using msxsm6):
<Cell>
<Data xmlns="http://www.w3.org/TR/REC-html40">
<Font>Text1</Font>
<Font> </Font>
<Font>Text2</Font>
<Data>
</Cell>
If the template for <Font> is:
<xsl:template match="Font">
<xsl:copy/>
</xsl:template>
The transform seems to kill off the space character in the 2nd element in the source, the output XML emitted is below, the 2nd element becomes an empty one with no content:
<Font>Text1</Font>
<Font/>
<Font>Text2</Font>
I trialed-and-errored on <xsl:preserve-space elements="Font"/>' but that didn't seem to help. Ideas? Thanks Stackoverflow!