Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: XPath [Thread Next] Re: XPathTo: NULL Date: 11/3/2004 1:17:00 PM Marrow wrote: > Wow, and you want that in one XPath expression? Assuming the current > context node (or text node thereof) is the sentence and that $break is the > desired position (e.g. 300) something like... > > concat(substring(.,1,$break), > substring-before(substring(.,$break+1,string-length(.) * > not(substring(.,$break,1) = '.') ),'.'), > substring(.,$break+1,string-length(.) * > not(contains(substring(.,$break+1),'.'))), > substring('.',1,1 * (not(substring(.,$break,1) = '.') or > not(contains(.,'.'))))) Scary! :) -- Oleg Tkachenko [XML MVP] http://blog.tkachenko.com | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
