[Xsltforms-support] xsd:duration types
Brought to you by:
alain-couthures
|
From: <bc...@sh...> - 2016-06-18 19:40:38
|
Hello all, good day Most likely this has been mentioned before and if so my apologies for not finding anything on it by better searching 'discussion' or mailing lists. How easy (technically and time availability) would it be for maintainers (Alain ?) to implement the xsd:duration type and associated functions (I think they are XPath 2) ? For now, would some kind person assist (post a small code perhaps) by suggesting how to best/efficiently process xsd:time elements 'time-from' and 'time-to' in a repeat block, such that for each pair the duration in minutes (seconds does not matter) is calculated and then a total for the nodeset ? For now, as a descriptive, I am playing with implementing a <minutes/> element for each repeat item and using a 'bind calculate' to get the value by string splitting and using math functions to obtain the duration hours (converting it to minutes) and minutes and adding the two. Then to create a <totalminutes/> element and using a 'bind calculate' to get the value by using sum() on the <minutes/> nodeset. Thank you for some info and comments. Peace and best wishes Habs |