W3C

- DRAFT -

Forms Working Group Teleconference

29 Apr 2015

Agenda

See also: IRC log

Attendees

Present
Steven, ebruchez, [IPcaller], pfennell, Alain
Regrets
Nick
Chair
Steven
Scribe
Steven

Contents


<trackbot> Date: 29 April 2015

<pfennell> Hello, the passcode for the conference call is nolonger valid.

CONF1

(See IRC topic)

No call next week

[W3C AC Meeting, Paris]

Steven: I propose we skip next week's call.

XPath Expression Module review

https://lists.w3.org/Archives/Public/public-xformsusers/2015Apr/0008.html

<ebruchez> https://www.w3.org/MarkUp/Forms/wiki/XPath_Expressions_Module#The_avg.28.29_Function

Erik: It's like min/max, and we just hadn't noticed.

Alain: With all integers, it should return decimal

Erik: Makes sense.
... XPath 1.1 always takes doubles
... so integers to decimals make sense

Alain: The division operator does that

<ebruchez> http://www.w3.org/TR/xpath-functions/#func-numeric-divide

"Summary: Backs up the "div" operator and returns the arithmetic quotient of its operands: ($arg1 div $arg2).

As a special case, if the types of both $arg1 and $arg2 are xs:integer, then the return type is xs:decimal."

Erik: We have the same thing with min and max
... avg is also designed in XPath 2

<ebruchez> http://www.w3.org/TR/xpath-functions/#func-avg

Erik: in xpath avg is defined using sum and division

"returns the average of the values as sum($arg) div count($arg); "

Erik: In Saxon, it is the case that two integers produce a decimal

<ebruchez> `avg((xs:integer(1), xs:integer(2))) instance of xs:decimal` returns `true()`

Erik: avg(2, 2) returns decimal
... either way, we should do the same as with min and max, where we do something in compatibility mode to support XForms 1.1, and otherwise use the XPath 2.0 functions

Steven: Sounds good.

<scribe> ACTION: Erik to treat avg the same as min/max in compatibility mode [recorded in http://www.w3.org/2015/04/29-forms-minutes.html#action01]

<trackbot> Error finding 'Erik'. You can review and register nicknames at <https://www.w3.org/2005/06/tracker/xforms/users>.

Steven: "- index(), which says it returns an xs:integer, but then says it can return NaN

"

Erik: but NaN is not an integer

https://www.w3.org/MarkUp/Forms/wiki/XPath_Expressions_Module#The_index.28.29_Function

Erik: Three possible approaches: return a double, and NaN when not found; integer, with an empty sequence when not found
... or otherwise throw an error

<ebruchez> https://www.w3.org/MarkUp/Forms/wiki/XPath_Expressions_Module#The_case.28.29_Function

Erik: Case function returns an empty seq; so for consistency index() should do the same
... then we have a backwards compitibility issue
... maybe do the same in compatibility mode as with min/max
... so for XPath 2 support we do the right thing, return an optional integer
... not really natural to return a double for something that is an integer

Steven: I'm happy with that

<scribe> ACTION: Erik to make change to index() to return an optional integer [recorded in http://www.w3.org/2015/04/29-forms-minutes.html#action02]

<trackbot> Error finding 'Erik'. You can review and register nicknames at <https://www.w3.org/2005/06/tracker/xforms/users>.

Steven: "- random(), which should probably just return xs:double

"

<ebruchez> https://www.w3.org/MarkUp/Forms/wiki/XPath_Expressions_Module#The_random.28.29_Function

Erik: It says it returns a numeric, but this should be double.

Steven: Sounds right.

Erik: We don't define 'numeric'. It is used at several points.
... it is from XPath
... we should check that 'numeric' us ised sensibly in our spec

<scribe> ACTION: Erik to check that 'numeric' type is used sensibly in our spec [recorded in http://www.w3.org/2015/04/29-forms-minutes.html#action03]

<trackbot> Error finding 'Erik'. You can review and register nicknames at <https://www.w3.org/2005/06/tracker/xforms/users>.

JSON-to-XML and CSV-to-XML mappings in XForms 2.0

[No link yet]

Steven: Anything to report?

Erik: Not from my side yet

Steven: Is a response being asked for?

Erik: Don't think so.

Steven: I'll check for the next call if there is anything we urgently need to do.

AOB

Steven: Any?

[None]

Steven: OK, next call in two weeks.

[ADJOURN]

Summary of Action Items

[NEW] ACTION: Erik to check that 'numeric' type is used sensibly in our spec [recorded in http://www.w3.org/2015/04/29-forms-minutes.html#action03]
[NEW] ACTION: Erik to make change to index() to return an optional integer [recorded in http://www.w3.org/2015/04/29-forms-minutes.html#action02]
[NEW] ACTION: Erik to treat avg the same as min/max in compatibility mode [recorded in http://www.w3.org/2015/04/29-forms-minutes.html#action01]
 
[End of minutes]

Minutes formatted by David Booth's scribe.perl version 1.140 (CVS log)
$Date: 2015/04/29 15:29:43 $

Scribe.perl diagnostic output

[Delete this section before finalizing the minutes.]
This is scribe.perl Revision: 1.140  of Date: 2014-11-06 18:16:30  
Check for newer version at http://dev.w3.org/cvsweb/~checkout~/2002/scribe/

Guessing input format: RRSAgent_Text_Format (score 1.00)

Succeeded: s/TH/Th/
Succeeded: s/us/is/
No ScribeNick specified.  Guessing ScribeNick: Steven
Inferring Scribes: Steven
Default Present: Steven, ebruchez, [IPcaller], pfennell
Present: Steven ebruchez [IPcaller] pfennell Alain
Regrets: Nick
Agenda: https://lists.w3.org/Archives/Public/public-xformsusers/2015Apr/0009
Found Date: 29 Apr 2015
Guessing minutes URL: http://www.w3.org/2015/04/29-forms-minutes.html
People with action items: erik

[End of scribe.perl diagnostic output]