Did you try using normalize-space() on the result of replace? That
should remove the trailing space.
Regards,
EB
On Thu, Sep 23, 2010 at 2:17 PM,  
<pankaj(_dot_)c(_at_)thomsondigital(_dot_)com> wrote:
<xsl:call-template name="replace-substring">
                       <xsl:with-param name="original" select="."/>
                       <xsl:with-param name="substring" select="'.'"/>
                       <xsl:with-param name="replacement" select="'. '"/>
                   </xsl:call-template>
Well I cannot still workout avoiding "space" on last initial using above.
Any better way to get this done otherwise It seems to me that I will end
up string-length() with substring-before()/substring-after() combination.
:-(
TIA,
Pankaj
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--