Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Using XSL to calculate time (t = hh:mi + mi)

From: "Dimitre Novatchev" <dimitren@---.---.-->
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 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent