Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: "fedro" <fettel@----------------.--->
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)) &gt; 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) &lt;
> 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.



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