I know a repeat can have a "bind" attribute, but is it possible for a
control inside a repeat to use a "bind" attribute as well? I've been using "ref" attributes for my controls, but I'd like to use the "bind" attribute because it provides a better separation between the instance document and the controls, and because it allows me to control when a control is relevant. Thanks, -Jim -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Yes it is possible. There is an algorithm of bind resolution, which
should follow XForms 1.1: http://www.w3.org/TR/xforms11/#idref-resolve-repeat This was implemented post-3.6. -Erik On Sep 17, 2008, at 12:00 PM, Jim Logan wrote: > I know a repeat can have a "bind" attribute, but is it possible for > a control inside a repeat to use a "bind" attribute as well? > > I've been using "ref" attributes for my controls, but I'd like to > use the "bind" attribute because it provides a better separation > between the instance document and the controls, and because it > allows me to control when a control is relevant. > > Thanks, > -Jim > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Erik Bruchez wrote:
Yes it is possible. There is an algorithm of bind resolution, which should follow XForms 1.1:Erik, I found that section really hard to understand, even after re-reading it several times, so I just experimented. Unfortunately, I can't get this to work. I have these two binds: <xforms:bind id="person" nodeset="instance('people')/Actors:Person"/>then I have a repeat using bind="person" and a control inside that repeat using bind="name". That yields the same label over and over again. I also tried making the bind with id="name" a relative XPath expression, but that yields blanks. If the control inside the repeat uses ref="rdfs:label" instead of bind="name", it works fine. What am I doing wrong? Thanks, -Jim -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
> I have these two binds:
> <xforms:bind id="person" nodeset="instance('people')/Actors:Person"/> > <xforms:bind id="name" nodeset="instance('people')/Actors:Person/ > rdfs:label"/> > then I have a repeat using bind="person" and a control inside that > repeat using bind="name". That yields the same label over and over > again. You need to nest the binds like this: <xforms:bind id="person" nodeset="instance('people')/Actors:Person"> <xforms:bind id="name" nodeset="rdfs:label"/> </xforms:bind> -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |