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

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Jean Luc-2
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
Reply | Threaded
Open this post in threaded view
|

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

Erik Bruchez
Administrator
You have a typo. Replace:

   xmlns:xxforms="http://orbeonorg/oxf/xml/xforms"

with:

xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"

-Erik

On Mar 26, 2008, at 10:32 AM, Jean Luc wrote:

> 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
--
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
Reply | Threaded
Open this post in threaded view
|

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

Jean Luc-2
Thank you. I should go and check my eyes. I still get an exception, it looks
like a type cast is needed. From String to what?

Thanks again!



java.lang.ClassCastException Message org.orbeon.saxon.value.StringValue
Servlet Stack Trace (129 method calls)

org.orbeon.oxf.xforms.XFormsContextStack$BindingContext getSingleNode
XFormsContextStack.java 768
org.orbeon.oxf.xforms.control.XFormsControl setBoundNode XFormsControl.java
273
org.orbeon.oxf.xforms.control.XFormsControl setBindingContext
XFormsControl.java 258
org.orbeon.oxf.xforms.XFormsControls$1 startVisitControl XFormsControls.java
396


----- Original Message -----
From: "Erik Bruchez" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, March 26, 2008 2:01 PM
Subject: [ops-users] Re: Cannot find a matching 1-argument function named
{http://orbeonorg/oxf/xml/xforms}evaluate()


> You have a typo. Replace:
>
>   xmlns:xxforms="http://orbeonorg/oxf/xml/xforms"
>
> with:
>
> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
> -Erik
>
> On Mar 26, 2008, at 10:32 AM, Jean Luc wrote:
>
>> 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
>
> --
> 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
>



--
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
Reply | Threaded
Open this post in threaded view
|

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

Erik Bruchez
Administrator
Your @ref attribute calls xxforms:evaluate(), which in turn evaluates  
to a string because you call concat(). A @ref must always return a  
node, not a string.

What you probably wanted to write was something like:

xxforms:evaluate(concat('/test/widgetList/widget[@widgetCode=',  
widgetParentCode , ']/name'))

-Erik

On Mar 26, 2008, at 11:20 AM, Jean Luc wrote:

> Thank you. I should go and check my eyes. I still get an exception,  
> it looks like a type cast is needed. From String to what?
>
> Thanks again!
>
>
>
> java.lang.ClassCastException Message  
> org.orbeon.saxon.value.StringValue
> Servlet Stack Trace (129 method calls)
>
> org.orbeon.oxf.xforms.XFormsContextStack$BindingContext  
> getSingleNode XFormsContextStack.java 768
> org.orbeon.oxf.xforms.control.XFormsControl setBoundNode  
> XFormsControl.java 273
> org.orbeon.oxf.xforms.control.XFormsControl setBindingContext  
> XFormsControl.java 258
> org.orbeon.oxf.xforms.XFormsControls$1 startVisitControl  
> XFormsControls.java 396
>
>
> ----- Original Message ----- From: "Erik Bruchez"  
> <[hidden email]>
> To: <[hidden email]>
> Sent: Wednesday, March 26, 2008 2:01 PM
> Subject: [ops-users] Re: Cannot find a matching 1-argument function  
> named {http://orbeonorg/oxf/xml/xforms}evaluate()
>
>
>> You have a typo. Replace:
>>
>>  xmlns:xxforms="http://orbeonorg/oxf/xml/xforms"
>>
>> with:
>>
>> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>>
>> -Erik
>>
>> On Mar 26, 2008, at 10:32 AM, Jean Luc wrote:
>>
>>> 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
>>
>> --
>> 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
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

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

Jean Luc-2
Thanks again. I'm almost there. There's only one more problem, with the
evaluation. First, the model and the updated expression.

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

    <xf:repeat nodeset="test/widgetList/widget">
        <tr><td>
          <xf:input
ref="xxforms:evaluate(concat('/test/widgetList/widget[@widgetCode=''',
widgetParentCode , ''']/name'))">
            <xf:label>Child of widget named</xf:label>
          </xf:input>
        </td></tr>
        <tr><td>
          <xf:input ref="widgetParentCode"> <!-- for test purposes, this
evaluates correctly)
            <xf:label>Parent id:</xf:label>
          </xf:input>
        </td></tr>
    </xf:repeat>

As you see, the above is inside a repeat element (ignore any layout, it's
simplified to the maximum). It's a table of widgets, some of them having a
parent in the same list. For those which have, I need to display the name of
that parent.

The problem is that inside the xxforms:evaluate() expression,
widgetParentCode doesn't evaluate to the string. Outside of it, as proven by
the second <tr>, all is fine.
Is there a way to reference the subelement of the current repeat element
*inside* the xxforms:evaluate ?

Super-thanks :-)
JL

----- Original Message -----
From: "Erik Bruchez" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, March 26, 2008 2:26 PM
Subject: [ops-users] Re: Re: Re: Cannot find a matching 1-argument function
named {http://orbeonorg/oxf/xml/xforms}evaluate()


> Your @ref attribute calls xxforms:evaluate(), which in turn evaluates
> to a string because you call concat(). A @ref must always return a
> node, not a string.
>
> What you probably wanted to write was something like:
>
> xxforms:evaluate(concat('/test/widgetList/widget[@widgetCode=',
> widgetParentCode , ']/name'))
>
> -Erik
>
> On Mar 26, 2008, at 11:20 AM, Jean Luc wrote:
>
>> Thank you. I should go and check my eyes. I still get an exception,
>> it looks like a type cast is needed. From String to what?
>>
>> Thanks again!
>>
>>
>>
>> java.lang.ClassCastException Message
>> org.orbeon.saxon.value.StringValue
>> Servlet Stack Trace (129 method calls)
>>
>> org.orbeon.oxf.xforms.XFormsContextStack$BindingContext
>> getSingleNode XFormsContextStack.java 768
>> org.orbeon.oxf.xforms.control.XFormsControl setBoundNode
>> XFormsControl.java 273
>> org.orbeon.oxf.xforms.control.XFormsControl setBindingContext
>> XFormsControl.java 258
>> org.orbeon.oxf.xforms.XFormsControls$1 startVisitControl
>> XFormsControls.java 396
>>
>>
>> ----- Original Message ----- From: "Erik Bruchez"
>> <[hidden email]>
>> To: <[hidden email]>
>> Sent: Wednesday, March 26, 2008 2:01 PM
>> Subject: [ops-users] Re: Cannot find a matching 1-argument function
>> named {http://orbeonorg/oxf/xml/xforms}evaluate()
>>
>>
>>> You have a typo. Replace:
>>>
>>>  xmlns:xxforms="http://orbeonorg/oxf/xml/xforms"
>>>
>>> with:
>>>
>>> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>>>
>>> -Erik
>>>
>>> On Mar 26, 2008, at 10:32 AM, Jean Luc wrote:
>>>
>>>> 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
>>>
>>> --
>>> 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
>>
>>
>> --
>> 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
>



--
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
Reply | Threaded
Open this post in threaded view
|

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

Alessandro Vernet
Administrator
Jean Luc,

On Mar 26, 2008, at 1:59 PM, Jean Luc wrote:
>         <xf:input ref="xxforms:evaluate(concat('/test/widgetList/
> widget[@widgetCode=''', widgetParentCode , ''']/name'))">


If you are using a recent nightly build, you can use the context()  
function in this case. Instead of widgetParentCode, write context()/
widgetParentCode. See:

http://www.w3.org/TR/xforms11/#fn-context

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
Reply | Threaded
Open this post in threaded view
|

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

Jean Luc-2
Using context() with 3.6.0.200803270724, Orbeon appears to require the
"xforms" specifically as a namespace prefix. With a slightly older build
(about 2 weeks) it accepted other prefixes as well (I used "xf" for brevity;
normally the prefix itself doesn't matter as long as it's mapped to the
correct URI).

Is this going to stay as a requirement? I can update our forms & code to use
"xforms" but it's useful to know if it's temporary or not.

Thanks,
JL

(I'll post an update about context() after making the changes).


org.orbeon.saxon.trans.StaticError
Exception Class org.orbeon.saxon.trans.StaticError
Message XPath syntax error at char 18 in {exists(.//xforms:*[@}:
    Prefix xforms has not been declared
Servlet Stack Trace
(173 method calls)  Class Name Method Name File Name Line Number
org.orbeon.saxon.expr.ExpressionParser grumble ExpressionParser.java 127
org.orbeon.saxon.expr.ExpressionParser makeNamespaceTest
ExpressionParser.java 2233
org.orbeon.saxon.expr.ExpressionParser parseNodeTest ExpressionParser.java
1410
org.orbeon.saxon.expr.ExpressionParser parseBasicStep ExpressionParser.java
1302
org.orbeon.saxon.expr.ExpressionParser parseStepExpression
ExpressionParser.java 1187
org.orbeon.saxon.expr.ExpressionParser parseRelativePath
ExpressionParser.java 1132
org.orbeon.saxon.expr.ExpressionParser parsePathExpression
ExpressionParser.java 1113
org.orbeon.saxon.expr.ExpressionParser parseUnaryExpression
ExpressionParser.java 992
org.orbeon.saxon.expr.ExpressionParser parseCastExpression
ExpressionParser.java 650
org.orbeon.saxon.expr.ExpressionParser parseCastableExpression
ExpressionParser.java 605
org.orbeon.saxon.expr.ExpressionParser parseTreatExpression
ExpressionParser.java 586
org.orbeon.saxon.expr.ExpressionParser parseInstanceOfExpression
ExpressionParser.java 568
org.orbeon.saxon.expr.ExpressionParser parseIntersectExpression
ExpressionParser.java 1025
org.orbeon.saxon.expr.ExpressionParser parseUnionExpression
ExpressionParser.java 1007
org.orbeon.saxon.expr.ExpressionParser parseMultiplicativeExpression
ExpressionParser.java 944
org.orbeon.saxon.expr.ExpressionParser parseAdditiveExpression
ExpressionParser.java 924
org.orbeon.saxon.expr.ExpressionParser parseRangeExpression
ExpressionParser.java 840
org.orbeon.saxon.expr.ExpressionParser parseComparisonExpression
ExpressionParser.java 790
org.orbeon.saxon.expr.ExpressionParser parseAndExpression
ExpressionParser.java 380
org.orbeon.saxon.expr.ExpressionParser parseOrExpression
ExpressionParser.java 362
org.orbeon.saxon.expr.ExpressionParser parseExprSingle ExpressionParser.java
316
org.orbeon.saxon.expr.ExpressionParser parseFunctionCall
ExpressionParser.java 1746
org.orbeon.saxon.expr.ExpressionParser parseBasicStep ExpressionParser.java
1278
org.orbeon.saxon.expr.ExpressionParser parseStepExpression
ExpressionParser.java 1187
org.orbeon.saxon.expr.ExpressionParser parseRelativePath
ExpressionParser.java 1127
org.orbeon.saxon.expr.ExpressionParser parsePathExpression
ExpressionParser.java 1113
org.orbeon.saxon.expr.ExpressionParser parseUnaryExpression
ExpressionParser.java 992
org.orbeon.saxon.expr.ExpressionParser parseCastExpression
ExpressionParser.java 650
org.orbeon.saxon.expr.ExpressionParser parseCastableExpression
ExpressionParser.java 605
org.orbeon.saxon.expr.ExpressionParser parseTreatExpression
ExpressionParser.java 586
org.orbeon.saxon.expr.ExpressionParser parseInstanceOfExpression
ExpressionParser.java 568
org.orbeon.saxon.expr.ExpressionParser parseIntersectExpression
ExpressionParser.java 1025
org.orbeon.saxon.expr.ExpressionParser parseUnionExpression
ExpressionParser.java 1007
org.orbeon.saxon.expr.ExpressionParser parseMultiplicativeExpression
ExpressionParser.java 944
org.orbeon.saxon.expr.ExpressionParser parseAdditiveExpression
ExpressionParser.java 924
org.orbeon.saxon.expr.ExpressionParser parseRangeExpression
ExpressionParser.java 840
org.orbeon.saxon.expr.ExpressionParser parseComparisonExpression
ExpressionParser.java 790
org.orbeon.saxon.expr.ExpressionParser parseAndExpression
ExpressionParser.java 380
org.orbeon.saxon.expr.ExpressionParser parseOrExpression
ExpressionParser.java 362
org.orbeon.saxon.expr.ExpressionParser parseExprSingle ExpressionParser.java
316
org.orbeon.saxon.expr.ExpressionParser parseExpression ExpressionParser.java
280
org.orbeon.saxon.expr.ExpressionParser parse ExpressionParser.java 202
org.orbeon.saxon.expr.ExpressionTool make ExpressionTool.java 69
org.orbeon.oxf.util.XPathCache$XFormsCachePoolableObjetFactory makeObject
XPathCache.java 425
org.orbeon.oxf.util.SoftReferenceObjectPool borrowObject
SoftReferenceObjectPool.java 71
org.orbeon.oxf.util.XPathCache getXPathExpression XPathCache.java 294
org.orbeon.oxf.util.XPathCache evaluateSingle XPathCache.java 140
org.orbeon.oxf.util.XPathCache evaluateSingle XPathCache.java 131
org.orbeon.oxf.xforms.XFormsStaticState$1 startVisitControl
XFormsStaticState.java 580
org.orbeon.oxf.xforms.XFormsStaticState handleControlsStatic
XFormsStaticState.java 667
org.orbeon.oxf.xforms.XFormsStaticState handleControlsStatic
XFormsStaticState.java 663
org.orbeon.oxf.xforms.XFormsStaticState visitAllControlStatic
XFormsStaticState.java 650
org.orbeon.oxf.xforms.XFormsStaticState analyzeIfNecessary
XFormsStaticState.java 486
org.orbeon.oxf.xforms.XFormsContainingDocument createControlAndModel
XFormsContainingDocument.java 1493
org.orbeon.oxf.xforms.XFormsContainingDocument initialize
XFormsContainingDocument.java 1438
org.orbeon.oxf.xforms.XFormsContainingDocument <init>
XFormsContainingDocument.java 161
org.orbeon.oxf.xforms.processor.XFormsToXHTML createCacheContainingDocument
XFormsToXHTML.java 330
org.orbeon.oxf.xforms.processor.XFormsToXHTML access$200 XFormsToXHTML.java
51
org.orbeon.oxf.xforms.processor.XFormsToXHTML$2 read XFormsToXHTML.java 165
org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
ProcessorImpl.java 488
org.orbeon.oxf.xforms.processor.XFormsToXHTML doIt XFormsToXHTML.java 122
org.orbeon.oxf.xforms.processor.XFormsToXHTML access$000 XFormsToXHTML.java
51
org.orbeon.oxf.xforms.processor.XFormsToXHTML$1 readImpl XFormsToXHTML.java
81
org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
ProcessorImpl.java 1213
org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX ProcessorImpl.java 348
org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX ProcessorImpl.java 353
org.orbeon.oxf.processor.xinclude.XIncludeProcessor access$100
XIncludeProcessor.java 41
org.orbeon.oxf.processor.xinclude.XIncludeProcessor$2 read
XIncludeProcessor.java 85
org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
ProcessorImpl.java 488
org.orbeon.oxf.processor.xinclude.XIncludeProcessor access$200
XIncludeProcessor.java 41
org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1 readImpl
XIncludeProcessor.java 79
org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
ProcessorImpl.java 1213
org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX ProcessorImpl.java 348
org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
PipelineProcessor.java 62
org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
PipelineProcessor.java 92
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java
554
org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
PipelineProcessor.java 62
org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
PipelineProcessor.java 90
org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
ProcessorImpl.java 1213
org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1 readImpl
ConcreteChooseProcessor.java 122
org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
ProcessorImpl.java 1213
org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX ProcessorImpl.java 348
org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
PipelineProcessor.java 62
org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
PipelineProcessor.java 92
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java
554
org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
PipelineProcessor.java 62
org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
PipelineProcessor.java 90
org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
ProcessorImpl.java 1213
org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1 readImpl
ConcreteChooseProcessor.java 122
org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
ProcessorImpl.java 1213
org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX ProcessorImpl.java 348
org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
PipelineProcessor.java 62
org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
PipelineProcessor.java 92
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java
554
org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
PipelineProcessor.java 62
org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
PipelineProcessor.java 90
org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
ProcessorImpl.java 1213
org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX ProcessorImpl.java 348
org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1400
PipelineProcessor.java 62
org.orbeon.oxf.processor.pipeline.PipelineProcessor$6 run
PipelineProcessor.java 564
org.orbeon.oxf.processor.ProcessorImpl executeParents ProcessorImpl.java 572
org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1500
PipelineProcessor.java 62
org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput
readImpl PipelineProcessor.java 560
org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
ProcessorImpl.java 1213
org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX ProcessorImpl.java 348
org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1400
PipelineProcessor.java 62
org.orbeon.oxf.processor.pipeline.PipelineProcessor$6 run
PipelineProcessor.java 564
org.orbeon.oxf.processor.ProcessorImpl executeParents ProcessorImpl.java 572
org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1500
PipelineProcessor.java 62
org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput
readImpl PipelineProcessor.java 560
org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
ProcessorImpl.java 1213
org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX ProcessorImpl.java 348
org.orbeon.oxf.processor.pipeline.TeeProcessor access$000 TeeProcessor.java
36
org.orbeon.oxf.processor.pipeline.TeeProcessor$1 readImpl TeeProcessor.java
59
org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
ProcessorImpl.java 1213
org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX ProcessorImpl.java 348
org.orbeon.oxf.processor.ProcessorImpl readInputAsTinyTree
ProcessorImpl.java 412
org.orbeon.oxf.processor.ProcessorImpl$5 read ProcessorImpl.java 445
org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
ProcessorImpl.java 488
org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsTinyTree
ProcessorImpl.java 443
org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor start
ConcreteChooseProcessor.java 185
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
PipelineProcessor.java 644
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java
554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start
PipelineProcessor.java 641
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
PipelineProcessor.java 644
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java
554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start
PipelineProcessor.java 641
org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor start
ConcreteChooseProcessor.java 230
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
PipelineProcessor.java 644
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java
554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start
PipelineProcessor.java 641
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
PipelineProcessor.java 644
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java
554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start
PipelineProcessor.java 641
org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor start
ConcreteChooseProcessor.java 230
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
PipelineProcessor.java 644
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java
554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start
PipelineProcessor.java 641
org.orbeon.oxf.pipeline.InitUtils runProcessor InitUtils.java 95
org.orbeon.oxf.webapp.ProcessorService service ProcessorService.java 96
org.orbeon.oxf.servlet.OPSServletDelegate service OPSServletDelegate.java
148
javax.servlet.http.HttpServlet service HttpServlet.java 856
com.evermind.server.http.ServletRequestDispatcher invoke
ServletRequestDispatcher.java 713
com.evermind.server.http.ServletRequestDispatcher forwardInternal
ServletRequestDispatcher.java 370
com.evermind.server.http.ServletRequestDispatcher unprivileged_forward
ServletRequestDispatcher.java 259
com.evermind.server.http.ServletRequestDispatcher access$100
ServletRequestDispatcher.java 51
com.evermind.server.http.ServletRequestDispatcher$2 oc4jRun
ServletRequestDispatcher.java 193
oracle.oc4j.security.OC4JSecurity doPrivileged OC4JSecurity.java 283
com.evermind.server.http.ServletRequestDispatcher forward
ServletRequestDispatcher.java 198
org.orbeon.oxf.servlet.OPSXFormsFilter doFilter OPSXFormsFilter.java 90
com.evermind.server.http.ServletRequestDispatcher invoke
ServletRequestDispatcher.java 623
com.evermind.server.http.ServletRequestDispatcher forwardInternal
ServletRequestDispatcher.java 370
com.evermind.server.http.HttpRequestHandler doProcessRequest
HttpRequestHandler.java 871
com.evermind.server.http.HttpRequestHandler processRequest
HttpRequestHandler.java 453
com.evermind.server.http.HttpRequestHandler serveOneRequest
HttpRequestHandler.java 221
com.evermind.server.http.HttpRequestHandler run HttpRequestHandler.java 122
com.evermind.server.http.HttpRequestHandler run HttpRequestHandler.java 111
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable run
ServerSocketReadHandler.java 260
oracle.oc4j.network.ServerSocketAcceptHandler procClientSocket
ServerSocketAcceptHandler.java 239
oracle.oc4j.network.ServerSocketAcceptHandler access$700
ServerSocketAcceptHandler.java 34
oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse run
ServerSocketAcceptHandler.java 880
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker run
ReleasableResourcePooledExecutor.java 303
java.lang.Thread run Thread.java


----- Original Message -----
From: "Alessandro Vernet" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, March 26, 2008 9:59 PM
Subject: [ops-users] Re: Re: Re: Re: Re: Cannot find a matching 1-argument
function named {http://orbeonorg/oxf/xml/xforms}evaluate()


> Jean Luc,
>
> On Mar 26, 2008, at 1:59 PM, Jean Luc wrote:
>>         <xf:input ref="xxforms:evaluate(concat('/test/widgetList/
>> widget[@widgetCode=''', widgetParentCode , ''']/name'))">
>
>
> If you are using a recent nightly build, you can use the context()
> function in this case. Instead of widgetParentCode, write context()/
> widgetParentCode. See:
>
> http://www.w3.org/TR/xforms11/#fn-context
>
> 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
Reply | Threaded
Open this post in threaded view
|

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

Erik Bruchez
Administrator
Where is the "xforms" prefix required? What's the XPath expression  
causing the issue?

-Erik

On Mar 27, 2008, at 7:40 AM, Jean Luc wrote:

> Using context() with 3.6.0.200803270724, Orbeon appears to require  
> the "xforms" specifically as a namespace prefix. With a slightly  
> older build (about 2 weeks) it accepted other prefixes as well (I  
> used "xf" for brevity; normally the prefix itself doesn't matter as  
> long as it's mapped to the correct URI).
>
> Is this going to stay as a requirement? I can update our forms &  
> code to use "xforms" but it's useful to know if it's temporary or not.
>
> Thanks,
> JL
>
> (I'll post an update about context() after making the changes).
>
>
> org.orbeon.saxon.trans.StaticError
> Exception Class org.orbeon.saxon.trans.StaticError
> Message XPath syntax error at char 18 in {exists(.//xforms:*[@}:
>   Prefix xforms has not been declared
> Servlet Stack Trace
> (173 method calls)  Class Name Method Name File Name Line Number
> org.orbeon.saxon.expr.ExpressionParser grumble ExpressionParser.java  
> 127
> org.orbeon.saxon.expr.ExpressionParser makeNamespaceTest  
> ExpressionParser.java 2233
> org.orbeon.saxon.expr.ExpressionParser parseNodeTest  
> ExpressionParser.java 1410
> org.orbeon.saxon.expr.ExpressionParser parseBasicStep  
> ExpressionParser.java 1302
> org.orbeon.saxon.expr.ExpressionParser parseStepExpression  
> ExpressionParser.java 1187
> org.orbeon.saxon.expr.ExpressionParser parseRelativePath  
> ExpressionParser.java 1132
> org.orbeon.saxon.expr.ExpressionParser parsePathExpression  
> ExpressionParser.java 1113
> org.orbeon.saxon.expr.ExpressionParser parseUnaryExpression  
> ExpressionParser.java 992
> org.orbeon.saxon.expr.ExpressionParser parseCastExpression  
> ExpressionParser.java 650
> org.orbeon.saxon.expr.ExpressionParser parseCastableExpression  
> ExpressionParser.java 605
> org.orbeon.saxon.expr.ExpressionParser parseTreatExpression  
> ExpressionParser.java 586
> org.orbeon.saxon.expr.ExpressionParser parseInstanceOfExpression  
> ExpressionParser.java 568
> org.orbeon.saxon.expr.ExpressionParser parseIntersectExpression  
> ExpressionParser.java 1025
> org.orbeon.saxon.expr.ExpressionParser parseUnionExpression  
> ExpressionParser.java 1007
> org.orbeon.saxon.expr.ExpressionParser parseMultiplicativeExpression  
> ExpressionParser.java 944
> org.orbeon.saxon.expr.ExpressionParser parseAdditiveExpression  
> ExpressionParser.java 924
> org.orbeon.saxon.expr.ExpressionParser parseRangeExpression  
> ExpressionParser.java 840
> org.orbeon.saxon.expr.ExpressionParser parseComparisonExpression  
> ExpressionParser.java 790
> org.orbeon.saxon.expr.ExpressionParser parseAndExpression  
> ExpressionParser.java 380
> org.orbeon.saxon.expr.ExpressionParser parseOrExpression  
> ExpressionParser.java 362
> org.orbeon.saxon.expr.ExpressionParser parseExprSingle  
> ExpressionParser.java 316
> org.orbeon.saxon.expr.ExpressionParser parseFunctionCall  
> ExpressionParser.java 1746
> org.orbeon.saxon.expr.ExpressionParser parseBasicStep  
> ExpressionParser.java 1278
> org.orbeon.saxon.expr.ExpressionParser parseStepExpression  
> ExpressionParser.java 1187
> org.orbeon.saxon.expr.ExpressionParser parseRelativePath  
> ExpressionParser.java 1127
> org.orbeon.saxon.expr.ExpressionParser parsePathExpression  
> ExpressionParser.java 1113
> org.orbeon.saxon.expr.ExpressionParser parseUnaryExpression  
> ExpressionParser.java 992
> org.orbeon.saxon.expr.ExpressionParser parseCastExpression  
> ExpressionParser.java 650
> org.orbeon.saxon.expr.ExpressionParser parseCastableExpression  
> ExpressionParser.java 605
> org.orbeon.saxon.expr.ExpressionParser parseTreatExpression  
> ExpressionParser.java 586
> org.orbeon.saxon.expr.ExpressionParser parseInstanceOfExpression  
> ExpressionParser.java 568
> org.orbeon.saxon.expr.ExpressionParser parseIntersectExpression  
> ExpressionParser.java 1025
> org.orbeon.saxon.expr.ExpressionParser parseUnionExpression  
> ExpressionParser.java 1007
> org.orbeon.saxon.expr.ExpressionParser parseMultiplicativeExpression  
> ExpressionParser.java 944
> org.orbeon.saxon.expr.ExpressionParser parseAdditiveExpression  
> ExpressionParser.java 924
> org.orbeon.saxon.expr.ExpressionParser parseRangeExpression  
> ExpressionParser.java 840
> org.orbeon.saxon.expr.ExpressionParser parseComparisonExpression  
> ExpressionParser.java 790
> org.orbeon.saxon.expr.ExpressionParser parseAndExpression  
> ExpressionParser.java 380
> org.orbeon.saxon.expr.ExpressionParser parseOrExpression  
> ExpressionParser.java 362
> org.orbeon.saxon.expr.ExpressionParser parseExprSingle  
> ExpressionParser.java 316
> org.orbeon.saxon.expr.ExpressionParser parseExpression  
> ExpressionParser.java 280
> org.orbeon.saxon.expr.ExpressionParser parse ExpressionParser.java 202
> org.orbeon.saxon.expr.ExpressionTool make ExpressionTool.java 69
> org.orbeon.oxf.util.XPathCache$XFormsCachePoolableObjetFactory  
> makeObject XPathCache.java 425
> org.orbeon.oxf.util.SoftReferenceObjectPool borrowObject  
> SoftReferenceObjectPool.java 71
> org.orbeon.oxf.util.XPathCache getXPathExpression XPathCache.java 294
> org.orbeon.oxf.util.XPathCache evaluateSingle XPathCache.java 140
> org.orbeon.oxf.util.XPathCache evaluateSingle XPathCache.java 131
> org.orbeon.oxf.xforms.XFormsStaticState$1 startVisitControl  
> XFormsStaticState.java 580
> org.orbeon.oxf.xforms.XFormsStaticState handleControlsStatic  
> XFormsStaticState.java 667
> org.orbeon.oxf.xforms.XFormsStaticState handleControlsStatic  
> XFormsStaticState.java 663
> org.orbeon.oxf.xforms.XFormsStaticState visitAllControlStatic  
> XFormsStaticState.java 650
> org.orbeon.oxf.xforms.XFormsStaticState analyzeIfNecessary  
> XFormsStaticState.java 486
> org.orbeon.oxf.xforms.XFormsContainingDocument createControlAndModel  
> XFormsContainingDocument.java 1493
> org.orbeon.oxf.xforms.XFormsContainingDocument initialize  
> XFormsContainingDocument.java 1438
> org.orbeon.oxf.xforms.XFormsContainingDocument <init>  
> XFormsContainingDocument.java 161
> org.orbeon.oxf.xforms.processor.XFormsToXHTML  
> createCacheContainingDocument XFormsToXHTML.java 330
> org.orbeon.oxf.xforms.processor.XFormsToXHTML access$200  
> XFormsToXHTML.java 51
> org.orbeon.oxf.xforms.processor.XFormsToXHTML$2 read  
> XFormsToXHTML.java 165
> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject  
> ProcessorImpl.java 488
> org.orbeon.oxf.xforms.processor.XFormsToXHTML doIt  
> XFormsToXHTML.java 122
> org.orbeon.oxf.xforms.processor.XFormsToXHTML access$000  
> XFormsToXHTML.java 51
> org.orbeon.oxf.xforms.processor.XFormsToXHTML$1 readImpl  
> XFormsToXHTML.java 81
> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read  
> ProcessorImpl.java 1213
> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX  
> ProcessorImpl.java 348
> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX  
> ProcessorImpl.java 353
> org.orbeon.oxf.processor.xinclude.XIncludeProcessor access$100  
> XIncludeProcessor.java 41
> org.orbeon.oxf.processor.xinclude.XIncludeProcessor$2 read  
> XIncludeProcessor.java 85
> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject  
> ProcessorImpl.java 488
> org.orbeon.oxf.processor.xinclude.XIncludeProcessor access$200  
> XIncludeProcessor.java 41
> org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1 readImpl  
> XIncludeProcessor.java 79
> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read  
> ProcessorImpl.java 1213
> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX  
> ProcessorImpl.java 348
> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000  
> PipelineProcessor.java 62
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run  
> PipelineProcessor.java 92
> org.orbeon.oxf.processor.ProcessorImpl executeChildren  
> ProcessorImpl.java 554
> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100  
> PipelineProcessor.java 62
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl  
> PipelineProcessor.java 90
> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read  
> ProcessorImpl.java 1213
> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1  
> readImpl ConcreteChooseProcessor.java 122
> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read  
> ProcessorImpl.java 1213
> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX  
> ProcessorImpl.java 348
> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000  
> PipelineProcessor.java 62
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run  
> PipelineProcessor.java 92
> org.orbeon.oxf.processor.ProcessorImpl executeChildren  
> ProcessorImpl.java 554
> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100  
> PipelineProcessor.java 62
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl  
> PipelineProcessor.java 90
> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read  
> ProcessorImpl.java 1213
> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1  
> readImpl ConcreteChooseProcessor.java 122
> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read  
> ProcessorImpl.java 1213
> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX  
> ProcessorImpl.java 348
> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000  
> PipelineProcessor.java 62
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run  
> PipelineProcessor.java 92
> org.orbeon.oxf.processor.ProcessorImpl executeChildren  
> ProcessorImpl.java 554
> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100  
> PipelineProcessor.java 62
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl  
> PipelineProcessor.java 90
> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read  
> ProcessorImpl.java 1213
> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX  
> ProcessorImpl.java 348
> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1400  
> PipelineProcessor.java 62
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$6 run  
> PipelineProcessor.java 564
> org.orbeon.oxf.processor.ProcessorImpl executeParents  
> ProcessorImpl.java 572
> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1500  
> PipelineProcessor.java 62
> org.orbeon.oxf.processor.pipeline.PipelineProcessor
> $InternalTopOutput readImpl PipelineProcessor.java 560
> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read  
> ProcessorImpl.java 1213
> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX  
> ProcessorImpl.java 348
> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1400  
> PipelineProcessor.java 62
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$6 run  
> PipelineProcessor.java 564
> org.orbeon.oxf.processor.ProcessorImpl executeParents  
> ProcessorImpl.java 572
> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1500  
> PipelineProcessor.java 62
> org.orbeon.oxf.processor.pipeline.PipelineProcessor
> $InternalTopOutput readImpl PipelineProcessor.java 560
> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read  
> ProcessorImpl.java 1213
> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX  
> ProcessorImpl.java 348
> org.orbeon.oxf.processor.pipeline.TeeProcessor access$000  
> TeeProcessor.java 36
> org.orbeon.oxf.processor.pipeline.TeeProcessor$1 readImpl  
> TeeProcessor.java 59
> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read  
> ProcessorImpl.java 1213
> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX  
> ProcessorImpl.java 348
> org.orbeon.oxf.processor.ProcessorImpl readInputAsTinyTree  
> ProcessorImpl.java 412
> org.orbeon.oxf.processor.ProcessorImpl$5 read ProcessorImpl.java 445
> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject  
> ProcessorImpl.java 488
> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsTinyTree  
> ProcessorImpl.java 443
> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor  
> start ConcreteChooseProcessor.java 185
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run  
> PipelineProcessor.java 644
> org.orbeon.oxf.processor.ProcessorImpl executeChildren  
> ProcessorImpl.java 554
> org.orbeon.oxf.processor.pipeline.PipelineProcessor start  
> PipelineProcessor.java 641
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run  
> PipelineProcessor.java 644
> org.orbeon.oxf.processor.ProcessorImpl executeChildren  
> ProcessorImpl.java 554
> org.orbeon.oxf.processor.pipeline.PipelineProcessor start  
> PipelineProcessor.java 641
> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor  
> start ConcreteChooseProcessor.java 230
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run  
> PipelineProcessor.java 644
> org.orbeon.oxf.processor.ProcessorImpl executeChildren  
> ProcessorImpl.java 554
> org.orbeon.oxf.processor.pipeline.PipelineProcessor start  
> PipelineProcessor.java 641
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run  
> PipelineProcessor.java 644
> org.orbeon.oxf.processor.ProcessorImpl executeChildren  
> ProcessorImpl.java 554
> org.orbeon.oxf.processor.pipeline.PipelineProcessor start  
> PipelineProcessor.java 641
> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor  
> start ConcreteChooseProcessor.java 230
> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run  
> PipelineProcessor.java 644
> org.orbeon.oxf.processor.ProcessorImpl executeChildren  
> ProcessorImpl.java 554
> org.orbeon.oxf.processor.pipeline.PipelineProcessor start  
> PipelineProcessor.java 641
> org.orbeon.oxf.pipeline.InitUtils runProcessor InitUtils.java 95
> org.orbeon.oxf.webapp.ProcessorService service ProcessorService.java  
> 96
> org.orbeon.oxf.servlet.OPSServletDelegate service  
> OPSServletDelegate.java 148
> javax.servlet.http.HttpServlet service HttpServlet.java 856
> com.evermind.server.http.ServletRequestDispatcher invoke  
> ServletRequestDispatcher.java 713
> com.evermind.server.http.ServletRequestDispatcher forwardInternal  
> ServletRequestDispatcher.java 370
> com.evermind.server.http.ServletRequestDispatcher  
> unprivileged_forward ServletRequestDispatcher.java 259
> com.evermind.server.http.ServletRequestDispatcher access$100  
> ServletRequestDispatcher.java 51
> com.evermind.server.http.ServletRequestDispatcher$2 oc4jRun  
> ServletRequestDispatcher.java 193
> oracle.oc4j.security.OC4JSecurity doPrivileged OC4JSecurity.java 283
> com.evermind.server.http.ServletRequestDispatcher forward  
> ServletRequestDispatcher.java 198
> org.orbeon.oxf.servlet.OPSXFormsFilter doFilter OPSXFormsFilter.java  
> 90
> com.evermind.server.http.ServletRequestDispatcher invoke  
> ServletRequestDispatcher.java 623
> com.evermind.server.http.ServletRequestDispatcher forwardInternal  
> ServletRequestDispatcher.java 370
> com.evermind.server.http.HttpRequestHandler doProcessRequest  
> HttpRequestHandler.java 871
> com.evermind.server.http.HttpRequestHandler processRequest  
> HttpRequestHandler.java 453
> com.evermind.server.http.HttpRequestHandler serveOneRequest  
> HttpRequestHandler.java 221
> com.evermind.server.http.HttpRequestHandler run  
> HttpRequestHandler.java 122
> com.evermind.server.http.HttpRequestHandler run  
> HttpRequestHandler.java 111
> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable run  
> ServerSocketReadHandler.java 260
> oracle.oc4j.network.ServerSocketAcceptHandler procClientSocket  
> ServerSocketAcceptHandler.java 239
> oracle.oc4j.network.ServerSocketAcceptHandler access$700  
> ServerSocketAcceptHandler.java 34
> oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse run  
> ServerSocketAcceptHandler.java 880
> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker run  
> ReleasableResourcePooledExecutor.java 303
> java.lang.Thread run Thread.java
>
>
> ----- Original Message ----- From: "Alessandro Vernet" <[hidden email]
> >
> To: <[hidden email]>
> Sent: Wednesday, March 26, 2008 9:59 PM
> Subject: [ops-users] Re: Re: Re: Re: Re: Cannot find a matching 1-
> argument function named {http://orbeonorg/oxf/xml/xforms}evaluate()
>
>
>> Jean Luc,
>>
>> On Mar 26, 2008, at 1:59 PM, Jean Luc wrote:
>>>        <xf:input ref="xxforms:evaluate(concat('/test/widgetList/
>>> widget[@widgetCode=''', widgetParentCode , ''']/name'))">
>>
>>
>> If you are using a recent nightly build, you can use the context()
>> function in this case. Instead of widgetParentCode, write context()/
>> widgetParentCode. See:
>>
>> http://www.w3.org/TR/xforms11/#fn-context
>>
>> 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
--
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
Reply | Threaded
Open this post in threaded view
|

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

Jean Luc-2
As suggested by Alex:

<xf:input
ref="xxforms:evaluate(concat('/test/widgetList/widget[@widgetCode=''',
context()/widgetParentCode , ''']/name'))">

The only change that triggered the exception was adding context()/ in front
of widgetParentCode, so I presume the implementation of context() assumes
"xforms" somewhere.



----- Original Message -----
From: "Erik Bruchez" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, March 27, 2008 1:09 PM
Subject: [ops-users] Re: Re: Re: Re: Re: Re: Re: Cannot find a matching
1-argument function named {http://orbeonorg/oxf/xml/xforms}evaluate()


> Where is the "xforms" prefix required? What's the XPath expression
> causing the issue?
>
> -Erik
>
> On Mar 27, 2008, at 7:40 AM, Jean Luc wrote:
>
>> Using context() with 3.6.0.200803270724, Orbeon appears to require
>> the "xforms" specifically as a namespace prefix. With a slightly
>> older build (about 2 weeks) it accepted other prefixes as well (I
>> used "xf" for brevity; normally the prefix itself doesn't matter as
>> long as it's mapped to the correct URI).
>>
>> Is this going to stay as a requirement? I can update our forms &
>> code to use "xforms" but it's useful to know if it's temporary or not.
>>
>> Thanks,
>> JL
>>
>> (I'll post an update about context() after making the changes).
>>
>>
>> org.orbeon.saxon.trans.StaticError
>> Exception Class org.orbeon.saxon.trans.StaticError
>> Message XPath syntax error at char 18 in {exists(.//xforms:*[@}:
>>   Prefix xforms has not been declared
>> Servlet Stack Trace
>> (173 method calls)  Class Name Method Name File Name Line Number
>> org.orbeon.saxon.expr.ExpressionParser grumble ExpressionParser.java
>> 127
>> org.orbeon.saxon.expr.ExpressionParser makeNamespaceTest
>> ExpressionParser.java 2233
>> org.orbeon.saxon.expr.ExpressionParser parseNodeTest
>> ExpressionParser.java 1410
>> org.orbeon.saxon.expr.ExpressionParser parseBasicStep
>> ExpressionParser.java 1302
>> org.orbeon.saxon.expr.ExpressionParser parseStepExpression
>> ExpressionParser.java 1187
>> org.orbeon.saxon.expr.ExpressionParser parseRelativePath
>> ExpressionParser.java 1132
>> org.orbeon.saxon.expr.ExpressionParser parsePathExpression
>> ExpressionParser.java 1113
>> org.orbeon.saxon.expr.ExpressionParser parseUnaryExpression
>> ExpressionParser.java 992
>> org.orbeon.saxon.expr.ExpressionParser parseCastExpression
>> ExpressionParser.java 650
>> org.orbeon.saxon.expr.ExpressionParser parseCastableExpression
>> ExpressionParser.java 605
>> org.orbeon.saxon.expr.ExpressionParser parseTreatExpression
>> ExpressionParser.java 586
>> org.orbeon.saxon.expr.ExpressionParser parseInstanceOfExpression
>> ExpressionParser.java 568
>> org.orbeon.saxon.expr.ExpressionParser parseIntersectExpression
>> ExpressionParser.java 1025
>> org.orbeon.saxon.expr.ExpressionParser parseUnionExpression
>> ExpressionParser.java 1007
>> org.orbeon.saxon.expr.ExpressionParser parseMultiplicativeExpression
>> ExpressionParser.java 944
>> org.orbeon.saxon.expr.ExpressionParser parseAdditiveExpression
>> ExpressionParser.java 924
>> org.orbeon.saxon.expr.ExpressionParser parseRangeExpression
>> ExpressionParser.java 840
>> org.orbeon.saxon.expr.ExpressionParser parseComparisonExpression
>> ExpressionParser.java 790
>> org.orbeon.saxon.expr.ExpressionParser parseAndExpression
>> ExpressionParser.java 380
>> org.orbeon.saxon.expr.ExpressionParser parseOrExpression
>> ExpressionParser.java 362
>> org.orbeon.saxon.expr.ExpressionParser parseExprSingle
>> ExpressionParser.java 316
>> org.orbeon.saxon.expr.ExpressionParser parseFunctionCall
>> ExpressionParser.java 1746
>> org.orbeon.saxon.expr.ExpressionParser parseBasicStep
>> ExpressionParser.java 1278
>> org.orbeon.saxon.expr.ExpressionParser parseStepExpression
>> ExpressionParser.java 1187
>> org.orbeon.saxon.expr.ExpressionParser parseRelativePath
>> ExpressionParser.java 1127
>> org.orbeon.saxon.expr.ExpressionParser parsePathExpression
>> ExpressionParser.java 1113
>> org.orbeon.saxon.expr.ExpressionParser parseUnaryExpression
>> ExpressionParser.java 992
>> org.orbeon.saxon.expr.ExpressionParser parseCastExpression
>> ExpressionParser.java 650
>> org.orbeon.saxon.expr.ExpressionParser parseCastableExpression
>> ExpressionParser.java 605
>> org.orbeon.saxon.expr.ExpressionParser parseTreatExpression
>> ExpressionParser.java 586
>> org.orbeon.saxon.expr.ExpressionParser parseInstanceOfExpression
>> ExpressionParser.java 568
>> org.orbeon.saxon.expr.ExpressionParser parseIntersectExpression
>> ExpressionParser.java 1025
>> org.orbeon.saxon.expr.ExpressionParser parseUnionExpression
>> ExpressionParser.java 1007
>> org.orbeon.saxon.expr.ExpressionParser parseMultiplicativeExpression
>> ExpressionParser.java 944
>> org.orbeon.saxon.expr.ExpressionParser parseAdditiveExpression
>> ExpressionParser.java 924
>> org.orbeon.saxon.expr.ExpressionParser parseRangeExpression
>> ExpressionParser.java 840
>> org.orbeon.saxon.expr.ExpressionParser parseComparisonExpression
>> ExpressionParser.java 790
>> org.orbeon.saxon.expr.ExpressionParser parseAndExpression
>> ExpressionParser.java 380
>> org.orbeon.saxon.expr.ExpressionParser parseOrExpression
>> ExpressionParser.java 362
>> org.orbeon.saxon.expr.ExpressionParser parseExprSingle
>> ExpressionParser.java 316
>> org.orbeon.saxon.expr.ExpressionParser parseExpression
>> ExpressionParser.java 280
>> org.orbeon.saxon.expr.ExpressionParser parse ExpressionParser.java 202
>> org.orbeon.saxon.expr.ExpressionTool make ExpressionTool.java 69
>> org.orbeon.oxf.util.XPathCache$XFormsCachePoolableObjetFactory
>> makeObject XPathCache.java 425
>> org.orbeon.oxf.util.SoftReferenceObjectPool borrowObject
>> SoftReferenceObjectPool.java 71
>> org.orbeon.oxf.util.XPathCache getXPathExpression XPathCache.java 294
>> org.orbeon.oxf.util.XPathCache evaluateSingle XPathCache.java 140
>> org.orbeon.oxf.util.XPathCache evaluateSingle XPathCache.java 131
>> org.orbeon.oxf.xforms.XFormsStaticState$1 startVisitControl
>> XFormsStaticState.java 580
>> org.orbeon.oxf.xforms.XFormsStaticState handleControlsStatic
>> XFormsStaticState.java 667
>> org.orbeon.oxf.xforms.XFormsStaticState handleControlsStatic
>> XFormsStaticState.java 663
>> org.orbeon.oxf.xforms.XFormsStaticState visitAllControlStatic
>> XFormsStaticState.java 650
>> org.orbeon.oxf.xforms.XFormsStaticState analyzeIfNecessary
>> XFormsStaticState.java 486
>> org.orbeon.oxf.xforms.XFormsContainingDocument createControlAndModel
>> XFormsContainingDocument.java 1493
>> org.orbeon.oxf.xforms.XFormsContainingDocument initialize
>> XFormsContainingDocument.java 1438
>> org.orbeon.oxf.xforms.XFormsContainingDocument <init>
>> XFormsContainingDocument.java 161
>> org.orbeon.oxf.xforms.processor.XFormsToXHTML
>> createCacheContainingDocument XFormsToXHTML.java 330
>> org.orbeon.oxf.xforms.processor.XFormsToXHTML access$200
>> XFormsToXHTML.java 51
>> org.orbeon.oxf.xforms.processor.XFormsToXHTML$2 read
>> XFormsToXHTML.java 165
>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
>> ProcessorImpl.java 488
>> org.orbeon.oxf.xforms.processor.XFormsToXHTML doIt
>> XFormsToXHTML.java 122
>> org.orbeon.oxf.xforms.processor.XFormsToXHTML access$000
>> XFormsToXHTML.java 51
>> org.orbeon.oxf.xforms.processor.XFormsToXHTML$1 readImpl
>> XFormsToXHTML.java 81
>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>> ProcessorImpl.java 1213
>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>> ProcessorImpl.java 348
>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>> ProcessorImpl.java 353
>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor access$100
>> XIncludeProcessor.java 41
>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor$2 read
>> XIncludeProcessor.java 85
>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
>> ProcessorImpl.java 488
>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor access$200
>> XIncludeProcessor.java 41
>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1 readImpl
>> XIncludeProcessor.java 79
>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>> ProcessorImpl.java 1213
>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>> ProcessorImpl.java 348
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
>> PipelineProcessor.java 62
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
>> PipelineProcessor.java 92
>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>> ProcessorImpl.java 554
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
>> PipelineProcessor.java 62
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
>> PipelineProcessor.java 90
>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>> ProcessorImpl.java 1213
>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1
>> readImpl ConcreteChooseProcessor.java 122
>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>> ProcessorImpl.java 1213
>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>> ProcessorImpl.java 348
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
>> PipelineProcessor.java 62
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
>> PipelineProcessor.java 92
>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>> ProcessorImpl.java 554
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
>> PipelineProcessor.java 62
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
>> PipelineProcessor.java 90
>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>> ProcessorImpl.java 1213
>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1
>> readImpl ConcreteChooseProcessor.java 122
>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>> ProcessorImpl.java 1213
>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>> ProcessorImpl.java 348
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
>> PipelineProcessor.java 62
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
>> PipelineProcessor.java 92
>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>> ProcessorImpl.java 554
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
>> PipelineProcessor.java 62
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
>> PipelineProcessor.java 90
>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>> ProcessorImpl.java 1213
>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>> ProcessorImpl.java 348
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1400
>> PipelineProcessor.java 62
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$6 run
>> PipelineProcessor.java 564
>> org.orbeon.oxf.processor.ProcessorImpl executeParents
>> ProcessorImpl.java 572
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1500
>> PipelineProcessor.java 62
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor
>> $InternalTopOutput readImpl PipelineProcessor.java 560
>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>> ProcessorImpl.java 1213
>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>> ProcessorImpl.java 348
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1400
>> PipelineProcessor.java 62
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$6 run
>> PipelineProcessor.java 564
>> org.orbeon.oxf.processor.ProcessorImpl executeParents
>> ProcessorImpl.java 572
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1500
>> PipelineProcessor.java 62
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor
>> $InternalTopOutput readImpl PipelineProcessor.java 560
>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>> ProcessorImpl.java 1213
>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>> ProcessorImpl.java 348
>> org.orbeon.oxf.processor.pipeline.TeeProcessor access$000
>> TeeProcessor.java 36
>> org.orbeon.oxf.processor.pipeline.TeeProcessor$1 readImpl
>> TeeProcessor.java 59
>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java 1030
>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>> ProcessorImpl.java 1213
>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>> ProcessorImpl.java 348
>> org.orbeon.oxf.processor.ProcessorImpl readInputAsTinyTree
>> ProcessorImpl.java 412
>> org.orbeon.oxf.processor.ProcessorImpl$5 read ProcessorImpl.java 445
>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
>> ProcessorImpl.java 488
>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsTinyTree
>> ProcessorImpl.java 443
>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor
>> start ConcreteChooseProcessor.java 185
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>> PipelineProcessor.java 644
>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>> ProcessorImpl.java 554
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>> PipelineProcessor.java 641
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>> PipelineProcessor.java 644
>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>> ProcessorImpl.java 554
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>> PipelineProcessor.java 641
>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor
>> start ConcreteChooseProcessor.java 230
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>> PipelineProcessor.java 644
>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>> ProcessorImpl.java 554
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>> PipelineProcessor.java 641
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>> PipelineProcessor.java 644
>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>> ProcessorImpl.java 554
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>> PipelineProcessor.java 641
>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor
>> start ConcreteChooseProcessor.java 230
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>> PipelineProcessor.java 644
>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>> ProcessorImpl.java 554
>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>> PipelineProcessor.java 641
>> org.orbeon.oxf.pipeline.InitUtils runProcessor InitUtils.java 95
>> org.orbeon.oxf.webapp.ProcessorService service ProcessorService.java
>> 96
>> org.orbeon.oxf.servlet.OPSServletDelegate service
>> OPSServletDelegate.java 148
>> javax.servlet.http.HttpServlet service HttpServlet.java 856
>> com.evermind.server.http.ServletRequestDispatcher invoke
>> ServletRequestDispatcher.java 713
>> com.evermind.server.http.ServletRequestDispatcher forwardInternal
>> ServletRequestDispatcher.java 370
>> com.evermind.server.http.ServletRequestDispatcher
>> unprivileged_forward ServletRequestDispatcher.java 259
>> com.evermind.server.http.ServletRequestDispatcher access$100
>> ServletRequestDispatcher.java 51
>> com.evermind.server.http.ServletRequestDispatcher$2 oc4jRun
>> ServletRequestDispatcher.java 193
>> oracle.oc4j.security.OC4JSecurity doPrivileged OC4JSecurity.java 283
>> com.evermind.server.http.ServletRequestDispatcher forward
>> ServletRequestDispatcher.java 198
>> org.orbeon.oxf.servlet.OPSXFormsFilter doFilter OPSXFormsFilter.java
>> 90
>> com.evermind.server.http.ServletRequestDispatcher invoke
>> ServletRequestDispatcher.java 623
>> com.evermind.server.http.ServletRequestDispatcher forwardInternal
>> ServletRequestDispatcher.java 370
>> com.evermind.server.http.HttpRequestHandler doProcessRequest
>> HttpRequestHandler.java 871
>> com.evermind.server.http.HttpRequestHandler processRequest
>> HttpRequestHandler.java 453
>> com.evermind.server.http.HttpRequestHandler serveOneRequest
>> HttpRequestHandler.java 221
>> com.evermind.server.http.HttpRequestHandler run
>> HttpRequestHandler.java 122
>> com.evermind.server.http.HttpRequestHandler run
>> HttpRequestHandler.java 111
>> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable run
>> ServerSocketReadHandler.java 260
>> oracle.oc4j.network.ServerSocketAcceptHandler procClientSocket
>> ServerSocketAcceptHandler.java 239
>> oracle.oc4j.network.ServerSocketAcceptHandler access$700
>> ServerSocketAcceptHandler.java 34
>> oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse run
>> ServerSocketAcceptHandler.java 880
>> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker run
>> ReleasableResourcePooledExecutor.java 303
>> java.lang.Thread run Thread.java
>>
>>
>> ----- Original Message ----- From: "Alessandro Vernet"
>> <[hidden email]
>> >
>> To: <[hidden email]>
>> Sent: Wednesday, March 26, 2008 9:59 PM
>> Subject: [ops-users] Re: Re: Re: Re: Re: Cannot find a matching 1-
>> argument function named {http://orbeonorg/oxf/xml/xforms}evaluate()
>>
>>
>>> Jean Luc,
>>>
>>> On Mar 26, 2008, at 1:59 PM, Jean Luc wrote:
>>>>        <xf:input ref="xxforms:evaluate(concat('/test/widgetList/
>>>> widget[@widgetCode=''', widgetParentCode , ''']/name'))">
>>>
>>>
>>> If you are using a recent nightly build, you can use the context()
>>> function in this case. Instead of widgetParentCode, write context()/
>>> widgetParentCode. See:
>>>
>>> http://www.w3.org/TR/xforms11/#fn-context
>>>
>>> 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
>
> --
> 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
>



--
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
Reply | Threaded
Open this post in threaded view
|

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

Erik Bruchez
Administrator
No, neither context() nor evaluate() assume any such default namespace  
mappings.

The exception you had shows:

   "exists(.//xforms:*["

So you are using the xforms:* prefix in that expression, right? But is  
it declared?

-Erik

On Mar 27, 2008, at 10:17 AM, Jean Luc wrote:

> As suggested by Alex:
>
> <xf:input ref="xxforms:evaluate(concat('/test/widgetList/
> widget[@widgetCode=''', context()/widgetParentCode , ''']/name'))">
>
> The only change that triggered the exception was adding context()/  
> in front of widgetParentCode, so I presume the implementation of  
> context() assumes "xforms" somewhere.
>
>
>
> ----- Original Message ----- From: "Erik Bruchez"  
> <[hidden email]>
> To: <[hidden email]>
> Sent: Thursday, March 27, 2008 1:09 PM
> Subject: [ops-users] Re: Re: Re: Re: Re: Re: Re: Cannot find a  
> matching 1-argument function named {http://orbeonorg/oxf/xml/ 
> xforms}evaluate()
>
>
>> Where is the "xforms" prefix required? What's the XPath expression
>> causing the issue?
>>
>> -Erik
>>
>> On Mar 27, 2008, at 7:40 AM, Jean Luc wrote:
>>
>>> Using context() with 3.6.0.200803270724, Orbeon appears to require
>>> the "xforms" specifically as a namespace prefix. With a slightly
>>> older build (about 2 weeks) it accepted other prefixes as well (I
>>> used "xf" for brevity; normally the prefix itself doesn't matter as
>>> long as it's mapped to the correct URI).
>>>
>>> Is this going to stay as a requirement? I can update our forms &
>>> code to use "xforms" but it's useful to know if it's temporary or  
>>> not.
>>>
>>> Thanks,
>>> JL
>>>
>>> (I'll post an update about context() after making the changes).
>>>
>>>
>>> org.orbeon.saxon.trans.StaticError
>>> Exception Class org.orbeon.saxon.trans.StaticError
>>> Message XPath syntax error at char 18 in {exists(.//xforms:*[@}:
>>>  Prefix xforms has not been declared
>>> Servlet Stack Trace
>>> (173 method calls)  Class Name Method Name File Name Line Number
>>> org.orbeon.saxon.expr.ExpressionParser grumble ExpressionParser.java
>>> 127
>>> org.orbeon.saxon.expr.ExpressionParser makeNamespaceTest
>>> ExpressionParser.java 2233
>>> org.orbeon.saxon.expr.ExpressionParser parseNodeTest
>>> ExpressionParser.java 1410
>>> org.orbeon.saxon.expr.ExpressionParser parseBasicStep
>>> ExpressionParser.java 1302
>>> org.orbeon.saxon.expr.ExpressionParser parseStepExpression
>>> ExpressionParser.java 1187
>>> org.orbeon.saxon.expr.ExpressionParser parseRelativePath
>>> ExpressionParser.java 1132
>>> org.orbeon.saxon.expr.ExpressionParser parsePathExpression
>>> ExpressionParser.java 1113
>>> org.orbeon.saxon.expr.ExpressionParser parseUnaryExpression
>>> ExpressionParser.java 992
>>> org.orbeon.saxon.expr.ExpressionParser parseCastExpression
>>> ExpressionParser.java 650
>>> org.orbeon.saxon.expr.ExpressionParser parseCastableExpression
>>> ExpressionParser.java 605
>>> org.orbeon.saxon.expr.ExpressionParser parseTreatExpression
>>> ExpressionParser.java 586
>>> org.orbeon.saxon.expr.ExpressionParser parseInstanceOfExpression
>>> ExpressionParser.java 568
>>> org.orbeon.saxon.expr.ExpressionParser parseIntersectExpression
>>> ExpressionParser.java 1025
>>> org.orbeon.saxon.expr.ExpressionParser parseUnionExpression
>>> ExpressionParser.java 1007
>>> org.orbeon.saxon.expr.ExpressionParser parseMultiplicativeExpression
>>> ExpressionParser.java 944
>>> org.orbeon.saxon.expr.ExpressionParser parseAdditiveExpression
>>> ExpressionParser.java 924
>>> org.orbeon.saxon.expr.ExpressionParser parseRangeExpression
>>> ExpressionParser.java 840
>>> org.orbeon.saxon.expr.ExpressionParser parseComparisonExpression
>>> ExpressionParser.java 790
>>> org.orbeon.saxon.expr.ExpressionParser parseAndExpression
>>> ExpressionParser.java 380
>>> org.orbeon.saxon.expr.ExpressionParser parseOrExpression
>>> ExpressionParser.java 362
>>> org.orbeon.saxon.expr.ExpressionParser parseExprSingle
>>> ExpressionParser.java 316
>>> org.orbeon.saxon.expr.ExpressionParser parseFunctionCall
>>> ExpressionParser.java 1746
>>> org.orbeon.saxon.expr.ExpressionParser parseBasicStep
>>> ExpressionParser.java 1278
>>> org.orbeon.saxon.expr.ExpressionParser parseStepExpression
>>> ExpressionParser.java 1187
>>> org.orbeon.saxon.expr.ExpressionParser parseRelativePath
>>> ExpressionParser.java 1127
>>> org.orbeon.saxon.expr.ExpressionParser parsePathExpression
>>> ExpressionParser.java 1113
>>> org.orbeon.saxon.expr.ExpressionParser parseUnaryExpression
>>> ExpressionParser.java 992
>>> org.orbeon.saxon.expr.ExpressionParser parseCastExpression
>>> ExpressionParser.java 650
>>> org.orbeon.saxon.expr.ExpressionParser parseCastableExpression
>>> ExpressionParser.java 605
>>> org.orbeon.saxon.expr.ExpressionParser parseTreatExpression
>>> ExpressionParser.java 586
>>> org.orbeon.saxon.expr.ExpressionParser parseInstanceOfExpression
>>> ExpressionParser.java 568
>>> org.orbeon.saxon.expr.ExpressionParser parseIntersectExpression
>>> ExpressionParser.java 1025
>>> org.orbeon.saxon.expr.ExpressionParser parseUnionExpression
>>> ExpressionParser.java 1007
>>> org.orbeon.saxon.expr.ExpressionParser parseMultiplicativeExpression
>>> ExpressionParser.java 944
>>> org.orbeon.saxon.expr.ExpressionParser parseAdditiveExpression
>>> ExpressionParser.java 924
>>> org.orbeon.saxon.expr.ExpressionParser parseRangeExpression
>>> ExpressionParser.java 840
>>> org.orbeon.saxon.expr.ExpressionParser parseComparisonExpression
>>> ExpressionParser.java 790
>>> org.orbeon.saxon.expr.ExpressionParser parseAndExpression
>>> ExpressionParser.java 380
>>> org.orbeon.saxon.expr.ExpressionParser parseOrExpression
>>> ExpressionParser.java 362
>>> org.orbeon.saxon.expr.ExpressionParser parseExprSingle
>>> ExpressionParser.java 316
>>> org.orbeon.saxon.expr.ExpressionParser parseExpression
>>> ExpressionParser.java 280
>>> org.orbeon.saxon.expr.ExpressionParser parse ExpressionParser.java  
>>> 202
>>> org.orbeon.saxon.expr.ExpressionTool make ExpressionTool.java 69
>>> org.orbeon.oxf.util.XPathCache$XFormsCachePoolableObjetFactory
>>> makeObject XPathCache.java 425
>>> org.orbeon.oxf.util.SoftReferenceObjectPool borrowObject
>>> SoftReferenceObjectPool.java 71
>>> org.orbeon.oxf.util.XPathCache getXPathExpression XPathCache.java  
>>> 294
>>> org.orbeon.oxf.util.XPathCache evaluateSingle XPathCache.java 140
>>> org.orbeon.oxf.util.XPathCache evaluateSingle XPathCache.java 131
>>> org.orbeon.oxf.xforms.XFormsStaticState$1 startVisitControl
>>> XFormsStaticState.java 580
>>> org.orbeon.oxf.xforms.XFormsStaticState handleControlsStatic
>>> XFormsStaticState.java 667
>>> org.orbeon.oxf.xforms.XFormsStaticState handleControlsStatic
>>> XFormsStaticState.java 663
>>> org.orbeon.oxf.xforms.XFormsStaticState visitAllControlStatic
>>> XFormsStaticState.java 650
>>> org.orbeon.oxf.xforms.XFormsStaticState analyzeIfNecessary
>>> XFormsStaticState.java 486
>>> org.orbeon.oxf.xforms.XFormsContainingDocument createControlAndModel
>>> XFormsContainingDocument.java 1493
>>> org.orbeon.oxf.xforms.XFormsContainingDocument initialize
>>> XFormsContainingDocument.java 1438
>>> org.orbeon.oxf.xforms.XFormsContainingDocument <init>
>>> XFormsContainingDocument.java 161
>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML
>>> createCacheContainingDocument XFormsToXHTML.java 330
>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML access$200
>>> XFormsToXHTML.java 51
>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML$2 read
>>> XFormsToXHTML.java 165
>>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
>>> ProcessorImpl.java 488
>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML doIt
>>> XFormsToXHTML.java 122
>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML access$000
>>> XFormsToXHTML.java 51
>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML$1 readImpl
>>> XFormsToXHTML.java 81
>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java  
>>> 1030
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>> ProcessorImpl.java 1213
>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>> ProcessorImpl.java 348
>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>> ProcessorImpl.java 353
>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor access$100
>>> XIncludeProcessor.java 41
>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor$2 read
>>> XIncludeProcessor.java 85
>>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
>>> ProcessorImpl.java 488
>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor access$200
>>> XIncludeProcessor.java 41
>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1 readImpl
>>> XIncludeProcessor.java 79
>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java  
>>> 1030
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>> ProcessorImpl.java 1213
>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>> ProcessorImpl.java 348
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
>>> PipelineProcessor.java 62
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
>>> PipelineProcessor.java 92
>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>> ProcessorImpl.java 554
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
>>> PipelineProcessor.java 62
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
>>> PipelineProcessor.java 90
>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java  
>>> 1030
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>> ProcessorImpl.java 1213
>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1
>>> readImpl ConcreteChooseProcessor.java 122
>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java  
>>> 1030
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>> ProcessorImpl.java 1213
>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>> ProcessorImpl.java 348
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
>>> PipelineProcessor.java 62
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
>>> PipelineProcessor.java 92
>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>> ProcessorImpl.java 554
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
>>> PipelineProcessor.java 62
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
>>> PipelineProcessor.java 90
>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java  
>>> 1030
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>> ProcessorImpl.java 1213
>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1
>>> readImpl ConcreteChooseProcessor.java 122
>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java  
>>> 1030
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>> ProcessorImpl.java 1213
>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>> ProcessorImpl.java 348
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
>>> PipelineProcessor.java 62
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
>>> PipelineProcessor.java 92
>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>> ProcessorImpl.java 554
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
>>> PipelineProcessor.java 62
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
>>> PipelineProcessor.java 90
>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java  
>>> 1030
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>> ProcessorImpl.java 1213
>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>> ProcessorImpl.java 348
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1400
>>> PipelineProcessor.java 62
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$6 run
>>> PipelineProcessor.java 564
>>> org.orbeon.oxf.processor.ProcessorImpl executeParents
>>> ProcessorImpl.java 572
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1500
>>> PipelineProcessor.java 62
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor
>>> $InternalTopOutput readImpl PipelineProcessor.java 560
>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java  
>>> 1030
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>> ProcessorImpl.java 1213
>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>> ProcessorImpl.java 348
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1400
>>> PipelineProcessor.java 62
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$6 run
>>> PipelineProcessor.java 564
>>> org.orbeon.oxf.processor.ProcessorImpl executeParents
>>> ProcessorImpl.java 572
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1500
>>> PipelineProcessor.java 62
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor
>>> $InternalTopOutput readImpl PipelineProcessor.java 560
>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java  
>>> 1030
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>> ProcessorImpl.java 1213
>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>> ProcessorImpl.java 348
>>> org.orbeon.oxf.processor.pipeline.TeeProcessor access$000
>>> TeeProcessor.java 36
>>> org.orbeon.oxf.processor.pipeline.TeeProcessor$1 readImpl
>>> TeeProcessor.java 59
>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java  
>>> 1030
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>> ProcessorImpl.java 1213
>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>> ProcessorImpl.java 348
>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsTinyTree
>>> ProcessorImpl.java 412
>>> org.orbeon.oxf.processor.ProcessorImpl$5 read ProcessorImpl.java 445
>>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
>>> ProcessorImpl.java 488
>>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsTinyTree
>>> ProcessorImpl.java 443
>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor
>>> start ConcreteChooseProcessor.java 185
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>> PipelineProcessor.java 644
>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>> ProcessorImpl.java 554
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>> PipelineProcessor.java 641
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>> PipelineProcessor.java 644
>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>> ProcessorImpl.java 554
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>> PipelineProcessor.java 641
>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor
>>> start ConcreteChooseProcessor.java 230
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>> PipelineProcessor.java 644
>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>> ProcessorImpl.java 554
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>> PipelineProcessor.java 641
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>> PipelineProcessor.java 644
>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>> ProcessorImpl.java 554
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>> PipelineProcessor.java 641
>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor
>>> start ConcreteChooseProcessor.java 230
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>> PipelineProcessor.java 644
>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>> ProcessorImpl.java 554
>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>> PipelineProcessor.java 641
>>> org.orbeon.oxf.pipeline.InitUtils runProcessor InitUtils.java 95
>>> org.orbeon.oxf.webapp.ProcessorService service ProcessorService.java
>>> 96
>>> org.orbeon.oxf.servlet.OPSServletDelegate service
>>> OPSServletDelegate.java 148
>>> javax.servlet.http.HttpServlet service HttpServlet.java 856
>>> com.evermind.server.http.ServletRequestDispatcher invoke
>>> ServletRequestDispatcher.java 713
>>> com.evermind.server.http.ServletRequestDispatcher forwardInternal
>>> ServletRequestDispatcher.java 370
>>> com.evermind.server.http.ServletRequestDispatcher
>>> unprivileged_forward ServletRequestDispatcher.java 259
>>> com.evermind.server.http.ServletRequestDispatcher access$100
>>> ServletRequestDispatcher.java 51
>>> com.evermind.server.http.ServletRequestDispatcher$2 oc4jRun
>>> ServletRequestDispatcher.java 193
>>> oracle.oc4j.security.OC4JSecurity doPrivileged OC4JSecurity.java 283
>>> com.evermind.server.http.ServletRequestDispatcher forward
>>> ServletRequestDispatcher.java 198
>>> org.orbeon.oxf.servlet.OPSXFormsFilter doFilter OPSXFormsFilter.java
>>> 90
>>> com.evermind.server.http.ServletRequestDispatcher invoke
>>> ServletRequestDispatcher.java 623
>>> com.evermind.server.http.ServletRequestDispatcher forwardInternal
>>> ServletRequestDispatcher.java 370
>>> com.evermind.server.http.HttpRequestHandler doProcessRequest
>>> HttpRequestHandler.java 871
>>> com.evermind.server.http.HttpRequestHandler processRequest
>>> HttpRequestHandler.java 453
>>> com.evermind.server.http.HttpRequestHandler serveOneRequest
>>> HttpRequestHandler.java 221
>>> com.evermind.server.http.HttpRequestHandler run
>>> HttpRequestHandler.java 122
>>> com.evermind.server.http.HttpRequestHandler run
>>> HttpRequestHandler.java 111
>>> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable run
>>> ServerSocketReadHandler.java 260
>>> oracle.oc4j.network.ServerSocketAcceptHandler procClientSocket
>>> ServerSocketAcceptHandler.java 239
>>> oracle.oc4j.network.ServerSocketAcceptHandler access$700
>>> ServerSocketAcceptHandler.java 34
>>> oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse run
>>> ServerSocketAcceptHandler.java 880
>>> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker run
>>> ReleasableResourcePooledExecutor.java 303
>>> java.lang.Thread run Thread.java
>>>
>>>
>>> ----- Original Message ----- From: "Alessandro Vernet" <[hidden email]
>>> >
>>> To: <[hidden email]>
>>> Sent: Wednesday, March 26, 2008 9:59 PM
>>> Subject: [ops-users] Re: Re: Re: Re: Re: Cannot find a matching 1-
>>> argument function named {http://orbeonorg/oxf/xml/xforms}evaluate()
>>>
>>>
>>>> Jean Luc,
>>>>
>>>> On Mar 26, 2008, at 1:59 PM, Jean Luc wrote:
>>>>>       <xf:input ref="xxforms:evaluate(concat('/test/widgetList/
>>>>> widget[@widgetCode=''', widgetParentCode , ''']/name'))">
>>>>
>>>>
>>>> If you are using a recent nightly build, you can use the context()
>>>> function in this case. Instead of widgetParentCode, write  
>>>> context()/
>>>> widgetParentCode. See:
>>>>
>>>> http://www.w3.org/TR/xforms11/#fn-context
>>>>
>>>> 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
>>
>> --
>> 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
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

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-2
It seems eXist hardcodes the namespace *prefix*. As mentioned, I had an "xf"
prefix mapped to the same URI (http://www.w3.org/2002/xforms). Anyway,
changing my forms to use xforms fixed that particular error.

However, something is amiss with context().  It works correctly within an
<xforms:output> but not if called from an xxforms:evaluate(). Or there's
something I don't understand.

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


As you can see, the result of <xforms:output> is as expected, the XPath is
correctly constructed. If I evaluate the XPath in that form through the
inspector, I get <name>a</name>
However, when the same expression is used as a ref (enclosed in an
xxforms:evaluate to get the nodelist, not the string), it returns nothing.

I turned on full debug logging for Orbeon to see if there is any helpful
message but nothing.

I'm going nuts :-)


----- Original Message -----
From: "Erik Bruchez" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, March 27, 2008 3:58 PM
Subject: [ops-users] Re: Re: Re: Re: Re: Re: Re: Re: Re: Cannot find a
matching 1-argument function named
{http://orbeonorg/oxf/xml/xforms}evaluate()


> No, neither context() nor evaluate() assume any such default namespace
> mappings.
>
> The exception you had shows:
>
>   "exists(.//xforms:*["
>
> So you are using the xforms:* prefix in that expression, right? But is
> it declared?
>
> -Erik
>
> On Mar 27, 2008, at 10:17 AM, Jean Luc wrote:
>
>> As suggested by Alex:
>>
>> <xf:input ref="xxforms:evaluate(concat('/test/widgetList/
>> widget[@widgetCode=''', context()/widgetParentCode , ''']/name'))">
>>
>> The only change that triggered the exception was adding context()/
>> in front of widgetParentCode, so I presume the implementation of
>> context() assumes "xforms" somewhere.
>>
>>
>>
>> ----- Original Message ----- From: "Erik Bruchez"
>> <[hidden email]>
>> To: <[hidden email]>
>> Sent: Thursday, March 27, 2008 1:09 PM
>> Subject: [ops-users] Re: Re: Re: Re: Re: Re: Re: Cannot find a
>> matching 1-argument function named {http://orbeonorg/oxf/xml/
>> xforms}evaluate()
>>
>>
>>> Where is the "xforms" prefix required? What's the XPath expression
>>> causing the issue?
>>>
>>> -Erik
>>>
>>> On Mar 27, 2008, at 7:40 AM, Jean Luc wrote:
>>>
>>>> Using context() with 3.6.0.200803270724, Orbeon appears to require
>>>> the "xforms" specifically as a namespace prefix. With a slightly
>>>> older build (about 2 weeks) it accepted other prefixes as well (I
>>>> used "xf" for brevity; normally the prefix itself doesn't matter as
>>>> long as it's mapped to the correct URI).
>>>>
>>>> Is this going to stay as a requirement? I can update our forms &
>>>> code to use "xforms" but it's useful to know if it's temporary or
>>>> not.
>>>>
>>>> Thanks,
>>>> JL
>>>>
>>>> (I'll post an update about context() after making the changes).
>>>>
>>>>
>>>> org.orbeon.saxon.trans.StaticError
>>>> Exception Class org.orbeon.saxon.trans.StaticError
>>>> Message XPath syntax error at char 18 in {exists(.//xforms:*[@}:
>>>>  Prefix xforms has not been declared
>>>> Servlet Stack Trace
>>>> (173 method calls)  Class Name Method Name File Name Line Number
>>>> org.orbeon.saxon.expr.ExpressionParser grumble ExpressionParser.java
>>>> 127
>>>> org.orbeon.saxon.expr.ExpressionParser makeNamespaceTest
>>>> ExpressionParser.java 2233
>>>> org.orbeon.saxon.expr.ExpressionParser parseNodeTest
>>>> ExpressionParser.java 1410
>>>> org.orbeon.saxon.expr.ExpressionParser parseBasicStep
>>>> ExpressionParser.java 1302
>>>> org.orbeon.saxon.expr.ExpressionParser parseStepExpression
>>>> ExpressionParser.java 1187
>>>> org.orbeon.saxon.expr.ExpressionParser parseRelativePath
>>>> ExpressionParser.java 1132
>>>> org.orbeon.saxon.expr.ExpressionParser parsePathExpression
>>>> ExpressionParser.java 1113
>>>> org.orbeon.saxon.expr.ExpressionParser parseUnaryExpression
>>>> ExpressionParser.java 992
>>>> org.orbeon.saxon.expr.ExpressionParser parseCastExpression
>>>> ExpressionParser.java 650
>>>> org.orbeon.saxon.expr.ExpressionParser parseCastableExpression
>>>> ExpressionParser.java 605
>>>> org.orbeon.saxon.expr.ExpressionParser parseTreatExpression
>>>> ExpressionParser.java 586
>>>> org.orbeon.saxon.expr.ExpressionParser parseInstanceOfExpression
>>>> ExpressionParser.java 568
>>>> org.orbeon.saxon.expr.ExpressionParser parseIntersectExpression
>>>> ExpressionParser.java 1025
>>>> org.orbeon.saxon.expr.ExpressionParser parseUnionExpression
>>>> ExpressionParser.java 1007
>>>> org.orbeon.saxon.expr.ExpressionParser parseMultiplicativeExpression
>>>> ExpressionParser.java 944
>>>> org.orbeon.saxon.expr.ExpressionParser parseAdditiveExpression
>>>> ExpressionParser.java 924
>>>> org.orbeon.saxon.expr.ExpressionParser parseRangeExpression
>>>> ExpressionParser.java 840
>>>> org.orbeon.saxon.expr.ExpressionParser parseComparisonExpression
>>>> ExpressionParser.java 790
>>>> org.orbeon.saxon.expr.ExpressionParser parseAndExpression
>>>> ExpressionParser.java 380
>>>> org.orbeon.saxon.expr.ExpressionParser parseOrExpression
>>>> ExpressionParser.java 362
>>>> org.orbeon.saxon.expr.ExpressionParser parseExprSingle
>>>> ExpressionParser.java 316
>>>> org.orbeon.saxon.expr.ExpressionParser parseFunctionCall
>>>> ExpressionParser.java 1746
>>>> org.orbeon.saxon.expr.ExpressionParser parseBasicStep
>>>> ExpressionParser.java 1278
>>>> org.orbeon.saxon.expr.ExpressionParser parseStepExpression
>>>> ExpressionParser.java 1187
>>>> org.orbeon.saxon.expr.ExpressionParser parseRelativePath
>>>> ExpressionParser.java 1127
>>>> org.orbeon.saxon.expr.ExpressionParser parsePathExpression
>>>> ExpressionParser.java 1113
>>>> org.orbeon.saxon.expr.ExpressionParser parseUnaryExpression
>>>> ExpressionParser.java 992
>>>> org.orbeon.saxon.expr.ExpressionParser parseCastExpression
>>>> ExpressionParser.java 650
>>>> org.orbeon.saxon.expr.ExpressionParser parseCastableExpression
>>>> ExpressionParser.java 605
>>>> org.orbeon.saxon.expr.ExpressionParser parseTreatExpression
>>>> ExpressionParser.java 586
>>>> org.orbeon.saxon.expr.ExpressionParser parseInstanceOfExpression
>>>> ExpressionParser.java 568
>>>> org.orbeon.saxon.expr.ExpressionParser parseIntersectExpression
>>>> ExpressionParser.java 1025
>>>> org.orbeon.saxon.expr.ExpressionParser parseUnionExpression
>>>> ExpressionParser.java 1007
>>>> org.orbeon.saxon.expr.ExpressionParser parseMultiplicativeExpression
>>>> ExpressionParser.java 944
>>>> org.orbeon.saxon.expr.ExpressionParser parseAdditiveExpression
>>>> ExpressionParser.java 924
>>>> org.orbeon.saxon.expr.ExpressionParser parseRangeExpression
>>>> ExpressionParser.java 840
>>>> org.orbeon.saxon.expr.ExpressionParser parseComparisonExpression
>>>> ExpressionParser.java 790
>>>> org.orbeon.saxon.expr.ExpressionParser parseAndExpression
>>>> ExpressionParser.java 380
>>>> org.orbeon.saxon.expr.ExpressionParser parseOrExpression
>>>> ExpressionParser.java 362
>>>> org.orbeon.saxon.expr.ExpressionParser parseExprSingle
>>>> ExpressionParser.java 316
>>>> org.orbeon.saxon.expr.ExpressionParser parseExpression
>>>> ExpressionParser.java 280
>>>> org.orbeon.saxon.expr.ExpressionParser parse ExpressionParser.java
>>>> 202
>>>> org.orbeon.saxon.expr.ExpressionTool make ExpressionTool.java 69
>>>> org.orbeon.oxf.util.XPathCache$XFormsCachePoolableObjetFactory
>>>> makeObject XPathCache.java 425
>>>> org.orbeon.oxf.util.SoftReferenceObjectPool borrowObject
>>>> SoftReferenceObjectPool.java 71
>>>> org.orbeon.oxf.util.XPathCache getXPathExpression XPathCache.java
>>>> 294
>>>> org.orbeon.oxf.util.XPathCache evaluateSingle XPathCache.java 140
>>>> org.orbeon.oxf.util.XPathCache evaluateSingle XPathCache.java 131
>>>> org.orbeon.oxf.xforms.XFormsStaticState$1 startVisitControl
>>>> XFormsStaticState.java 580
>>>> org.orbeon.oxf.xforms.XFormsStaticState handleControlsStatic
>>>> XFormsStaticState.java 667
>>>> org.orbeon.oxf.xforms.XFormsStaticState handleControlsStatic
>>>> XFormsStaticState.java 663
>>>> org.orbeon.oxf.xforms.XFormsStaticState visitAllControlStatic
>>>> XFormsStaticState.java 650
>>>> org.orbeon.oxf.xforms.XFormsStaticState analyzeIfNecessary
>>>> XFormsStaticState.java 486
>>>> org.orbeon.oxf.xforms.XFormsContainingDocument createControlAndModel
>>>> XFormsContainingDocument.java 1493
>>>> org.orbeon.oxf.xforms.XFormsContainingDocument initialize
>>>> XFormsContainingDocument.java 1438
>>>> org.orbeon.oxf.xforms.XFormsContainingDocument <init>
>>>> XFormsContainingDocument.java 161
>>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML
>>>> createCacheContainingDocument XFormsToXHTML.java 330
>>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML access$200
>>>> XFormsToXHTML.java 51
>>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML$2 read
>>>> XFormsToXHTML.java 165
>>>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
>>>> ProcessorImpl.java 488
>>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML doIt
>>>> XFormsToXHTML.java 122
>>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML access$000
>>>> XFormsToXHTML.java 51
>>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML$1 readImpl
>>>> XFormsToXHTML.java 81
>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>> 1030
>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>> ProcessorImpl.java 1213
>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>> ProcessorImpl.java 348
>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>> ProcessorImpl.java 353
>>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor access$100
>>>> XIncludeProcessor.java 41
>>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor$2 read
>>>> XIncludeProcessor.java 85
>>>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
>>>> ProcessorImpl.java 488
>>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor access$200
>>>> XIncludeProcessor.java 41
>>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1 readImpl
>>>> XIncludeProcessor.java 79
>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>> 1030
>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>> ProcessorImpl.java 1213
>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>> ProcessorImpl.java 348
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
>>>> PipelineProcessor.java 62
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
>>>> PipelineProcessor.java 92
>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>> ProcessorImpl.java 554
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
>>>> PipelineProcessor.java 62
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
>>>> PipelineProcessor.java 90
>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>> 1030
>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>> ProcessorImpl.java 1213
>>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1
>>>> readImpl ConcreteChooseProcessor.java 122
>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>> 1030
>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>> ProcessorImpl.java 1213
>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>> ProcessorImpl.java 348
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
>>>> PipelineProcessor.java 62
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
>>>> PipelineProcessor.java 92
>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>> ProcessorImpl.java 554
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
>>>> PipelineProcessor.java 62
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
>>>> PipelineProcessor.java 90
>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>> 1030
>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>> ProcessorImpl.java 1213
>>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1
>>>> readImpl ConcreteChooseProcessor.java 122
>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>> 1030
>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>> ProcessorImpl.java 1213
>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>> ProcessorImpl.java 348
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
>>>> PipelineProcessor.java 62
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
>>>> PipelineProcessor.java 92
>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>> ProcessorImpl.java 554
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
>>>> PipelineProcessor.java 62
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
>>>> PipelineProcessor.java 90
>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>> 1030
>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>> ProcessorImpl.java 1213
>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>> ProcessorImpl.java 348
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1400
>>>> PipelineProcessor.java 62
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$6 run
>>>> PipelineProcessor.java 564
>>>> org.orbeon.oxf.processor.ProcessorImpl executeParents
>>>> ProcessorImpl.java 572
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1500
>>>> PipelineProcessor.java 62
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor
>>>> $InternalTopOutput readImpl PipelineProcessor.java 560
>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>> 1030
>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>> ProcessorImpl.java 1213
>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>> ProcessorImpl.java 348
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1400
>>>> PipelineProcessor.java 62
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$6 run
>>>> PipelineProcessor.java 564
>>>> org.orbeon.oxf.processor.ProcessorImpl executeParents
>>>> ProcessorImpl.java 572
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1500
>>>> PipelineProcessor.java 62
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor
>>>> $InternalTopOutput readImpl PipelineProcessor.java 560
>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>> 1030
>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>> ProcessorImpl.java 1213
>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>> ProcessorImpl.java 348
>>>> org.orbeon.oxf.processor.pipeline.TeeProcessor access$000
>>>> TeeProcessor.java 36
>>>> org.orbeon.oxf.processor.pipeline.TeeProcessor$1 readImpl
>>>> TeeProcessor.java 59
>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>> 1030
>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>> ProcessorImpl.java 1213
>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>> ProcessorImpl.java 348
>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsTinyTree
>>>> ProcessorImpl.java 412
>>>> org.orbeon.oxf.processor.ProcessorImpl$5 read ProcessorImpl.java 445
>>>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
>>>> ProcessorImpl.java 488
>>>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsTinyTree
>>>> ProcessorImpl.java 443
>>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor
>>>> start ConcreteChooseProcessor.java 185
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>>> PipelineProcessor.java 644
>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>> ProcessorImpl.java 554
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>>> PipelineProcessor.java 641
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>>> PipelineProcessor.java 644
>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>> ProcessorImpl.java 554
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>>> PipelineProcessor.java 641
>>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor
>>>> start ConcreteChooseProcessor.java 230
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>>> PipelineProcessor.java 644
>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>> ProcessorImpl.java 554
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>>> PipelineProcessor.java 641
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>>> PipelineProcessor.java 644
>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>> ProcessorImpl.java 554
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>>> PipelineProcessor.java 641
>>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor
>>>> start ConcreteChooseProcessor.java 230
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>>> PipelineProcessor.java 644
>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>> ProcessorImpl.java 554
>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>>> PipelineProcessor.java 641
>>>> org.orbeon.oxf.pipeline.InitUtils runProcessor InitUtils.java 95
>>>> org.orbeon.oxf.webapp.ProcessorService service ProcessorService.java
>>>> 96
>>>> org.orbeon.oxf.servlet.OPSServletDelegate service
>>>> OPSServletDelegate.java 148
>>>> javax.servlet.http.HttpServlet service HttpServlet.java 856
>>>> com.evermind.server.http.ServletRequestDispatcher invoke
>>>> ServletRequestDispatcher.java 713
>>>> com.evermind.server.http.ServletRequestDispatcher forwardInternal
>>>> ServletRequestDispatcher.java 370
>>>> com.evermind.server.http.ServletRequestDispatcher
>>>> unprivileged_forward ServletRequestDispatcher.java 259
>>>> com.evermind.server.http.ServletRequestDispatcher access$100
>>>> ServletRequestDispatcher.java 51
>>>> com.evermind.server.http.ServletRequestDispatcher$2 oc4jRun
>>>> ServletRequestDispatcher.java 193
>>>> oracle.oc4j.security.OC4JSecurity doPrivileged OC4JSecurity.java 283
>>>> com.evermind.server.http.ServletRequestDispatcher forward
>>>> ServletRequestDispatcher.java 198
>>>> org.orbeon.oxf.servlet.OPSXFormsFilter doFilter OPSXFormsFilter.java
>>>> 90
>>>> com.evermind.server.http.ServletRequestDispatcher invoke
>>>> ServletRequestDispatcher.java 623
>>>> com.evermind.server.http.ServletRequestDispatcher forwardInternal
>>>> ServletRequestDispatcher.java 370
>>>> com.evermind.server.http.HttpRequestHandler doProcessRequest
>>>> HttpRequestHandler.java 871
>>>> com.evermind.server.http.HttpRequestHandler processRequest
>>>> HttpRequestHandler.java 453
>>>> com.evermind.server.http.HttpRequestHandler serveOneRequest
>>>> HttpRequestHandler.java 221
>>>> com.evermind.server.http.HttpRequestHandler run
>>>> HttpRequestHandler.java 122
>>>> com.evermind.server.http.HttpRequestHandler run
>>>> HttpRequestHandler.java 111
>>>> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable run
>>>> ServerSocketReadHandler.java 260
>>>> oracle.oc4j.network.ServerSocketAcceptHandler procClientSocket
>>>> ServerSocketAcceptHandler.java 239
>>>> oracle.oc4j.network.ServerSocketAcceptHandler access$700
>>>> ServerSocketAcceptHandler.java 34
>>>> oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse run
>>>> ServerSocketAcceptHandler.java 880
>>>> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker run
>>>> ReleasableResourcePooledExecutor.java 303
>>>> java.lang.Thread run Thread.java
>>>>
>>>>
>>>> ----- Original Message ----- From: "Alessandro Vernet"
>>>> <[hidden email]
>>>> >
>>>> To: <[hidden email]>
>>>> Sent: Wednesday, March 26, 2008 9:59 PM
>>>> Subject: [ops-users] Re: Re: Re: Re: Re: Cannot find a matching 1-
>>>> argument function named {http://orbeonorg/oxf/xml/xforms}evaluate()
>>>>
>>>>
>>>>> Jean Luc,
>>>>>
>>>>> On Mar 26, 2008, at 1:59 PM, Jean Luc wrote:
>>>>>>       <xf:input ref="xxforms:evaluate(concat('/test/widgetList/
>>>>>> widget[@widgetCode=''', widgetParentCode , ''']/name'))">
>>>>>
>>>>>
>>>>> If you are using a recent nightly build, you can use the context()
>>>>> function in this case. Instead of widgetParentCode, write
>>>>> context()/
>>>>> widgetParentCode. See:
>>>>>
>>>>> http://www.w3.org/TR/xforms11/#fn-context
>>>>>
>>>>> 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
>>>
>>> --
>>> 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
>>
>>
>> --
>> 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
>



--
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
Reply | Threaded
Open this post in threaded view
|

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

Alessandro Vernet
Administrator
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
Reply | Threaded
Open this post in threaded view
|

binding problem with certain xpath expressions

Jean Luc-2
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

binding-problem.xml (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

Erik Bruchez
Administrator
In reply to this post by Jean Luc-2
Jean-Luc,

Regarding the prefix issue, it turns out it wasn't due to eXist, but  
to a bug in our code. We committed a fix to this now!

-Erik

On Mar 27, 2008, at 2:22 PM, Jean Luc wrote:

> It seems eXist hardcodes the namespace *prefix*. As mentioned, I had  
> an "xf" prefix mapped to the same URI (http://www.w3.org/2002/ 
> xforms). Anyway, changing my forms to use xforms fixed that  
> particular error.
>
> However, something is amiss with context().  It works correctly  
> within an <xforms:output> but not if called from an  
> xxforms:evaluate(). Or there's something I don't understand.
>
> 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
>
>
> As you can see, the result of <xforms:output> is as expected, the  
> XPath is correctly constructed. If I evaluate the XPath in that form  
> through the inspector, I get <name>a</name>
> However, when the same expression is used as a ref (enclosed in an  
> xxforms:evaluate to get the nodelist, not the string), it returns  
> nothing.
>
> I turned on full debug logging for Orbeon to see if there is any  
> helpful message but nothing.
>
> I'm going nuts :-)
>
>
> ----- Original Message ----- From: "Erik Bruchez"  
> <[hidden email]>
> To: <[hidden email]>
> Sent: Thursday, March 27, 2008 3:58 PM
> Subject: [ops-users] Re: Re: Re: Re: Re: Re: Re: Re: Re: Cannot find  
> a matching 1-argument function named {http://orbeonorg/oxf/xml/ 
> xforms}evaluate()
>
>
>> No, neither context() nor evaluate() assume any such default  
>> namespace
>> mappings.
>>
>> The exception you had shows:
>>
>>  "exists(.//xforms:*["
>>
>> So you are using the xforms:* prefix in that expression, right? But  
>> is
>> it declared?
>>
>> -Erik
>>
>> On Mar 27, 2008, at 10:17 AM, Jean Luc wrote:
>>
>>> As suggested by Alex:
>>>
>>> <xf:input ref="xxforms:evaluate(concat('/test/widgetList/
>>> widget[@widgetCode=''', context()/widgetParentCode , ''']/name'))">
>>>
>>> The only change that triggered the exception was adding context()/
>>> in front of widgetParentCode, so I presume the implementation of
>>> context() assumes "xforms" somewhere.
>>>
>>>
>>>
>>> ----- Original Message ----- From: "Erik Bruchez"
>>> <[hidden email]>
>>> To: <[hidden email]>
>>> Sent: Thursday, March 27, 2008 1:09 PM
>>> Subject: [ops-users] Re: Re: Re: Re: Re: Re: Re: Cannot find a
>>> matching 1-argument function named {http://orbeonorg/oxf/xml/
>>> xforms}evaluate()
>>>
>>>
>>>> Where is the "xforms" prefix required? What's the XPath expression
>>>> causing the issue?
>>>>
>>>> -Erik
>>>>
>>>> On Mar 27, 2008, at 7:40 AM, Jean Luc wrote:
>>>>
>>>>> Using context() with 3.6.0.200803270724, Orbeon appears to require
>>>>> the "xforms" specifically as a namespace prefix. With a slightly
>>>>> older build (about 2 weeks) it accepted other prefixes as well (I
>>>>> used "xf" for brevity; normally the prefix itself doesn't matter  
>>>>> as
>>>>> long as it's mapped to the correct URI).
>>>>>
>>>>> Is this going to stay as a requirement? I can update our forms &
>>>>> code to use "xforms" but it's useful to know if it's temporary or
>>>>> not.
>>>>>
>>>>> Thanks,
>>>>> JL
>>>>>
>>>>> (I'll post an update about context() after making the changes).
>>>>>
>>>>>
>>>>> org.orbeon.saxon.trans.StaticError
>>>>> Exception Class org.orbeon.saxon.trans.StaticError
>>>>> Message XPath syntax error at char 18 in {exists(.//xforms:*[@}:
>>>>> Prefix xforms has not been declared
>>>>> Servlet Stack Trace
>>>>> (173 method calls)  Class Name Method Name File Name Line Number
>>>>> org.orbeon.saxon.expr.ExpressionParser grumble  
>>>>> ExpressionParser.java
>>>>> 127
>>>>> org.orbeon.saxon.expr.ExpressionParser makeNamespaceTest
>>>>> ExpressionParser.java 2233
>>>>> org.orbeon.saxon.expr.ExpressionParser parseNodeTest
>>>>> ExpressionParser.java 1410
>>>>> org.orbeon.saxon.expr.ExpressionParser parseBasicStep
>>>>> ExpressionParser.java 1302
>>>>> org.orbeon.saxon.expr.ExpressionParser parseStepExpression
>>>>> ExpressionParser.java 1187
>>>>> org.orbeon.saxon.expr.ExpressionParser parseRelativePath
>>>>> ExpressionParser.java 1132
>>>>> org.orbeon.saxon.expr.ExpressionParser parsePathExpression
>>>>> ExpressionParser.java 1113
>>>>> org.orbeon.saxon.expr.ExpressionParser parseUnaryExpression
>>>>> ExpressionParser.java 992
>>>>> org.orbeon.saxon.expr.ExpressionParser parseCastExpression
>>>>> ExpressionParser.java 650
>>>>> org.orbeon.saxon.expr.ExpressionParser parseCastableExpression
>>>>> ExpressionParser.java 605
>>>>> org.orbeon.saxon.expr.ExpressionParser parseTreatExpression
>>>>> ExpressionParser.java 586
>>>>> org.orbeon.saxon.expr.ExpressionParser parseInstanceOfExpression
>>>>> ExpressionParser.java 568
>>>>> org.orbeon.saxon.expr.ExpressionParser parseIntersectExpression
>>>>> ExpressionParser.java 1025
>>>>> org.orbeon.saxon.expr.ExpressionParser parseUnionExpression
>>>>> ExpressionParser.java 1007
>>>>> org.orbeon.saxon.expr.ExpressionParser  
>>>>> parseMultiplicativeExpression
>>>>> ExpressionParser.java 944
>>>>> org.orbeon.saxon.expr.ExpressionParser parseAdditiveExpression
>>>>> ExpressionParser.java 924
>>>>> org.orbeon.saxon.expr.ExpressionParser parseRangeExpression
>>>>> ExpressionParser.java 840
>>>>> org.orbeon.saxon.expr.ExpressionParser parseComparisonExpression
>>>>> ExpressionParser.java 790
>>>>> org.orbeon.saxon.expr.ExpressionParser parseAndExpression
>>>>> ExpressionParser.java 380
>>>>> org.orbeon.saxon.expr.ExpressionParser parseOrExpression
>>>>> ExpressionParser.java 362
>>>>> org.orbeon.saxon.expr.ExpressionParser parseExprSingle
>>>>> ExpressionParser.java 316
>>>>> org.orbeon.saxon.expr.ExpressionParser parseFunctionCall
>>>>> ExpressionParser.java 1746
>>>>> org.orbeon.saxon.expr.ExpressionParser parseBasicStep
>>>>> ExpressionParser.java 1278
>>>>> org.orbeon.saxon.expr.ExpressionParser parseStepExpression
>>>>> ExpressionParser.java 1187
>>>>> org.orbeon.saxon.expr.ExpressionParser parseRelativePath
>>>>> ExpressionParser.java 1127
>>>>> org.orbeon.saxon.expr.ExpressionParser parsePathExpression
>>>>> ExpressionParser.java 1113
>>>>> org.orbeon.saxon.expr.ExpressionParser parseUnaryExpression
>>>>> ExpressionParser.java 992
>>>>> org.orbeon.saxon.expr.ExpressionParser parseCastExpression
>>>>> ExpressionParser.java 650
>>>>> org.orbeon.saxon.expr.ExpressionParser parseCastableExpression
>>>>> ExpressionParser.java 605
>>>>> org.orbeon.saxon.expr.ExpressionParser parseTreatExpression
>>>>> ExpressionParser.java 586
>>>>> org.orbeon.saxon.expr.ExpressionParser parseInstanceOfExpression
>>>>> ExpressionParser.java 568
>>>>> org.orbeon.saxon.expr.ExpressionParser parseIntersectExpression
>>>>> ExpressionParser.java 1025
>>>>> org.orbeon.saxon.expr.ExpressionParser parseUnionExpression
>>>>> ExpressionParser.java 1007
>>>>> org.orbeon.saxon.expr.ExpressionParser  
>>>>> parseMultiplicativeExpression
>>>>> ExpressionParser.java 944
>>>>> org.orbeon.saxon.expr.ExpressionParser parseAdditiveExpression
>>>>> ExpressionParser.java 924
>>>>> org.orbeon.saxon.expr.ExpressionParser parseRangeExpression
>>>>> ExpressionParser.java 840
>>>>> org.orbeon.saxon.expr.ExpressionParser parseComparisonExpression
>>>>> ExpressionParser.java 790
>>>>> org.orbeon.saxon.expr.ExpressionParser parseAndExpression
>>>>> ExpressionParser.java 380
>>>>> org.orbeon.saxon.expr.ExpressionParser parseOrExpression
>>>>> ExpressionParser.java 362
>>>>> org.orbeon.saxon.expr.ExpressionParser parseExprSingle
>>>>> ExpressionParser.java 316
>>>>> org.orbeon.saxon.expr.ExpressionParser parseExpression
>>>>> ExpressionParser.java 280
>>>>> org.orbeon.saxon.expr.ExpressionParser parse ExpressionParser.java
>>>>> 202
>>>>> org.orbeon.saxon.expr.ExpressionTool make ExpressionTool.java 69
>>>>> org.orbeon.oxf.util.XPathCache$XFormsCachePoolableObjetFactory
>>>>> makeObject XPathCache.java 425
>>>>> org.orbeon.oxf.util.SoftReferenceObjectPool borrowObject
>>>>> SoftReferenceObjectPool.java 71
>>>>> org.orbeon.oxf.util.XPathCache getXPathExpression XPathCache.java
>>>>> 294
>>>>> org.orbeon.oxf.util.XPathCache evaluateSingle XPathCache.java 140
>>>>> org.orbeon.oxf.util.XPathCache evaluateSingle XPathCache.java 131
>>>>> org.orbeon.oxf.xforms.XFormsStaticState$1 startVisitControl
>>>>> XFormsStaticState.java 580
>>>>> org.orbeon.oxf.xforms.XFormsStaticState handleControlsStatic
>>>>> XFormsStaticState.java 667
>>>>> org.orbeon.oxf.xforms.XFormsStaticState handleControlsStatic
>>>>> XFormsStaticState.java 663
>>>>> org.orbeon.oxf.xforms.XFormsStaticState visitAllControlStatic
>>>>> XFormsStaticState.java 650
>>>>> org.orbeon.oxf.xforms.XFormsStaticState analyzeIfNecessary
>>>>> XFormsStaticState.java 486
>>>>> org.orbeon.oxf.xforms.XFormsContainingDocument  
>>>>> createControlAndModel
>>>>> XFormsContainingDocument.java 1493
>>>>> org.orbeon.oxf.xforms.XFormsContainingDocument initialize
>>>>> XFormsContainingDocument.java 1438
>>>>> org.orbeon.oxf.xforms.XFormsContainingDocument <init>
>>>>> XFormsContainingDocument.java 161
>>>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML
>>>>> createCacheContainingDocument XFormsToXHTML.java 330
>>>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML access$200
>>>>> XFormsToXHTML.java 51
>>>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML$2 read
>>>>> XFormsToXHTML.java 165
>>>>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
>>>>> ProcessorImpl.java 488
>>>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML doIt
>>>>> XFormsToXHTML.java 122
>>>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML access$000
>>>>> XFormsToXHTML.java 51
>>>>> org.orbeon.oxf.xforms.processor.XFormsToXHTML$1 readImpl
>>>>> XFormsToXHTML.java 81
>>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>>> 1030
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>>> ProcessorImpl.java 1213
>>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>>> ProcessorImpl.java 348
>>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>>> ProcessorImpl.java 353
>>>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor access$100
>>>>> XIncludeProcessor.java 41
>>>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor$2 read
>>>>> XIncludeProcessor.java 85
>>>>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
>>>>> ProcessorImpl.java 488
>>>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor access$200
>>>>> XIncludeProcessor.java 41
>>>>> org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1 readImpl
>>>>> XIncludeProcessor.java 79
>>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>>> 1030
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>>> ProcessorImpl.java 1213
>>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>>> ProcessorImpl.java 348
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
>>>>> PipelineProcessor.java 62
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
>>>>> PipelineProcessor.java 92
>>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>>> ProcessorImpl.java 554
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
>>>>> PipelineProcessor.java 62
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
>>>>> PipelineProcessor.java 90
>>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>>> 1030
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>>> ProcessorImpl.java 1213
>>>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1
>>>>> readImpl ConcreteChooseProcessor.java 122
>>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>>> 1030
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>>> ProcessorImpl.java 1213
>>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>>> ProcessorImpl.java 348
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
>>>>> PipelineProcessor.java 62
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
>>>>> PipelineProcessor.java 92
>>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>>> ProcessorImpl.java 554
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
>>>>> PipelineProcessor.java 62
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
>>>>> PipelineProcessor.java 90
>>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>>> 1030
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>>> ProcessorImpl.java 1213
>>>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1
>>>>> readImpl ConcreteChooseProcessor.java 122
>>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>>> 1030
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>>> ProcessorImpl.java 1213
>>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>>> ProcessorImpl.java 348
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$000
>>>>> PipelineProcessor.java 62
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$2 run
>>>>> PipelineProcessor.java 92
>>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>>> ProcessorImpl.java 554
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$100
>>>>> PipelineProcessor.java 62
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$1 readImpl
>>>>> PipelineProcessor.java 90
>>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>>> 1030
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>>> ProcessorImpl.java 1213
>>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>>> ProcessorImpl.java 348
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1400
>>>>> PipelineProcessor.java 62
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$6 run
>>>>> PipelineProcessor.java 564
>>>>> org.orbeon.oxf.processor.ProcessorImpl executeParents
>>>>> ProcessorImpl.java 572
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1500
>>>>> PipelineProcessor.java 62
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor
>>>>> $InternalTopOutput readImpl PipelineProcessor.java 560
>>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>>> 1030
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>>> ProcessorImpl.java 1213
>>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>>> ProcessorImpl.java 348
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1400
>>>>> PipelineProcessor.java 62
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$6 run
>>>>> PipelineProcessor.java 564
>>>>> org.orbeon.oxf.processor.ProcessorImpl executeParents
>>>>> ProcessorImpl.java 572
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor access$1500
>>>>> PipelineProcessor.java 62
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor
>>>>> $InternalTopOutput readImpl PipelineProcessor.java 560
>>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>>> 1030
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>>> ProcessorImpl.java 1213
>>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>>> ProcessorImpl.java 348
>>>>> org.orbeon.oxf.processor.pipeline.TeeProcessor access$000
>>>>> TeeProcessor.java 36
>>>>> org.orbeon.oxf.processor.pipeline.TeeProcessor$1 readImpl
>>>>> TeeProcessor.java 59
>>>>> org.orbeon.oxf.processor.ProcessorImpl$7 read ProcessorImpl.java
>>>>> 1030
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl read
>>>>> ProcessorImpl.java 1213
>>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsSAX
>>>>> ProcessorImpl.java 348
>>>>> org.orbeon.oxf.processor.ProcessorImpl readInputAsTinyTree
>>>>> ProcessorImpl.java 412
>>>>> org.orbeon.oxf.processor.ProcessorImpl$5 read ProcessorImpl.java  
>>>>> 445
>>>>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsObject
>>>>> ProcessorImpl.java 488
>>>>> org.orbeon.oxf.processor.ProcessorImpl readCacheInputAsTinyTree
>>>>> ProcessorImpl.java 443
>>>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor
>>>>> start ConcreteChooseProcessor.java 185
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>>>> PipelineProcessor.java 644
>>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>>> ProcessorImpl.java 554
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>>>> PipelineProcessor.java 641
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>>>> PipelineProcessor.java 644
>>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>>> ProcessorImpl.java 554
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>>>> PipelineProcessor.java 641
>>>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor
>>>>> start ConcreteChooseProcessor.java 230
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>>>> PipelineProcessor.java 644
>>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>>> ProcessorImpl.java 554
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>>>> PipelineProcessor.java 641
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>>>> PipelineProcessor.java 644
>>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>>> ProcessorImpl.java 554
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>>>> PipelineProcessor.java 641
>>>>> org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor
>>>>> start ConcreteChooseProcessor.java 230
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run
>>>>> PipelineProcessor.java 644
>>>>> org.orbeon.oxf.processor.ProcessorImpl executeChildren
>>>>> ProcessorImpl.java 554
>>>>> org.orbeon.oxf.processor.pipeline.PipelineProcessor start
>>>>> PipelineProcessor.java 641
>>>>> org.orbeon.oxf.pipeline.InitUtils runProcessor InitUtils.java 95
>>>>> org.orbeon.oxf.webapp.ProcessorService service  
>>>>> ProcessorService.java
>>>>> 96
>>>>> org.orbeon.oxf.servlet.OPSServletDelegate service
>>>>> OPSServletDelegate.java 148
>>>>> javax.servlet.http.HttpServlet service HttpServlet.java 856
>>>>> com.evermind.server.http.ServletRequestDispatcher invoke
>>>>> ServletRequestDispatcher.java 713
>>>>> com.evermind.server.http.ServletRequestDispatcher forwardInternal
>>>>> ServletRequestDispatcher.java 370
>>>>> com.evermind.server.http.ServletRequestDispatcher
>>>>> unprivileged_forward ServletRequestDispatcher.java 259
>>>>> com.evermind.server.http.ServletRequestDispatcher access$100
>>>>> ServletRequestDispatcher.java 51
>>>>> com.evermind.server.http.ServletRequestDispatcher$2 oc4jRun
>>>>> ServletRequestDispatcher.java 193
>>>>> oracle.oc4j.security.OC4JSecurity doPrivileged OC4JSecurity.java  
>>>>> 283
>>>>> com.evermind.server.http.ServletRequestDispatcher forward
>>>>> ServletRequestDispatcher.java 198
>>>>> org.orbeon.oxf.servlet.OPSXFormsFilter doFilter  
>>>>> OPSXFormsFilter.java
>>>>> 90
>>>>> com.evermind.server.http.ServletRequestDispatcher invoke
>>>>> ServletRequestDispatcher.java 623
>>>>> com.evermind.server.http.ServletRequestDispatcher forwardInternal
>>>>> ServletRequestDispatcher.java 370
>>>>> com.evermind.server.http.HttpRequestHandler doProcessRequest
>>>>> HttpRequestHandler.java 871
>>>>> com.evermind.server.http.HttpRequestHandler processRequest
>>>>> HttpRequestHandler.java 453
>>>>> com.evermind.server.http.HttpRequestHandler serveOneRequest
>>>>> HttpRequestHandler.java 221
>>>>> com.evermind.server.http.HttpRequestHandler run
>>>>> HttpRequestHandler.java 122
>>>>> com.evermind.server.http.HttpRequestHandler run
>>>>> HttpRequestHandler.java 111
>>>>> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable run
>>>>> ServerSocketReadHandler.java 260
>>>>> oracle.oc4j.network.ServerSocketAcceptHandler procClientSocket
>>>>> ServerSocketAcceptHandler.java 239
>>>>> oracle.oc4j.network.ServerSocketAcceptHandler access$700
>>>>> ServerSocketAcceptHandler.java 34
>>>>> oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse  
>>>>> run
>>>>> ServerSocketAcceptHandler.java 880
>>>>> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker run
>>>>> ReleasableResourcePooledExecutor.java 303
>>>>> java.lang.Thread run Thread.java
>>>>>
>>>>>
>>>>> ----- Original Message ----- From: "Alessandro Vernet" <[hidden email]
>>>>> >
>>>>> To: <[hidden email]>
>>>>> Sent: Wednesday, March 26, 2008 9:59 PM
>>>>> Subject: [ops-users] Re: Re: Re: Re: Re: Cannot find a matching 1-
>>>>> argument function named {http://orbeonorg/oxf/xml/ 
>>>>> xforms}evaluate()
>>>>>
>>>>>
>>>>>> Jean Luc,
>>>>>>
>>>>>> On Mar 26, 2008, at 1:59 PM, Jean Luc wrote:
>>>>>>>      <xf:input ref="xxforms:evaluate(concat('/test/widgetList/
>>>>>>> widget[@widgetCode=''', widgetParentCode , ''']/name'))">
>>>>>>
>>>>>>
>>>>>> If you are using a recent nightly build, you can use the  
>>>>>> context()
>>>>>> function in this case. Instead of widgetParentCode, write
>>>>>> context()/
>>>>>> widgetParentCode. See:
>>>>>>
>>>>>> http://www.w3.org/TR/xforms11/#fn-context
>>>>>>
>>>>>> 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
>>>>
>>>> --
>>>> 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
>>>
>>>
>>> --
>>> 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
>
>
> --
> 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