Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: 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 6:34:00 AM kebabkongen@h... schrieb: > <xsl:choose> > <xsl:when test = > "floor((number(substring(nr/st,4,2))+number(nr/ln)) div > 60)+number(substring(nr/st,1,2)) > 23" > > <xsl:value-of > select="floor((number(substring(nr/st,4,2))+number(nr/ln)) div > 60)+number(substring(nr/st,1,2)) mod 24"/> > </xsl:when> > <xsl:otherwise > > <xsl:value-of > select="floor((number(substring(nr/st,4,2))+number(nr/ln)) div > 60)+number(substring(nr/st,1,2))"/> > </xsl:otherwise> > </xsl:choose>:<xsl:choose><xsl:when test = > "((number(substring(nr/st,4,2))+number(nr/ln)) mod 60) < > 10">0<xsl:value-of select="(number(substring(nr/st,4,2))+number(nr/ln)) > mod 60"/> > </xsl:when> > <xsl:otherwise > > <xsl:value-of select="(number(substring(nr/st,4,2))+number(nr/ln)) > mod 60"/> > </xsl:otherwise> > </xsl:choose> > > Thanks for help! > > -Per Magnus > Look at this. That's my point, that is not a job for XSLT, maybe XSLT2.0 or so, but that is cruel to debug and performance and everything. This job has to be done by an extension, i.e. a very shot Java Funtion. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
