W3C home > Mailing lists > Public > www-forms@w3.org > February 2008

Re: What to do with outer xf:bind with no @nodeset

From: John Boyer <boyerj@ca.ibm.com>
Date: Thu, 31 Jan 2008 21:41:36 -0500
To: Erik Bruchez <ebruchez@orbeon.com>
Cc: www-forms@w3.org, www-forms-request@w3.org
Message-ID: <OF03E67F2E.48B5AD29-ON852573E2.000E0000-852573E2.000ECB5D@ca.ibm.com>
The definition of the bind element appears here: 
http://www.w3.org/TR/xforms/#structure-bind-element

It ends with the statement that the evaluation context for the MIP 
attributes is obtained here: http://www.w3.org/TR/xforms/#expr-eval

Wherein the following relevant paragraph appears:

XPath expressions also appear in model item property attributes of the 
bind element to define computed expressions. If the bind element does not 
express a Node Set binding, then the in-scope evaluation context for model 
item property attributes of the bind is equal to the in-scope evaluation 
context for the bind. Otherwise, the bind has a Node Set binding, and 
computed expressions for each model item property attribute are generated 
for each node. For each computed expression generated, the evaluation 
context node, position and size are determined by the same method as 
dynamic in-scope evaluation context rule above, except the computed 
expression is used in lieu of a binding expression attribute such that the 
bind element is the nearest ancestor binding element.

The reference to the expression evaluation section was added in Erratum 
E23: http://www.w3.org/2006/03/REC-xforms-20060314-errata.html#E23

That erratum also notes that it is dependent on the wording added by 
erratum E17.3: 
http://www.w3.org/2006/03/REC-xforms-20060314-errata.html#E17c

which is what included the above paragraph (see the diff-marked version 
http://www.w3.org/2006/03/REC-xforms-20060314-errata-diff-20070719.html#E17c
)..

Cheers,
John M. Boyer, Ph.D.
Senior Technical Staff Member
Lotus Forms Architect and Researcher
Chair, W3C Forms Working Group
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com 

Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
Blog RSS feed: 
http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw





Erik Bruchez <ebruchez@orbeon.com> 
Sent by: www-forms-request@w3.org
01/31/2008 08:32 PM

To
www-forms@w3.org
cc

Subject
Re: What to do with outer xf:bind with no @nodeset







> Orbeon sandbox can't even load the form

Yup we require the @nodeset attribute on xforms:bind. I had not 
realized that the @nodeset attribute had become optional and I am 
interested in the answer too!

-Erik

>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- basic FO page definition stuff -->
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="
http://www.w3.org/2002/xforms 
> "
> xmlns:ev="http://www.w3.org/2001/xml-events"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
>    <head>
>      <title>binding testcase</title>
>      <xforms:model>
>          <xforms:instance xmlns="">
>            <values>
>              <value>27</value>
>            </values>
>          </xforms:instance>
>          <xforms:bind id="binddata"
>                       calculate="now()"/>
>          <xforms:submission id="submitInfo"
>                             method="post"
>          action="http://www.xformstest.org/cgi-bin/echo.sh" />
>      </xforms:model>
>    </head>
>    <body>
>      <h2>I think that the submission should show the current date and
>          time along with the value node and its value.
>      </h2>
>      <h3>Uses now() and bind w/o nodeset attribute</h3><br/>
>      <xforms:submit submission="submitInfo">
>        <xforms:label>Echo instance data</xforms:label>
>      </xforms:submit>
>    </body>
> </html>
>
> Any help appreciated.  Thanks,
> --Aaron
>
>
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/
Received on Friday, 1 February 2008 02:42:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:11 GMT