Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Using XSL to calculate time (t = hh:mi + mi) [Thread Next] Re: Using XSL to calculate time (t = hh:mi + mi)To: NULL Date: 12/1/2006 7:15:00 AM <kebabkongen@h...> wrote in message news:1164970079.132517.69620@n...... > Hi, > I have an XML source which gives me the start time (in the format > hh:mi) of a program and the duration of the program (in minutes). > > With XSLT only, I would like to generate the time the next program > starts. > Ex: If the current program starts at 10:30 and lasts for 60 minutes, I > wish to display that the next program starts at 11:30. > The server seems to be running XSL 1.0. See my Calendar XSLT app: http://www.topxml.com/code/?p=3&id=v20020711152545&ms=220&l=codelib&sw=lang It uses a library datetime_lib.xsl (written entirely in XSLT by Martin Rowlinson) from XSelerator and can be accessed from the trial download. As for what can be done with XSLT and how efficient this is -- many people have really wrong believes. Read my blog to find examples: http://dnovatchev.spaces.live.com/Blog/ or see my snippets (written many years ago) on topxml.com: http://www.topxml.com/members/profile.asp?id=i1005 Cheers, Dimitre Novatchev | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
