Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Simple XSLT questions. >Thread Next - Re: Simple XSLT questions. Re: Simple XSLT questions.To: NULL Date: 5/10/2007 9:32:00 AM Richard Tobin <richard@c...> wrote in <f1tkup$6r3$2@p...>: > In article > <1178739796.451024.200800@y...>, > anitawa <anitawa@g...> wrote: >>I want to know how you can count the number of certain >>character inside one element. > > Ok, here's a disgusting hack: > > string-length(.)-string-length(translate(., ',', '')) Looks elegant and not at all disgusting to me. Better than coding a D&C named template to do something this trivial, anyway. -- Pavel Lepin | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
