Currently, the test for a space in the sg element fails, so both <sg/> and <sg> </sg> get rendered as html <span class="sg-collapsed"></span>.
The problem seems to be at the top of the stylesheet: <xsl:strip-space elements="*"/>. Both <xsl:preserve-space elements="*"/> and <xsl:preserve-space elements="sg"/> get the html to render correctly. But I'm not sure what, if any, impact this will have on the rest of the rendering.
This is a modified version of our current xslt for
sg
:Currently, the test for a space in the
sg
element fails, so both<sg/>
and<sg> </sg>
get rendered as html<span class="sg-collapsed"></span>
.The problem seems to be at the top of the stylesheet:
<xsl:strip-space elements="*"/>
. Both<xsl:preserve-space elements="*"/>
and<xsl:preserve-space elements="sg"/>
get the html to render correctly. But I'm not sure what, if any, impact this will have on the rest of the rendering.Any thoughts, Sharon?