Login  Register

Re: Re: Re: Re: Re: Xpath fn:seconds-from-dateTime() not working

Posted by Erik Bruchez on Feb 25, 2011; 4:53am
URL: https://discuss.orbeon.com/Xpath-fn-seconds-from-dateTime-not-working-tp3313272p3323897.html

SD,

The answer is easy: because there is no minutes-from-dateTime() in the XForms function library ;)

BTW the XForms Working Group has agreed this week that this is an issue, and for the official XPath 2.0 support in XForms 1.2, it has been decided to remove the XForms version of seconds-from-dateTime().

The rationale is that this function was to help with date comparison. Since date comparison is built into XPath 2.0, the use case for it has disappeared.

Since probably nobody is using the XForms version of this function, we have now moved it to xforms:seconds-from-dateTIme():

https://github.com/orbeon/orbeon-forms/commit/a2d1432824693d5562812d5112c53e49c246bb7f

-Erik

On Thu, Feb 24, 2011 at 10:21 AM, SD <[hidden email]> wrote:

Erik,

I agree with you, the XPath function is better. I'm wondering as to why only
seconds-from-dateTime() is triggered via XForms 1.0 or 1.1 while
minutes-from-dateTime() still triggers the XPath 2.0 function.

regards
--SD
--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Xpath-fn-seconds-from-dateTime-not-working-tp3313272p3323132.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws