W3C

- DRAFT -

Forms Working Group Teleconference

14 Mar 2012

Agenda

See also: IRC log

Attendees

Present
+1.918.645.aaaa, Leigh_Klotz, nick, [IPcaller], Steven, alain, +44.782.483.aabb, pfennell, ebruchez
Regrets
Chair
SV_MEETING_CHAIR
Scribe
nvdbleek

Contents


<trackbot> Date: 14 March 2012

<Steven> tx

<klotz> Custom XPath functions in XForms

<ebruchez> all, I will join late today

<Steven> How do I start a group?

<Steven> Anyone with a W3C account may create a group:

<Steven> Push one of the buttons below and provide a name and description for the group.

<Steven> Once four other people support the group (by pushing a button), W3C creates it.

<Steven> Join the group and start using the tools and infrastructure to build your community.

<klotz> http://www.w3.org/community/about/agreements/cla/

<klotz> " I agree to license my Essential Claims under the W3C CLA RF Licensing Requirements. T"

<Steven> http://www.w3.org/community/groups/proposed/#xformsusers

<klotz> http://www.w3.org/community/

http://www.w3.org/community/groups/proposed/#xformsusers

<klotz> http://www.w3.org/community/

<klotz> So please visit http://www.w3.org/community and log in with your wiki password and press "Create This Group" under XForms Users Community Group.

https://gist.github.com/2002642

The variables in scope for the function body include all variables representing the function parameters, as well as all variables that are in scope for the inline function expression.

Note:  Function parameter names can mask variables that would otherwise be in scope for the function body.

<Steven> Erik -

<Steven> klotz 16:24:59

<Steven> http://www.w3.org/community/

<Steven> So please visit http://www.w3.org/community and log in with your wiki password and press "Create This Group" under XForms Users Community Group.

https://gist.github.com/2002642

<Steven> With your support, W3C has launched the XForms Users Community Group and invites

<Steven> you to join the group.

<Steven> http://www.w3.org/community/xformsusers/join

<Steven> Thank you,

<Steven> W3C Community Development Team

"custom-defined functions get no context item, position, or size, they have access to lexically scoped variables

<klotz> RESOLUTION: Custom-defined functions get no context item, position, or size, they have access to lexically scoped variables.

<function signature="my:f(p as number, q as number) as number" select="$p+$q"/>

<function name="my:foo" as="number">

<param name="p" as="number"/>

<param name="q" as="number"/>

<sequence select="$p + $q"/>

</function>

<function signature="my:f() as number" value="$context-pos = $context-size"/>

<klotz> value="concat('abc', ""'"''")"

<klotz> <function signature="my:f() as number">$context-pos = $context-size</>

<klotz> <function> ... whatever xpath 3 says </>

xpath 3.0: function() as xs:integer+ { 2, 3, 5, 7, 11, 13 }

http://www.w3.org/MarkUp/Forms/wiki/Custom_XPath_functions

<klotz> <function signature="my:f(name as string) as string" javascript="function sayHello2(name) {

<klotz> var text = 'Hello ' + name; // local variable

<klotz> var sayAlert = function() { alert(text); }

<klotz> return sayAlert;

<klotz> }" />

<function signature="my:foo(p as string)" as="number">

<script type="text/javascript">

foo(XForms.var.p);

</script>

</function>

<ebruchez> <function signature="my:f(name as string) as string" type="javascript" value="foo(XForms.var.p)"/>

<function name="my:sumproduct" as="number">

<param name="p" as="nodeset"/>

<sequence select="2*$p"/>

<sequence select="3*$p"/></function>

<function signature="my:sumproduct(p as number)" as="number">

  <sequence select="2*$p"/>

  <sequence select="3*$p"/></function>

<klotz> as="number*"

<klotz> ?

<ebruchez> <function>

<ebruchez> leet $a := 42

<ebruchez> (a, b)

<klotz> ACTION: Erik Bruchez to propose forward-compatible function body syntax for XPath 3. [recorded in http://www.w3.org/2012/03/14-forms-minutes.html#action01]

<trackbot> Created ACTION-1876 - Bruchez to propose forward-compatible function body syntax for XPath 3. [on Erik Bruchez - due 2012-03-21].

<function signature="my:foo(p as nodeset)" as="number" override="no">

<script type="text/javascript">

foo(XForms.var.p);

</script>

</function>

<function name="my:foo(p as nodeset)" as="number" override="no">

<sequence select="sum($p)"/>

</function>

Oh, I also added a script action

I hope the group isn't against this one

Summary of Action Items

[NEW] ACTION: Erik Bruchez to propose forward-compatible function body syntax for XPath 3. [recorded in http://www.w3.org/2012/03/14-forms-minutes.html#action01]
 
[End of minutes]

Minutes formatted by David Booth's scribe.perl version 1.136 (CVS log)
$Date: 2012/03/14 16:06:03 $

Scribe.perl diagnostic output

[Delete this section before finalizing the minutes.]
This is scribe.perl Revision: 1.136  of Date: 2011/05/12 12:01:43  
Check for newer version at http://dev.w3.org/cvsweb/~checkout~/2002/scribe/

Guessing input format: RRSAgent_Text_Format (score 1.00)

Succeeded: s/name/signature/
No ScribeNick specified.  Guessing ScribeNick: nvdbleek
Inferring Scribes: nvdbleek

WARNING: No "Topic:" lines found.

Default Present: +1.918.645.aaaa, Leigh_Klotz, nick, [IPcaller], Steven, alain, +44.782.483.aabb, pfennell, ebruchez
Present: +1.918.645.aaaa Leigh_Klotz nick [IPcaller] Steven alain +44.782.483.aabb pfennell ebruchez
Agenda: http://lists.w3.org/Archives/Public/public-forms/2012Mar/0014

WARNING: No meeting chair found!
You should specify the meeting chair like this:
<dbooth> Chair: dbooth

Found Date: 14 Mar 2012
Guessing minutes URL: http://www.w3.org/2012/03/14-forms-minutes.html
People with action items: bruchez erik

WARNING: Input appears to use implicit continuation lines.
You may need the "-implicitContinuations" option.


WARNING: No "Topic: ..." lines found!  
Resulting HTML may have an empty (invalid) <ol>...</ol>.

Explanation: "Topic: ..." lines are used to indicate the start of 
new discussion topics or agenda items, such as:
<dbooth> Topic: Review of Amy's report


[End of scribe.perl diagnostic output]