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

Re: implementors question: correct behavior of nested nodeset in repeat

From: John Boyer <boyerj@ca.ibm.com>
Date: Tue, 27 Feb 2007 09:14:03 -0800
To: Joern Turner <joern.turner@web.de>
Cc: www-forms@w3.org, www-forms-request@w3.org
Message-ID: <OFD4B1752A.A5A98F2D-ON8825728F.005E8A54-8825728F.005EAC57@ca.ibm.com>
Hi Joern,

The XForms spec doesn't re-explain every aspect of the other W3C specs for 
technologies upon which it depends.

In this case, it is clear from the XPath spec that you will get six nodes 
in your nodeset.

Cheers,
John M. Boyer, Ph.D.
STSM: Workplace Forms Architect and Researcher
Co-Chair, W3C Forms Working Group
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com  http://www.ibm.com/software/

Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer





Joern Turner <joern.turner@web.de> 
Sent by: www-forms-request@w3.org
02/27/2007 08:01 AM

To
www-forms@w3.org
cc

Subject
implementors question: correct behavior of nested nodeset in repeat







seeking help understanding the following use case:

for an instance like this:
xforms:instance id="Test" >
<data xmlns="">
  <level id="1">
   <item>Item 1-1</item>
   <item>Item 1-2</item>
   <item>Item 1-3</item>
  </level>
  <level id="2">
   <item>Item 2-1</item>
   <item>Item 2-2</item>
   <item>Item 2-3</item>
  </level>
</data>
</xforms:instance>

and a repeat like this:
<xhtml:body>
  <xforms:repeat id="repeat1" nodeset="/data/level/item">
   <xforms:input ref=".">
    <xforms:label>Value</xforms:label>
   </xforms:input>
  </xforms:repeat>
</xhtml:body>

what would be the correct behavior? Should the repeat show 3 or 6 items 
and what would happen in case of an insert?

I couldn't find a clear answer to this from the Spec - help anyone?

Joern
Received on Tuesday, 27 February 2007 17:14:15 GMT

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