Hi,
I've got this code in one of my XBL components : <xxforms:variable name="target-elements" as="node()?"> <xxforms:sequence xbl:attr="select=target-elements" xxbl:scope="outer" /> </xxforms:variable> <xxforms:variable name="target-values" xbl:attr="xbl:text=target-values" /> and then further : <xforms:group ref="$target-elements[. = $selected-target]/xxforms:evaluate($target-values)[normalize-space($selected-target)]"> ...things in this group... In the xforms calling the xbl, there is : <ori:dynamic-binding id="author-dyn-binding" target-elements="//dc:creator[@xsi:type = 'dcfr:people']" target-values="@dcfr:appid"> With this code, the application hangs reporting : "Prefix dcfr has not been declared" and incriminating the expression inside the ref attribute of the mentioned xforms:group. Declaring the dcfr namespace inside the component prevent this behaviour. I guess this is related to the use of the xxforms:evaluate function. Should all this be considered a bug ? If so, will the possible fix be applied to the 3.9-ce-stable branch ? Thanks, -- Grégoire Neuville -- 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
|
Grégoire,
It sounds like a bug. Do you have a simple repro case? Historically, dealing with the evaluate() function has been a pain so I can't commit that this will be fixed promptly. -Erik 2011/9/20 Grégoire Neuville <[hidden email]>: > Hi, > > I've got this code in one of my XBL components : > > <xxforms:variable name="target-elements" as="node()?"> > <xxforms:sequence xbl:attr="select=target-elements" xxbl:scope="outer" /> > </xxforms:variable> > <xxforms:variable name="target-values" xbl:attr="xbl:text=target-values" /> > > and then further : > > <xforms:group ref="$target-elements[. = > $selected-target]/xxforms:evaluate($target-values)[normalize-space($selected-target)]"> > ...things in this group... > > In the xforms calling the xbl, there is : > > <ori:dynamic-binding id="author-dyn-binding" > > target-elements="//dc:creator[@xsi:type = 'dcfr:people']" > target-values="@dcfr:appid"> > > With this code, the application hangs reporting : "Prefix dcfr has not > been declared" and incriminating the expression inside the ref > attribute of the mentioned xforms:group. Declaring the dcfr namespace > inside the component prevent this behaviour. I guess this is related > to the use of the xxforms:evaluate function. Should all this be > considered a bug ? If so, will the possible fix be applied to the > 3.9-ce-stable branch ? > > Thanks, > > -- > Grégoire Neuville > > > -- > 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 |
Erik,
Thanks for the reply. I attach a use case to execute in the Xforms sandbox, but it is not fully operational : that is, I need to use an XBL component in the xforms to make my point and because of that : - if I write the xbl code in the xforms, I cannot repoduce the error ; it just works, - if I xi:include the xbl, then the sandbox seems unable to interprete/execute it I hope this will provide you a basis to track the issue though. On 21 September 2011 06:17, Erik Bruchez <[hidden email]> wrote: > Grégoire, > > It sounds like a bug. Do you have a simple repro case? > > Historically, dealing with the evaluate() function has been a pain so > I can't commit that this will be fixed promptly. > > -Erik > > 2011/9/20 Grégoire Neuville <[hidden email]>: >> Hi, >> >> I've got this code in one of my XBL components : >> >> <xxforms:variable name="target-elements" as="node()?"> >> <xxforms:sequence xbl:attr="select=target-elements" xxbl:scope="outer" /> >> </xxforms:variable> >> <xxforms:variable name="target-values" xbl:attr="xbl:text=target-values" /> >> >> and then further : >> >> <xforms:group ref="$target-elements[. = >> $selected-target]/xxforms:evaluate($target-values)[normalize-space($selected-target)]"> >> ...things in this group... >> >> In the xforms calling the xbl, there is : >> >> <ori:dynamic-binding id="author-dyn-binding" >> >> target-elements="//dc:creator[@xsi:type = 'dcfr:people']" >> target-values="@dcfr:appid"> >> >> With this code, the application hangs reporting : "Prefix dcfr has not >> been declared" and incriminating the expression inside the ref >> attribute of the mentioned xforms:group. Declaring the dcfr namespace >> inside the component prevent this behaviour. I guess this is related >> to the use of the xxforms:evaluate function. Should all this be >> considered a bug ? If so, will the possible fix be applied to the >> 3.9-ce-stable branch ? >> >> Thanks, >> >> -- >> Grégoire Neuville >> >> >> -- >> 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 > > -- Grégoire Neuville -- 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 |
Ok, I tried a bit of remote debugging of orbeon in eclipse. This is
actually the first time I take a look in the code : fairly intricate ! I couldn't figure out much, except that the hanging is happening at line 207 of org.orbeon.saxon.functions.Evaluate, in prepareExpression method, because the current IndependentContext contains only the namespaces declared in the XBL component and not the ones declared in the XForms where this component is instantiated. Don't know what that worth, but I hope it'll help. 2011/9/21 Grégoire Neuville <[hidden email]>: > Erik, > > Thanks for the reply. I attach a use case to execute in the Xforms > sandbox, but it is not fully operational : that is, I need to use an > XBL component in the xforms to make my point and because of that : > > - if I write the xbl code in the xforms, I cannot repoduce the error ; > it just works, > - if I xi:include the xbl, then the sandbox seems unable to > interprete/execute it > > I hope this will provide you a basis to track the issue though. > > On 21 September 2011 06:17, Erik Bruchez <[hidden email]> wrote: >> Grégoire, >> >> It sounds like a bug. Do you have a simple repro case? >> >> Historically, dealing with the evaluate() function has been a pain so >> I can't commit that this will be fixed promptly. >> >> -Erik >> >> 2011/9/20 Grégoire Neuville <[hidden email]>: >>> Hi, >>> >>> I've got this code in one of my XBL components : >>> >>> <xxforms:variable name="target-elements" as="node()?"> >>> <xxforms:sequence xbl:attr="select=target-elements" xxbl:scope="outer" /> >>> </xxforms:variable> >>> <xxforms:variable name="target-values" xbl:attr="xbl:text=target-values" /> >>> >>> and then further : >>> >>> <xforms:group ref="$target-elements[. = >>> $selected-target]/xxforms:evaluate($target-values)[normalize-space($selected-target)]"> >>> ...things in this group... >>> >>> In the xforms calling the xbl, there is : >>> >>> <ori:dynamic-binding id="author-dyn-binding" >>> >>> target-elements="//dc:creator[@xsi:type = 'dcfr:people']" >>> target-values="@dcfr:appid"> >>> >>> With this code, the application hangs reporting : "Prefix dcfr has not >>> been declared" and incriminating the expression inside the ref >>> attribute of the mentioned xforms:group. Declaring the dcfr namespace >>> inside the component prevent this behaviour. I guess this is related >>> to the use of the xxforms:evaluate function. Should all this be >>> considered a bug ? If so, will the possible fix be applied to the >>> 3.9-ce-stable branch ? >>> >>> Thanks, >>> >>> -- >>> Grégoire Neuville >>> >>> >>> -- >>> 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 >> >> > > > > -- > Grégoire Neuville > -- Grégoire Neuville -- 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 |