Re: XForms value attribute

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 
(http://www.w3.org/MarkUp/Forms/wiki/XForms_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?

Cheers,
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

To
www-forms-editor@w3.org
cc

Subject
XForms value attribute








Hello,

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:

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

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

Regards,

Andrew Bonard

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