W3C home > Mailing lists > Public > www-forms-editor@w3.org > April 2007

Re: XForms value attribute

From: John Boyer <boyerj@ca.ibm.com>
Date: Wed, 18 Apr 2007 17:58:28 -0700
To: "Andrew Bonard" <Andrew.Bonard@harlandfs.com>
Cc: www-forms-editor@w3.org, www-forms-editor-request@w3.org
Message-ID: <OF6B0E0D67.FBF58733-ON882572C2.0004AF6B-882572C2.00055C55@ca.ibm.com>
Hi Andrew,

Although not using the specific syntax you suggest, this issue is 
acknowledge as a future features for XForms (i.e. after 1.1).

Please see the Forms WG public wiki (http://www.w3.org/MarkUp/Forms/wiki/)
and look under Future Features 

The entry AVT is a reference to attribute value templates, which seem like 
a good general mechanism to make
all attributes in XForms be able to take their values from instance data. 
Granted, the entry is not filled out, so it 
would have been quite hard to realize the connection. 

But assuming AVTs are the way we go, you would be able to say 

<send submission="{concat('submission_', ../defaultSendLocation)}"/>

This seem reasonable?

John M. Boyer, Ph.D.
STSM: 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

"Andrew Bonard" <Andrew.Bonard@harlandfs.com> 
Sent by: www-forms-editor-request@w3.org
04/17/2007 02:44 PM


XForms value attribute


I'd like to suggest that we have a value attribute that can be used
on the send element in section 10.11. The optional attribute would
contain an XPath expression to evaluate using the in-scope evaluation
context. The result of the XPath expression is the submission identity.

The markup might look something like:

         <send value="concat('submission_', ../defaultSendLocation)"/>

My feeling is that the attribute would allow for a more dynamic and
configurable binding to the submission element.


Andrew Bonard
Received on Thursday, 19 April 2007 00:58:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:25:11 UTC