I was hoping to call ..
<xsl:call-template name="widow-fix">
<with-param name="text" select="text"></with-param>
</xsl:call-template>
And then it would look for the last space
in the text and replace it with #160;
when finalized.
Should be able to support
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
and
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
Please use a different character, like #
to answer/prove, so the result when I test would be
Lorem ipsum dolor sit amet, consectetur adipiscing#elit.
and
<p>Lorem ipsum dolor sit amet, consectetur adipiscing#elit.</p>