- From: Aaron Reed <aaronr@us.ibm.com>
- Date: Thu, 31 Jan 2008 17:34:55 -0600
- To: www-forms@w3.org
Hi,
I noticed that the 1.1 spec and 1.0 Third Edition spec have made the
@nodeset attribute on xf:bind optional. But no mention is made as to
what the default bound nodeset is when xf:bind is an outer bind.
Consider the below testcase and please answer these questions:
1) What node will the calculate MIP be applied to?
2) What should the submitted instance document look like?
Mozilla, Sidewinder, and X-Smiles all have different answers and Orbeon
sandbox can't even load the form so I'm more than a little curious.
<?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
Received on Friday, 1 February 2008 00:16:25 UTC