Re: Cannot find a matching 1-argument function named {http://orbeonorg/oxf/xml/xforms}evaluate()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Cannot find a matching 1-argument function named {http://orbeonorg/oxf/xml/xforms}evaluate()

Jean Luc-2
Sorry, forgot to add the build number: 3.6.0.200803121728
----- Original Message -----
Sent: Wednesday, March 26, 2008 1:32 PM
Subject: Cannot find a matching 1-argument function named {http://orbeonorg/oxf/xml/xforms}evaluate()

Hello,
 
I'm trying to bind a control dynamically to a model element via an expression evaluation, but so far no luck. Below is the model (simplified), the view part and later the error I receive.
Help is appreciated,
 
Thanks.
JL
 
        <xf:instance id="form-data" xmlns="">
            <test-data>
                <test>
                    <widgetList>
                        <widget widgetCode="foo"> <!-- this element will repeat -->
                            <name/>
                            <widgetParentCode />
                        </widget>
                    </widgetList>
                </test>
            </test-data>
        </xf:instance>
 
 
in the view:
 
        <xf:input ref="xxforms:evaluate('concat(''/test/widgetList/widget[@widgetCode='', widgetParentCode , '']/name'')')">
           <xf:label>This is a child of widget named </xf:label>
        </xf:input>
 
The namespace declarations in the form are as follows:
 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xf="
http://www.w3.org/2002/xforms"
      xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xxforms="
http://orbeonorg/oxf/xml/xforms"
      xsi:schemaLocation="
http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml.xsd
                          http://www.w3.org/2002/xforms http://www.w3.org/2002/xforms/xforms.xsd">
 
Isn't the evaluate() function take a single argument?
 
 
 
Exception Class org.orbeon.saxon.trans.StaticError
Message XPath syntax error in {...widgetParentCode, '']/name''...}:
    Cannot find a matching 1-argument function named {http://orbeonorg/oxf/xml/xforms}evaluate()


--
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