On Thu, 2011-03-03 at 11:43 +0000, Andrew Welch wrote:
<xsl:template match="year/week">
....
<xsl:for-each select="day/task">
<xsl:call-template name="total_duration"/>
</xsl:for-each>
to just:
<xsl:value-of select="sum(for $x in task return $x/xs:dateTime(@end) -
$x/xs:dateTime(@start))/>
(well, make it a variable and then do your formatting as you have done
already)
Thanks, this really helped. It worked perfectly.
Patricia.
--
patriciasc(_at_)openismus(_dot_)com
http://psconboard.blogspot.com/
www.openismus.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--