[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] xslt 2. Date arithmetic.


Subject: Re: [xsl] xslt 2. Date arithmetic.
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 1 Mar 2005 16:13:01 GMT

you could use fn:years-from-duration and fn:months-from-duration to
extract the years and montsh separately from $t2 - $t1 then concatenate
them back together and coerce to xdt:yearMonthDuration.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


Current Thread