W3C home > Mailing lists > Public > public-xformsusers@w3.org > August 2015

Action item done: use of numeric in function parameters

From: Erik Bruchez <erik@bruchez.org>
Date: Tue, 25 Aug 2015 17:13:16 -0700
Message-ID: <CAAc0PEV3Ps8+DswAbWCBxjmCF=yVjr0nswS8X1Auq3ffk5fTsg@mail.gmail.com>
To: Forms WG <public-forms@w3.org>, "public-xformsusers@w3.org" <public-xformsusers@w3.org>
All,

(I don't have a number for this action.)

> "Erik to modify random() function return a xs:double()""

This was an easy one:

    https://www.w3.org/MarkUp/Forms/wiki/index.php?title=XPath_Expressions_Module&diff=4200&oldid=4199

> "check other uses of numeric `days-to-date()` and `seconds-to-dateTime()`"

These 2 functions take `numeric` as parameter. I think it makes sense
to keep the `numeric` type. In XForms 1.1 you would pass a `number`,
that is an `xs:double`. In XForms 2 you can still pass an `xs:double`,
but you would idiosyncratically pass an `xs:integer`. There is a
precedent as XPath functions like `op:numeric-add()` use it.

In short, I suggest leaving `days-to-date()` and
`seconds-to-dateTime()` as they are now in the spec.


-Erik
Received on Wednesday, 26 August 2015 00:14:09 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 26 August 2015 00:14:09 UTC