Re: [xsl] finding and removing duplicate string

Subject: Re: [xsl] finding and removing duplicate string
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Fri, 2 Dec 2011 15:51:22 +0000
> <p>Bradley Cooper named Peoples Sexiest man alive 2011  Bradley
> Cooper named Peoples 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 Peoples 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.



--
Andrew Welch
http://andrewjwelch.com

Current Thread