On 2 December 2011 15:51, Andrew Welch
<andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> wrote:
<p>Bradley Cooper named People’s ‘Sexiest man alive 2011” Bradley
Cooper named People’s ‘Sexiest man alive 2011”</p>
After putting check in the xsl and deleting the duplicate string. The
output should be:-
<text>
<p>Bradley Cooper named People’s ‘Sexiest man alive 2011” </p>
</text>
I guess you could normalize, then tokenize on spaces, find the middle,
then compare sides... if they are equal pick the first.
Or more simply substring based on the string length.
--
Andrew Welch
http://andrewjwelch.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>
--~--