Hello Habs,
I am currently extending my new XPath engine (Fleur) into an XQuery
engine as well. Progressively, it will support XPath/XQuery 3.1 but
there are still missing functionalities such as durations. Because of
functions such as doc(), this engine is written in asynchronous
Javascript so it will not be possible to use it within XSLTForms v1 but
within XSLTForms v2.
Priorities are always hard to decide. Adding duration support in
XSLTForms v1 might reduce time required for adding it in Fleur...
Maybe you don't need a full support yet? Can you post a test case??
--Alain
Le 18/06/2016 à 21:15, [email protected] a écrit :
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
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support