The answer depends greatly on whether you are using XSLT 1.0 or 2.0. (Like
many things, it's much easier in 2.0).
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Joga Singh Rawat [mailto:jrawat(_at_)aptaracorp(_dot_)com]
Sent: 28 March 2009 08:36
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] substring after/substring before
Hi List,
Can I spilit a string into two parts by last space as
substring-before(., '
'[last()]) is not getting accurate result.
Input :
A. B. C. Surname
Output:
<fnm>A.</fnm>
<snm>B. C. Surname</snm>
Required output
Output:
<fnm>A. B. C.</fnm>
<snm>Surname</snm>
Anybody have any clue???
Thanks
...JSR
--~------------------------------------------------------------------
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>
--~--