xsl-list
[Top] [All Lists]

Re: [xsl] finding and removing duplicate string

2011-12-02 09:51:32
<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.



-- 
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>
--~--