Hi Alessandro.
Sorry to bug you on this, have you had any chance to look at the issue? Thank you, JL ----- Original Message ----- From: "Jean Luc" <[hidden email]> To: <[hidden email]> Cc: <[hidden email]> Sent: Thursday, April 03, 2008 2:57 PM Subject: binding problem with certain xpath expressions > I've changed the title so it's to the current topic. > > Alex, attached is a test form to show the problem (I hope attachments are > not stripped by the list server; I'm copying it to your direct email > address > in case it does). > > The problem is neither of the following binding expressions work (the > input > control is not rendered at all). The xpath expression is correct and it > points to the name element - which can it easily checked with the > inspector. > Below, the second contains the hardcoded result of the expression > evaluation. > > Neither works. Shouldn't they, though? > > > <xforms:input > ref="xxforms:evaluate(concat('test/widgetList/widget[@code=''', > context()/widgetParentCode, ''']/name'))"> > <xforms:label>Child of widget named</xforms:label> > </xforms:input> > > <xforms:input ref="test/widgetList/widget[@code='foo']/name"> > <xforms:label>Child of widget named</xforms:label> > </xforms:input> > > Thanks, > JL > > > ----- Original Message ----- > From: "Alessandro Vernet" <[hidden email]> > To: <[hidden email]> > Sent: Thursday, April 03, 2008 1:50 AM > Subject: [ops-users] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Cannot > find > a matching 1-argument function named > {http://orbeonorg/oxf/xml/xforms}evaluate() > > >> Jean Luc, >> >> On Thu, Mar 27, 2008 at 2:22 PM, Jean Luc <[hidden email]> wrote: >>> Consider the following model (containing 2 widgets, the former being >>> the >>> child of the latter). >>> [...] >>> <xforms:instance xmlns="" id="form-data"> >>> <test-data> >>> <test> >>> <widgetList> >>> <widget code="test_411628c6d533817-2556FEADDE004D28-0"> >>> <name>a2</name> >>> >>> <widgetParentCode>test_411628c6d533817-118e76b783e-118e7715afa</widgetParentCode> >>> </widget> >>> <widget >>> code="test_411628c6d533817-118e76b783e-118e7715afa"> >>> <name>a</name> >>> >>> <widgetParentCode /> >>> </widget> >>> </widgetList> >>> </test> >>> </test-data> >>> </xforms:instance> >>> >>> and the view fragment: >>> >>> <xforms:output value="concat('test/widgetList/widget[@code=''', >>> context()/widgetParentCode, ''']/name')" /> >>> <xforms:input >>> ref="xxforms:evaluate(concat('test/widgetList/widget[@code=''', >>> context()/widgetParentCode, ''']/name'))"> >>> <xforms:label>Child of widget named </xforms:label> >>> </xforms:input> >>> </td></tr> >>> >>> the output is as below: >>> >>> >>> test/widgetList/widget[@code='test_411628c6d533817-118e76b783e-118e7715afa']/name >>> Child of asset named >> >> I don't quite follow you. I think that it would help if you were to >> put this is a simple example we can run in the XForms sandbox. >> >> Alex >> -- >> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise >> Orbeon's Blog: http://www.orbeon.com/blog/ >> Personal Blog: http://avernet.blogspot.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 >> > -- 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
|
Jean-Luc,
On Thu, Apr 17, 2008 at 1:40 PM, Jean Luc <[hidden email]> wrote: > Sorry to bug you on this, have you had any chance to look at the issue? I am looking at the second input, which is the one that is more likely to work first: <xforms:input ref="test/widgetList/widget[@code='foo']/name"> <xforms:label>Child of widget named</xforms:label> </xforms:input> So you are saying that the input control does not show? What is the current element? What if you use an absolute expression (/root/test/...)? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |