See also: IRC log
<trackbot> Date: 07 March 2012
<Steven> http://lists.w3.org/Archives/Public/public-forms/2011Dec/0021.html
<Steven> ack
<Steven> XPath 3 has fold as well
sum(for $i in count($p) return $p[$i]*$q[$i])
what about:
<function name="my:foo" as="number">
<param name="p" as="number"/>
<param name="q" as="number"/>
<script>
</function>
sorry: <script type="javascript">foo($q, $p);</script>
<function name="my:foo" as="number">
<param name="p" as="number"/>
<param name="q" as="number"/>
<script type="javascript">foo($q, $p);</script>
</function>
<Steven> <bind ref="p" type="integer"/>
<function name="my:foo" as="number">
<param name="p" as="number"/>
<param name="q" as="number"/>
<script type="javascript">foo(q, p);</script>
</function>
<John_Boyer> nice
<ebruchez> exactly what I had mine
<ebruchez> mine -> mind
<klotz> <function name="my:foo" as="number">
<klotz> <param name="p" as="number"/>
<klotz> <param name="q" as="number"/>
<klotz> <script type="javascript">foo(q, p);</script>
<klotz> <sequence select="choose(count($p) = 0, 0, $p[1] * $q[1] + my:sumproduct($p[position() > 1], $q[position() > 1]))"/>
<klotz> </function>
<function name="my:foo" as="number">
<param name="p" as="number"/>
<param name="q" as="number"/>
<variable name="num100str" value="string(round($q * 100))"/>
<script type="javascript">foo(q, p, num100str);</script>
</function>
<Steven_> <function name="foo">
<Steven_> <param><p/><q/></param>
<Steven_> <result><r/></result>
<Steven_> <bind ref="p" type="integer"/>
<Steven_> <bind ref="r" value="..."/>
<Steven_> </function>
<klotz> <bind var="p" type="integer" />
<klotz> <var name="p" type="integer" />
<function name="my:foo" type="number">
<param name="p" type="number"/>
<param name="q" type="number"/>
<variable name="num100str" value="string(round($q * 100))"/>
<script type="javascript">foo(q, p, num100str);</script>
</function>
<scribe> ACTION: nick to implement to above proposal for custom functions in wiki [recorded in http://www.w3.org/2012/03/07-forms-minutes.html#action01]
<trackbot> Created ACTION-1874 - Implement to above proposal for custom functions in wiki [on Nick Van Den Bleeken - due 2012-03-14].
<Steven_> http://lists.w3.org/Archives/Public/public-forms/2011Dec/0006.html
<klotz> RESOLUTION: In http://www.w3.org/MarkUp/Forms/wiki/Custom_XPath_functions We add script/@type as an optional peer to sequence, which is also optional. The first recognized one in document order is used.
http://www.w3.org/MarkUp/Forms/wiki/XPath_Expressions_Module#The_event.28.29_Function
<Steven> using
<ebruchez> http://www.w3.org/TR/DOM-Level-3-Events/#events-Event
<ebruchez> http://www.w3.org/TR/DOM-Level-3-Events/#events-CustomEvent
<ebruchez> so "detail" would be another possible name
<ebruchez> The DOM specifies an event model that provides the following features
<ebruchez> "Access to context information for each event"
<ebruchez> http://www.w3.org/TR/2010/NOTE-xml-events2-20101216/
"Access to context information for each event"
<John_Boyer> http://www.w3.org/TR/xforms11/#fn-event
context-property
<klotz> <xf:property name="person" ref="instance('person')"/>
<ebruchez> <param> is another possibility
<klotz> RESOLUTION: We accept http://www.w3.org/MarkUp/Forms/wiki/Custom_event_context_information and rename xf:context to either xf:property or xf:param and @select to @ref and possibly @value.
<klotz> ACTION: Nick van den Bleeken to edit http://www.w3.org/MarkUp/Forms/wiki/Custom_event_context_information and rename xf:context to either xf:property or xf:param and @select to @ref and possibly @value. [recorded in http://www.w3.org/2012/03/07-forms-minutes.html#action02]
<trackbot> Created ACTION-1875 - Van den Bleeken to edit http://www.w3.org/MarkUp/Forms/wiki/Custom_event_context_information and rename xf:context to either xf:property or xf:param and @select to @ref and possibly @value. [on Nick Van Den Bleeken - due 2012-03-14].
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) No ScribeNick specified. Guessing ScribeNick: nick Inferring Scribes: nick WARNING: No "Topic:" lines found. Default Present: Steven, Leigh_Klotz, +1.323.425.aaaa, nick, +1.918.578.aabb, John_Boyer, ebruchez Present: Steven Leigh_Klotz +1.323.425.aaaa nick +1.918.578.aabb John_Boyer ebruchez Regrets: Uli Philip Agenda: http://lists.w3.org/Archives/Public/public-forms/2012Mar/0001 WARNING: No meeting chair found! You should specify the meeting chair like this: <dbooth> Chair: dbooth Found Date: 07 Mar 2012 Guessing minutes URL: http://www.w3.org/2012/03/07-forms-minutes.html People with action items: bleeken den nick van 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]