Hi Taras i know this took a while. but its not an easy task to do this calculations in xslt.(at least for me ;)
this is what i have so far: http://www.treebuilder.de/xslt/date/data.xml http://www.treebuilder.de/xslt/date/dates.xsl im afraid this is far from optimal and its not finished yet. its a start i think. if you have convince your project leader to change the XML file format, or solved this problem in another way, please let me know. have fun Holger p.s.: check out my new site layout: http://www.treebuilder.de/ Taras Bahnyuk wrote: > Hi Christophe, > > The solution you suggest would be the best and > currently I'm trying to convince my project leader to > change the XML file format, but there's a little > problem. The data is coming from an embedded peace of > equipment and any change to it would have costed a > fortune, that's why we choose for now to go around > with xslt and scripting. > > Although in my heart i wish it was changed as you > suggest and even more, so to include min and max > values and total duration of the measurement, which > can be sometimes more then two month :-( > This would really make my life a lot easier, on > another hand now I have a good chance to learn my > lesson really promptly :-) > > And I'm happy that since three weeks already I belong > to SVG-Developers community. You guys are always ready > to offer helping hand, thank's a lot :-) > > Cheers, > Taras > > > --- lestat_24 <[EMAIL PROTECTED]> wrote: > > > Hi Taras, > > > > Your xml file is probably dynamically generated with > > a script language > > like asp or php. It may be a good solution to > > convert your sampleTime on > > the server into whatever value you want and to send > > this value in your > > xml data (in addition to your sampleTime or instead > > of it). With this > > solution, your xsl template has no complex > > computation to do with dates. > > > > <elt> > > <SampleTime > > > convertedValue="455">2004-06-08T15:59:40+02:00</SampleTime> > > <Value>1.828702</Value> > > </elt> > > ... > > > > Regards > > Christophe > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > > > ----- > To unsubscribe send a message to: > [EMAIL PROTECTED] > -or- > visit http://groups.yahoo.com/group/svg-developers and click "edit my > membership" > ---- > > > *Yahoo! Groups Sponsor* > ADVERTISEMENT > click here > <http://us.ard.yahoo.com/SIG=129vc2uag/M=295196.4901138.6071305.3001176/D=groups/S=1706030389:HM/EXP=1095236685/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> > > > > > ------------------------------------------------------------------------ > *Yahoo! Groups Links* > > * To visit your group on the web, go to: > http://groups.yahoo.com/group/svg-developers/ > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

