- From: Erik Bruchez <ebruchez@orbeon.com>
- Date: Tue, 4 Sep 2018 22:46:27 -0700
- To: Steven Pemberton <steven.pemberton@cwi.nl>
- Cc: XForms <public-xformsusers@w3.org>
ACTION-2194: So in our case, we don't output anything. The `bind` reference appears to return "a null search result." -Erik On Thu, Jun 28, 2018 at 6:54 AM Steven Pemberton <steven.pemberton@cwi.nl> wrote: > > https://www.w3.org/community/xformsusers/wiki/XForms_2.0#References_to_Elements_within_a_bind_Element > > "However, if the target bind element has one or more bind element > ancestors, then the identified bind may be a target element that is > associated with more than one target bind object. > > If a target bind element is outermost, or if all of its ancestor bind > elements have ref attributes that select only one node, then the target > bind only has one associated bind object, so this is the desired target > bind object whose sequence is used in the source binding. Otherwise, the > in-scope evaluation context item of the source object containing the bind > attribute is used to help select the appropriate target bind object from > among those associated with the target bind element. > > From among the bind objects associated with the target bind element, if > there exists a bind object created with the same in-scope evaluation > context item as the source object, then that bind object is the desired > target bind object. Otherwise, the IDREF resolution produced a null search > result." > > So what gets output in the following? > > > <instance> > <dates xmlns=""> > <date value="2018-06-28"/> > <date value="2018-06-27"/> > <date value="2018-06-26"/> > <date value="2018-06-25"/> > </dates> > </instance> > > <bind ref="date"> > <bind ref="@value" type="date" id="DATE"/> > </bind> > ... > > <repeat bind="DATE"> > <output ref="."/> > </repeat> > > Steven >
Received on Wednesday, 5 September 2018 05:47:06 UTC