function boolean in page-flow with transform xupdate

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

function boolean in page-flow with transform xupdate

ricetrac
Hello,

Before, with orbeon 3.5.1, we use in the <result> element of page-flow the transform "oxf:xupdate" and we make test with <xu:if>.
But with orbeon 3.7.1, we have this error when we use <xu:if> :
"Cannot invoke function 'boolean', no such function"

Is it normal ? or a bug ?

I must use "oxf:xslt" now ?

My example :
<action when="/form/action = 'Valider'" action="visudemande/validationDepotPJ.xpl" > 
   <result when="/FluxWebService/msCodeRet = '0'"  page="commun_page4" transform="oxf:xupdate">
    <xu:transformations>
                <xu:update select="/form/action"/>
                <xu:if test="/form/msIban != ''">
                        <xu:update select="CTierReferenceBancaireVO/msEtranger"/>
                </xu:if>
                <xu:update select="/form/erreur"/>
    </xu:transformations>
    </result>
</action>

Thank You.
Reply | Threaded
Open this post in threaded view
|

Re: function boolean in page-flow with transform xupdate

Alessandro  Vernet
Administrator
Julien,

The XUpdate code hasn't changed in ages, so I am not sure why this
wouldn't work. Could you quote the first 10 to 20 lines of the stack
trace?

Alex

On Wed, Mar 10, 2010 at 5:51 AM, ricetrac <[hidden email]> wrote:

>
> Hello,
>
> Before, with orbeon 3.5.1, we use in the <result> element of page-flow the
> transform "oxf:xupdate" and we make test with <xu:if>.
> But with orbeon 3.7.1, we have this error when we use <xu:if> :
> "Cannot invoke function 'boolean', no such function"
>
> Is it normal ? or a bug ?
>
> I must use "oxf:xslt" now ?
>
> My example :
> <action when="/form/action = 'Valider'"
> action="visudemande/validationDepotPJ.xpl" >
>   <result when="/FluxWebService/msCodeRet = '0'"  page="commun_page4"
> transform="oxf:xupdate">
>        <xu:transformations>
>                <xu:update select="/form/action"/>
>                <xu:if test="/form/msIban != ''">
>                        <xu:update select="CTierReferenceBancaireVO/msEtranger"/>
>                </xu:if>
>                <xu:update select="/form/erreur"/>
>        </xu:transformations>
>    </result>
> </action>
>
> Thank You.
> --
> View this message in context: http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1587421.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: function boolean in page-flow with transform xupdate

ricetrac
These are the first lines of stacktrace :

2010-03-12 17:52:43,078 ERROR ProcessorService  - Exception at line 90 of oxf:/apps/associations/page-flow.xml
org.orbeon.oxf.common.ValidationException: line 90 of oxf:/apps/associations/page-flow.xml: Cannot invoke function 'boolean', no such function
oxf:/apps/associations/page-flow.xml, line 90, column -1: Cannot invoke function 'boolean', no such function
        at org.orbeon.oxf.transformer.xupdate.statement.Utils$1.getFunction(Utils.java:249)
        at org.jaxen.ContextSupport.getFunction(ContextSupport.java:239)
        at org.jaxen.Context.getFunction(Context.java:193)
        at org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:168)
        at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
        at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
        at org.dom4j.xpath.DefaultXPath.evaluate(DefaultXPath.java:110)
        at org.orbeon.oxf.transformer.xupdate.statement.Utils.evaluate(Utils.java:293)
        at org.orbeon.oxf.transformer.xupdate.statement.If.execute(If.java:39)
        at org.orbeon.oxf.transformer.xupdate.statement.Utils.execute(Utils.java:338)
        at org.orbeon.oxf.transformer.xupdate.TransformerImpl.transform(TransformerImpl.java:88)
        at org.orbeon.oxf.processor.transformer.TraxTransformer$1.readImpl(TraxTransformer.java:121)
        at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
        at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
        at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
        at org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProcessor.java:35)
        at org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.readImpl(TeeProcessor.java:89)
        at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
        at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
        at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
        at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:369)
        at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:388)
        at org.orbeon.oxf.processor.InstanceToParametersProcessor$1.readImpl(InstanceToParametersProcessor.java:71)

Thank you.

Julien


Alessandro Vernet wrote
Julien,

The XUpdate code hasn't changed in ages, so I am not sure why this
wouldn't work. Could you quote the first 10 to 20 lines of the stack
trace?

Alex

On Wed, Mar 10, 2010 at 5:51 AM, ricetrac <julien.bittard@logica.com> wrote:
>
> Hello,
>
> Before, with orbeon 3.5.1, we use in the <result> element of page-flow the
> transform "oxf:xupdate" and we make test with <xu:if>.
> But with orbeon 3.7.1, we have this error when we use <xu:if> :
> "Cannot invoke function 'boolean', no such function"
>
> Is it normal ? or a bug ?
>
> I must use "oxf:xslt" now ?
>
> My example :
> <action when="/form/action = 'Valider'"
> action="visudemande/validationDepotPJ.xpl" >
>   <result when="/FluxWebService/msCodeRet = '0'"  page="commun_page4"
> transform="oxf:xupdate">
>        <xu:transformations>
>                <xu:update select="/form/action"/>
>                <xu:if test="/form/msIban != ''">
>                        <xu:update select="CTierReferenceBancaireVO/msEtranger"/>
>                </xu:if>
>                <xu:update select="/form/erreur"/>
>        </xu:transformations>
>    </result>
> </action>
>
> Thank You.
> --
> View this message in context: http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1587421.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>



--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: function boolean in page-flow with transform xupdate

Alessandro  Vernet
Administrator
Julien,

I tried to reproduce this with:

    <p:processor name="oxf:xupdate">
        <p:input name="config">
            <xu:modifications xmlns:xu="http://www.xmldb.org/xupdate">
                <xu:if test="/input != ''">
                    <xu:update select="/input">bar</xu:update>
                </xu:if>
            </xu:modifications>
        </p:input>
        <p:input name="data">
            <input>foo</input>
        </p:input>
        <p:output name="data" id="output"/>
    </p:processor>

But this runs fine (and replaces foo by bar). Would you be able to put
together an XPL file that uses the XUpdate processor, some kind of
simple and reproducible test case I could run here?

Alex

On Fri, Mar 12, 2010 at 9:58 AM, ricetrac <[hidden email]> wrote:

>
> These are the first lines of stacktrace :
>
> 2010-03-12 17:52:43,078 ERROR ProcessorService  - Exception at line 90 of
> oxf:/apps/associations/page-flow.xml
> org.orbeon.oxf.common.ValidationException: line 90 of
> oxf:/apps/associations/page-flow.xml: Cannot invoke function 'boolean', no
> such function
> oxf:/apps/associations/page-flow.xml, line 90, column -1: Cannot invoke
> function 'boolean', no such function
>        at
> org.orbeon.oxf.transformer.xupdate.statement.Utils$1.getFunction(Utils.java:249)
>        at org.jaxen.ContextSupport.getFunction(ContextSupport.java:239)
>        at org.jaxen.Context.getFunction(Context.java:193)
>        at
> org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:168)
>        at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
>        at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
>        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
>        at org.dom4j.xpath.DefaultXPath.evaluate(DefaultXPath.java:110)
>        at
> org.orbeon.oxf.transformer.xupdate.statement.Utils.evaluate(Utils.java:293)
>        at org.orbeon.oxf.transformer.xupdate.statement.If.execute(If.java:39)
>        at
> org.orbeon.oxf.transformer.xupdate.statement.Utils.execute(Utils.java:338)
>        at
> org.orbeon.oxf.transformer.xupdate.TransformerImpl.transform(TransformerImpl.java:88)
>        at
> org.orbeon.oxf.processor.transformer.TraxTransformer$1.readImpl(TraxTransformer.java:121)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>        at
> org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProcessor.java:35)
>        at
> org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.readImpl(TeeProcessor.java:89)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:369)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:388)
>        at
> org.orbeon.oxf.processor.InstanceToParametersProcessor$1.readImpl(InstanceToParametersProcessor.java:71)
>
> Thank you.
>
> Julien
>
>
>
> Alessandro  Vernet wrote:
>>
>> Julien,
>>
>> The XUpdate code hasn't changed in ages, so I am not sure why this
>> wouldn't work. Could you quote the first 10 to 20 lines of the stack
>> trace?
>>
>> Alex
>>
>> On Wed, Mar 10, 2010 at 5:51 AM, ricetrac <[hidden email]>
>> wrote:
>>>
>>> Hello,
>>>
>>> Before, with orbeon 3.5.1, we use in the <result> element of page-flow
>>> the
>>> transform "oxf:xupdate" and we make test with <xu:if>.
>>> But with orbeon 3.7.1, we have this error when we use <xu:if> :
>>> "Cannot invoke function 'boolean', no such function"
>>>
>>> Is it normal ? or a bug ?
>>>
>>> I must use "oxf:xslt" now ?
>>>
>>> My example :
>>> <action when="/form/action = 'Valider'"
>>> action="visudemande/validationDepotPJ.xpl" >
>>>   <result when="/FluxWebService/msCodeRet = '0'"  page="commun_page4"
>>> transform="oxf:xupdate">
>>>        <xu:transformations>
>>>                <xu:update select="/form/action"/>
>>>                <xu:if test="/form/msIban != ''">
>>>                        <xu:update
>>> select="CTierReferenceBancaireVO/msEtranger"/>
>>>                </xu:if>
>>>                <xu:update select="/form/erreur"/>
>>>        </xu:transformations>
>>>    </result>
>>> </action>
>>>
>>> Thank You.
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1587421.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.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
>>>
>>>
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> View this message in context: http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1590790.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: function boolean in page-flow with transform xupdate

ricetrac
Hello,

The problem is not in an xpl file, but in the page-flow.xml file, in the <result> element like the example in my first post.

Thank you.

Julien

Alessandro Vernet wrote
Julien,

I tried to reproduce this with:

    <p:processor name="oxf:xupdate">
        <p:input name="config">
            <xu:modifications xmlns:xu="http://www.xmldb.org/xupdate">
                <xu:if test="/input != ''">
                    <xu:update select="/input">bar</xu:update>
                </xu:if>
            </xu:modifications>
        </p:input>
        <p:input name="data">
            <input>foo</input>
        </p:input>
        <p:output name="data" id="output"/>
    </p:processor>

But this runs fine (and replaces foo by bar). Would you be able to put
together an XPL file that uses the XUpdate processor, some kind of
simple and reproducible test case I could run here?

Alex

On Fri, Mar 12, 2010 at 9:58 AM, ricetrac <julien.bittard@logica.com> wrote:
>
> These are the first lines of stacktrace :
>
> 2010-03-12 17:52:43,078 ERROR ProcessorService  - Exception at line 90 of
> oxf:/apps/associations/page-flow.xml
> org.orbeon.oxf.common.ValidationException: line 90 of
> oxf:/apps/associations/page-flow.xml: Cannot invoke function 'boolean', no
> such function
> oxf:/apps/associations/page-flow.xml, line 90, column -1: Cannot invoke
> function 'boolean', no such function
>        at
> org.orbeon.oxf.transformer.xupdate.statement.Utils$1.getFunction(Utils.java:249)
>        at org.jaxen.ContextSupport.getFunction(ContextSupport.java:239)
>        at org.jaxen.Context.getFunction(Context.java:193)
>        at
> org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:168)
>        at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
>        at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
>        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
>        at org.dom4j.xpath.DefaultXPath.evaluate(DefaultXPath.java:110)
>        at
> org.orbeon.oxf.transformer.xupdate.statement.Utils.evaluate(Utils.java:293)
>        at org.orbeon.oxf.transformer.xupdate.statement.If.execute(If.java:39)
>        at
> org.orbeon.oxf.transformer.xupdate.statement.Utils.execute(Utils.java:338)
>        at
> org.orbeon.oxf.transformer.xupdate.TransformerImpl.transform(TransformerImpl.java:88)
>        at
> org.orbeon.oxf.processor.transformer.TraxTransformer$1.readImpl(TraxTransformer.java:121)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>        at
> org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProcessor.java:35)
>        at
> org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.readImpl(TeeProcessor.java:89)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>        at
> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:369)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:388)
>        at
> org.orbeon.oxf.processor.InstanceToParametersProcessor$1.readImpl(InstanceToParametersProcessor.java:71)
>
> Thank you.
>
> Julien
>
>
>
> Alessandro  Vernet wrote:
>>
>> Julien,
>>
>> The XUpdate code hasn't changed in ages, so I am not sure why this
>> wouldn't work. Could you quote the first 10 to 20 lines of the stack
>> trace?
>>
>> Alex
>>
>> On Wed, Mar 10, 2010 at 5:51 AM, ricetrac <julien.bittard@logica.com>
>> wrote:
>>>
>>> Hello,
>>>
>>> Before, with orbeon 3.5.1, we use in the <result> element of page-flow
>>> the
>>> transform "oxf:xupdate" and we make test with <xu:if>.
>>> But with orbeon 3.7.1, we have this error when we use <xu:if> :
>>> "Cannot invoke function 'boolean', no such function"
>>>
>>> Is it normal ? or a bug ?
>>>
>>> I must use "oxf:xslt" now ?
>>>
>>> My example :
>>> <action when="/form/action = 'Valider'"
>>> action="visudemande/validationDepotPJ.xpl" >
>>>   <result when="/FluxWebService/msCodeRet = '0'"  page="commun_page4"
>>> transform="oxf:xupdate">
>>>        <xu:transformations>
>>>                <xu:update select="/form/action"/>
>>>                <xu:if test="/form/msIban != ''">
>>>                        <xu:update
>>> select="CTierReferenceBancaireVO/msEtranger"/>
>>>                </xu:if>
>>>                <xu:update select="/form/erreur"/>
>>>        </xu:transformations>
>>>    </result>
>>> </action>
>>>
>>> Thank You.
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1587421.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the ops-users@ow2.org mailing
>>> list.
>>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>> For general help: mailto:sympa@ow2.org?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>>
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the ops-users@ow2.org mailing
>> list.
>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>> For general help: mailto:sympa@ow2.org?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> View this message in context: http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1590790.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>



--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: function boolean in page-flow with transform xupdate

Alessandro  Vernet
Administrator
Julien,

Then an "app" (that we can deploy in the apps directory) with a simple
page flow that reproduces the problem will do it.

Alex

On Tue, Mar 16, 2010 at 1:50 AM, ricetrac <[hidden email]> wrote:

>
> Hello,
>
> The problem is not in an xpl file, but in the page-flow.xml file, in the
> <result> element like the example in my first post.
>
> Thank you.
>
> Julien
>
>
> Alessandro  Vernet wrote:
>>
>> Julien,
>>
>> I tried to reproduce this with:
>>
>>     <p:processor name="oxf:xupdate">
>>         <p:input name="config">
>>             <xu:modifications xmlns:xu="http://www.xmldb.org/xupdate">
>>                 <xu:if test="/input != ''">
>>                     <xu:update select="/input">bar</xu:update>
>>                 </xu:if>
>>             </xu:modifications>
>>         </p:input>
>>         <p:input name="data">
>>             <input>foo</input>
>>         </p:input>
>>         <p:output name="data" id="output"/>
>>     </p:processor>
>>
>> But this runs fine (and replaces foo by bar). Would you be able to put
>> together an XPL file that uses the XUpdate processor, some kind of
>> simple and reproducible test case I could run here?
>>
>> Alex
>>
>> On Fri, Mar 12, 2010 at 9:58 AM, ricetrac <[hidden email]>
>> wrote:
>>>
>>> These are the first lines of stacktrace :
>>>
>>> 2010-03-12 17:52:43,078 ERROR ProcessorService  - Exception at line 90 of
>>> oxf:/apps/associations/page-flow.xml
>>> org.orbeon.oxf.common.ValidationException: line 90 of
>>> oxf:/apps/associations/page-flow.xml: Cannot invoke function 'boolean',
>>> no
>>> such function
>>> oxf:/apps/associations/page-flow.xml, line 90, column -1: Cannot invoke
>>> function 'boolean', no such function
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils$1.getFunction(Utils.java:249)
>>>        at org.jaxen.ContextSupport.getFunction(ContextSupport.java:239)
>>>        at org.jaxen.Context.getFunction(Context.java:193)
>>>        at
>>> org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:168)
>>>        at
>>> org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
>>>        at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
>>>        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
>>>        at org.dom4j.xpath.DefaultXPath.evaluate(DefaultXPath.java:110)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.evaluate(Utils.java:293)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.If.execute(If.java:39)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.execute(Utils.java:338)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.TransformerImpl.transform(TransformerImpl.java:88)
>>>        at
>>> org.orbeon.oxf.processor.transformer.TraxTransformer$1.readImpl(TraxTransformer.java:121)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>>>        at
>>> org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProcessor.java:35)
>>>        at
>>> org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.readImpl(TeeProcessor.java:89)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:369)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:388)
>>>        at
>>> org.orbeon.oxf.processor.InstanceToParametersProcessor$1.readImpl(InstanceToParametersProcessor.java:71)
>>>
>>> Thank you.
>>>
>>> Julien
>>>
>>>
>>>
>>> Alessandro  Vernet wrote:
>>>>
>>>> Julien,
>>>>
>>>> The XUpdate code hasn't changed in ages, so I am not sure why this
>>>> wouldn't work. Could you quote the first 10 to 20 lines of the stack
>>>> trace?
>>>>
>>>> Alex
>>>>
>>>> On Wed, Mar 10, 2010 at 5:51 AM, ricetrac <[hidden email]>
>>>> wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> Before, with orbeon 3.5.1, we use in the <result> element of page-flow
>>>>> the
>>>>> transform "oxf:xupdate" and we make test with <xu:if>.
>>>>> But with orbeon 3.7.1, we have this error when we use <xu:if> :
>>>>> "Cannot invoke function 'boolean', no such function"
>>>>>
>>>>> Is it normal ? or a bug ?
>>>>>
>>>>> I must use "oxf:xslt" now ?
>>>>>
>>>>> My example :
>>>>> <action when="/form/action = 'Valider'"
>>>>> action="visudemande/validationDepotPJ.xpl" >
>>>>>   <result when="/FluxWebService/msCodeRet = '0'"  page="commun_page4"
>>>>> transform="oxf:xupdate">
>>>>>        <xu:transformations>
>>>>>                <xu:update select="/form/action"/>
>>>>>                <xu:if test="/form/msIban != ''">
>>>>>                        <xu:update
>>>>> select="CTierReferenceBancaireVO/msEtranger"/>
>>>>>                </xu:if>
>>>>>                <xu:update select="/form/erreur"/>
>>>>>        </xu:transformations>
>>>>>    </result>
>>>>> </action>
>>>>>
>>>>> Thank You.
>>>>> --
>>>>> View this message in context:
>>>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1587421.html
>>>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>>>> Nabble.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
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>>> http://www.orbeon.com/
>>>> My Twitter: http://twitter.com/avernet
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the [hidden email]
>>>> mailing
>>>> list.
>>>> To unsubscribe: mailto:[hidden email]
>>>> For general help: mailto:[hidden email]?subject=help
>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1590790.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.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
>>>
>>>
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> View this message in context: http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1594573.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: function boolean in page-flow with transform xupdate

ricetrac
Hello,
I join to this mail an little "app" that reproduces the problem. It's a copy of xforms-wizard-pfc example.

Thank you.

Julien.
testPageflow.zip

Alessandro Vernet wrote
Julien,

Then an "app" (that we can deploy in the apps directory) with a simple
page flow that reproduces the problem will do it.

Alex

On Tue, Mar 16, 2010 at 1:50 AM, ricetrac <julien.bittard@logica.com> wrote:
>
> Hello,
>
> The problem is not in an xpl file, but in the page-flow.xml file, in the
> <result> element like the example in my first post.
>
> Thank you.
>
> Julien
>
>
> Alessandro  Vernet wrote:
>>
>> Julien,
>>
>> I tried to reproduce this with:
>>
>>     <p:processor name="oxf:xupdate">
>>         <p:input name="config">
>>             <xu:modifications xmlns:xu="http://www.xmldb.org/xupdate">
>>                 <xu:if test="/input != ''">
>>                     <xu:update select="/input">bar</xu:update>
>>                 </xu:if>
>>             </xu:modifications>
>>         </p:input>
>>         <p:input name="data">
>>             <input>foo</input>
>>         </p:input>
>>         <p:output name="data" id="output"/>
>>     </p:processor>
>>
>> But this runs fine (and replaces foo by bar). Would you be able to put
>> together an XPL file that uses the XUpdate processor, some kind of
>> simple and reproducible test case I could run here?
>>
>> Alex
>>
>> On Fri, Mar 12, 2010 at 9:58 AM, ricetrac <julien.bittard@logica.com>
>> wrote:
>>>
>>> These are the first lines of stacktrace :
>>>
>>> 2010-03-12 17:52:43,078 ERROR ProcessorService  - Exception at line 90 of
>>> oxf:/apps/associations/page-flow.xml
>>> org.orbeon.oxf.common.ValidationException: line 90 of
>>> oxf:/apps/associations/page-flow.xml: Cannot invoke function 'boolean',
>>> no
>>> such function
>>> oxf:/apps/associations/page-flow.xml, line 90, column -1: Cannot invoke
>>> function 'boolean', no such function
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils$1.getFunction(Utils.java:249)
>>>        at org.jaxen.ContextSupport.getFunction(ContextSupport.java:239)
>>>        at org.jaxen.Context.getFunction(Context.java:193)
>>>        at
>>> org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:168)
>>>        at
>>> org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
>>>        at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
>>>        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
>>>        at org.dom4j.xpath.DefaultXPath.evaluate(DefaultXPath.java:110)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.evaluate(Utils.java:293)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.If.execute(If.java:39)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.execute(Utils.java:338)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.TransformerImpl.transform(TransformerImpl.java:88)
>>>        at
>>> org.orbeon.oxf.processor.transformer.TraxTransformer$1.readImpl(TraxTransformer.java:121)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>>>        at
>>> org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProcessor.java:35)
>>>        at
>>> org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.readImpl(TeeProcessor.java:89)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:369)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:388)
>>>        at
>>> org.orbeon.oxf.processor.InstanceToParametersProcessor$1.readImpl(InstanceToParametersProcessor.java:71)
>>>
>>> Thank you.
>>>
>>> Julien
>>>
>>>
>>>
>>> Alessandro  Vernet wrote:
>>>>
>>>> Julien,
>>>>
>>>> The XUpdate code hasn't changed in ages, so I am not sure why this
>>>> wouldn't work. Could you quote the first 10 to 20 lines of the stack
>>>> trace?
>>>>
>>>> Alex
>>>>
>>>> On Wed, Mar 10, 2010 at 5:51 AM, ricetrac <julien.bittard@logica.com>
>>>> wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> Before, with orbeon 3.5.1, we use in the <result> element of page-flow
>>>>> the
>>>>> transform "oxf:xupdate" and we make test with <xu:if>.
>>>>> But with orbeon 3.7.1, we have this error when we use <xu:if> :
>>>>> "Cannot invoke function 'boolean', no such function"
>>>>>
>>>>> Is it normal ? or a bug ?
>>>>>
>>>>> I must use "oxf:xslt" now ?
>>>>>
>>>>> My example :
>>>>> <action when="/form/action = 'Valider'"
>>>>> action="visudemande/validationDepotPJ.xpl" >
>>>>>   <result when="/FluxWebService/msCodeRet = '0'"  page="commun_page4"
>>>>> transform="oxf:xupdate">
>>>>>        <xu:transformations>
>>>>>                <xu:update select="/form/action"/>
>>>>>                <xu:if test="/form/msIban != ''">
>>>>>                        <xu:update
>>>>> select="CTierReferenceBancaireVO/msEtranger"/>
>>>>>                </xu:if>
>>>>>                <xu:update select="/form/erreur"/>
>>>>>        </xu:transformations>
>>>>>    </result>
>>>>> </action>
>>>>>
>>>>> Thank You.
>>>>> --
>>>>> View this message in context:
>>>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1587421.html
>>>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>>>> Nabble.com.
>>>>>
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the ops-users@ow2.org
>>>>> mailing
>>>>> list.
>>>>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>>>> For general help: mailto:sympa@ow2.org?subject=help
>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>>> http://www.orbeon.com/
>>>> My Twitter: http://twitter.com/avernet
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the ops-users@ow2.org
>>>> mailing
>>>> list.
>>>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>>> For general help: mailto:sympa@ow2.org?subject=help
>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1590790.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the ops-users@ow2.org mailing
>>> list.
>>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>> For general help: mailto:sympa@ow2.org?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>>
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the ops-users@ow2.org mailing
>> list.
>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>> For general help: mailto:sympa@ow2.org?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> View this message in context: http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1594573.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>



--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: function boolean in page-flow with transform xupdate

ricetrac
In reply to this post by Alessandro Vernet
Hello,
I join to this mail an little "app" that reproduces the problem. It's a copy of xforms-wizard-pfc example.

Thank you.

Julien.
 testPageflow.zip

Alessandro Vernet wrote
Julien,

Then an "app" (that we can deploy in the apps directory) with a simple
page flow that reproduces the problem will do it.

Alex

On Tue, Mar 16, 2010 at 1:50 AM, ricetrac <julien.bittard@logica.com> wrote:
>
> Hello,
>
> The problem is not in an xpl file, but in the page-flow.xml file, in the
> <result> element like the example in my first post.
>
> Thank you.
>
> Julien
>
>
> Alessandro  Vernet wrote:
>>
>> Julien,
>>
>> I tried to reproduce this with:
>>
>>     <p:processor name="oxf:xupdate">
>>         <p:input name="config">
>>             <xu:modifications xmlns:xu="http://www.xmldb.org/xupdate">
>>                 <xu:if test="/input != ''">
>>                     <xu:update select="/input">bar</xu:update>
>>                 </xu:if>
>>             </xu:modifications>
>>         </p:input>
>>         <p:input name="data">
>>             <input>foo</input>
>>         </p:input>
>>         <p:output name="data" id="output"/>
>>     </p:processor>
>>
>> But this runs fine (and replaces foo by bar). Would you be able to put
>> together an XPL file that uses the XUpdate processor, some kind of
>> simple and reproducible test case I could run here?
>>
>> Alex
>>
>> On Fri, Mar 12, 2010 at 9:58 AM, ricetrac <julien.bittard@logica.com>
>> wrote:
>>>
>>> These are the first lines of stacktrace :
>>>
>>> 2010-03-12 17:52:43,078 ERROR ProcessorService  - Exception at line 90 of
>>> oxf:/apps/associations/page-flow.xml
>>> org.orbeon.oxf.common.ValidationException: line 90 of
>>> oxf:/apps/associations/page-flow.xml: Cannot invoke function 'boolean',
>>> no
>>> such function
>>> oxf:/apps/associations/page-flow.xml, line 90, column -1: Cannot invoke
>>> function 'boolean', no such function
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils$1.getFunction(Utils.java:249)
>>>        at org.jaxen.ContextSupport.getFunction(ContextSupport.java:239)
>>>        at org.jaxen.Context.getFunction(Context.java:193)
>>>        at
>>> org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:168)
>>>        at
>>> org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
>>>        at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
>>>        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
>>>        at org.dom4j.xpath.DefaultXPath.evaluate(DefaultXPath.java:110)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.evaluate(Utils.java:293)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.If.execute(If.java:39)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.execute(Utils.java:338)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.TransformerImpl.transform(TransformerImpl.java:88)
>>>        at
>>> org.orbeon.oxf.processor.transformer.TraxTransformer$1.readImpl(TraxTransformer.java:121)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>>>        at
>>> org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProcessor.java:35)
>>>        at
>>> org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.readImpl(TeeProcessor.java:89)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:369)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:388)
>>>        at
>>> org.orbeon.oxf.processor.InstanceToParametersProcessor$1.readImpl(InstanceToParametersProcessor.java:71)
>>>
>>> Thank you.
>>>
>>> Julien
>>>
>>>
>>>
>>> Alessandro  Vernet wrote:
>>>>
>>>> Julien,
>>>>
>>>> The XUpdate code hasn't changed in ages, so I am not sure why this
>>>> wouldn't work. Could you quote the first 10 to 20 lines of the stack
>>>> trace?
>>>>
>>>> Alex
>>>>
>>>> On Wed, Mar 10, 2010 at 5:51 AM, ricetrac <julien.bittard@logica.com>
>>>> wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> Before, with orbeon 3.5.1, we use in the <result> element of page-flow
>>>>> the
>>>>> transform "oxf:xupdate" and we make test with <xu:if>.
>>>>> But with orbeon 3.7.1, we have this error when we use <xu:if> :
>>>>> "Cannot invoke function 'boolean', no such function"
>>>>>
>>>>> Is it normal ? or a bug ?
>>>>>
>>>>> I must use "oxf:xslt" now ?
>>>>>
>>>>> My example :
>>>>> <action when="/form/action = 'Valider'"
>>>>> action="visudemande/validationDepotPJ.xpl" >
>>>>>   <result when="/FluxWebService/msCodeRet = '0'"  page="commun_page4"
>>>>> transform="oxf:xupdate">
>>>>>        <xu:transformations>
>>>>>                <xu:update select="/form/action"/>
>>>>>                <xu:if test="/form/msIban != ''">
>>>>>                        <xu:update
>>>>> select="CTierReferenceBancaireVO/msEtranger"/>
>>>>>                </xu:if>
>>>>>                <xu:update select="/form/erreur"/>
>>>>>        </xu:transformations>
>>>>>    </result>
>>>>> </action>
>>>>>
>>>>> Thank You.
>>>>> --
>>>>> View this message in context:
>>>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1587421.html
>>>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>>>> Nabble.com.
>>>>>
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the ops-users@ow2.org
>>>>> mailing
>>>>> list.
>>>>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>>>> For general help: mailto:sympa@ow2.org?subject=help
>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>>> http://www.orbeon.com/
>>>> My Twitter: http://twitter.com/avernet
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the ops-users@ow2.org
>>>> mailing
>>>> list.
>>>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>>> For general help: mailto:sympa@ow2.org?subject=help
>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1590790.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the ops-users@ow2.org mailing
>>> list.
>>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>> For general help: mailto:sympa@ow2.org?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>>
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the ops-users@ow2.org mailing
>> list.
>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>> For general help: mailto:sympa@ow2.org?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> View this message in context: http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1594573.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>



--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: function boolean in page-flow with transform xupdate

ricetrac
In reply to this post by Alessandro Vernet
Hello,
I join to this mail an little "app" that reproduces the problem. It's a copy of xforms-wizard-pfc example.

Thank you.

Julien.
testPageflow.zip

Alessandro Vernet wrote
Julien,

Then an "app" (that we can deploy in the apps directory) with a simple
page flow that reproduces the problem will do it.

Alex

On Tue, Mar 16, 2010 at 1:50 AM, ricetrac <julien.bittard@logica.com> wrote:
>
> Hello,
>
> The problem is not in an xpl file, but in the page-flow.xml file, in the
> <result> element like the example in my first post.
>
> Thank you.
>
> Julien
>
>
> Alessandro  Vernet wrote:
>>
>> Julien,
>>
>> I tried to reproduce this with:
>>
>>     <p:processor name="oxf:xupdate">
>>         <p:input name="config">
>>             <xu:modifications xmlns:xu="http://www.xmldb.org/xupdate">
>>                 <xu:if test="/input != ''">
>>                     <xu:update select="/input">bar</xu:update>
>>                 </xu:if>
>>             </xu:modifications>
>>         </p:input>
>>         <p:input name="data">
>>             <input>foo</input>
>>         </p:input>
>>         <p:output name="data" id="output"/>
>>     </p:processor>
>>
>> But this runs fine (and replaces foo by bar). Would you be able to put
>> together an XPL file that uses the XUpdate processor, some kind of
>> simple and reproducible test case I could run here?
>>
>> Alex
>>
>> On Fri, Mar 12, 2010 at 9:58 AM, ricetrac <julien.bittard@logica.com>
>> wrote:
>>>
>>> These are the first lines of stacktrace :
>>>
>>> 2010-03-12 17:52:43,078 ERROR ProcessorService  - Exception at line 90 of
>>> oxf:/apps/associations/page-flow.xml
>>> org.orbeon.oxf.common.ValidationException: line 90 of
>>> oxf:/apps/associations/page-flow.xml: Cannot invoke function 'boolean',
>>> no
>>> such function
>>> oxf:/apps/associations/page-flow.xml, line 90, column -1: Cannot invoke
>>> function 'boolean', no such function
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils$1.getFunction(Utils.java:249)
>>>        at org.jaxen.ContextSupport.getFunction(ContextSupport.java:239)
>>>        at org.jaxen.Context.getFunction(Context.java:193)
>>>        at
>>> org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:168)
>>>        at
>>> org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
>>>        at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
>>>        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
>>>        at org.dom4j.xpath.DefaultXPath.evaluate(DefaultXPath.java:110)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.evaluate(Utils.java:293)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.If.execute(If.java:39)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.execute(Utils.java:338)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.TransformerImpl.transform(TransformerImpl.java:88)
>>>        at
>>> org.orbeon.oxf.processor.transformer.TraxTransformer$1.readImpl(TraxTransformer.java:121)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>>>        at
>>> org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProcessor.java:35)
>>>        at
>>> org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.readImpl(TeeProcessor.java:89)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:369)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:388)
>>>        at
>>> org.orbeon.oxf.processor.InstanceToParametersProcessor$1.readImpl(InstanceToParametersProcessor.java:71)
>>>
>>> Thank you.
>>>
>>> Julien
>>>
>>>
>>>
>>> Alessandro  Vernet wrote:
>>>>
>>>> Julien,
>>>>
>>>> The XUpdate code hasn't changed in ages, so I am not sure why this
>>>> wouldn't work. Could you quote the first 10 to 20 lines of the stack
>>>> trace?
>>>>
>>>> Alex
>>>>
>>>> On Wed, Mar 10, 2010 at 5:51 AM, ricetrac <julien.bittard@logica.com>
>>>> wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> Before, with orbeon 3.5.1, we use in the <result> element of page-flow
>>>>> the
>>>>> transform "oxf:xupdate" and we make test with <xu:if>.
>>>>> But with orbeon 3.7.1, we have this error when we use <xu:if> :
>>>>> "Cannot invoke function 'boolean', no such function"
>>>>>
>>>>> Is it normal ? or a bug ?
>>>>>
>>>>> I must use "oxf:xslt" now ?
>>>>>
>>>>> My example :
>>>>> <action when="/form/action = 'Valider'"
>>>>> action="visudemande/validationDepotPJ.xpl" >
>>>>>   <result when="/FluxWebService/msCodeRet = '0'"  page="commun_page4"
>>>>> transform="oxf:xupdate">
>>>>>        <xu:transformations>
>>>>>                <xu:update select="/form/action"/>
>>>>>                <xu:if test="/form/msIban != ''">
>>>>>                        <xu:update
>>>>> select="CTierReferenceBancaireVO/msEtranger"/>
>>>>>                </xu:if>
>>>>>                <xu:update select="/form/erreur"/>
>>>>>        </xu:transformations>
>>>>>    </result>
>>>>> </action>
>>>>>
>>>>> Thank You.
>>>>> --
>>>>> View this message in context:
>>>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1587421.html
>>>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>>>> Nabble.com.
>>>>>
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the ops-users@ow2.org
>>>>> mailing
>>>>> list.
>>>>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>>>> For general help: mailto:sympa@ow2.org?subject=help
>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>>> http://www.orbeon.com/
>>>> My Twitter: http://twitter.com/avernet
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the ops-users@ow2.org
>>>> mailing
>>>> list.
>>>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>>> For general help: mailto:sympa@ow2.org?subject=help
>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1590790.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the ops-users@ow2.org mailing
>>> list.
>>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>> For general help: mailto:sympa@ow2.org?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>>
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the ops-users@ow2.org mailing
>> list.
>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>> For general help: mailto:sympa@ow2.org?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> View this message in context: http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1594573.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>



--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: function boolean in page-flow with transform xupdate

ricetrac
Hello Alessandro,

Have you could test my little app ?
Thank you.

Julien

ricetrac wrote
Hello,
I join to this mail an little "app" that reproduces the problem. It's a copy of xforms-wizard-pfc example.

Thank you.

Julien.
testPageflow.zip

Alessandro Vernet wrote
Julien,

Then an "app" (that we can deploy in the apps directory) with a simple
page flow that reproduces the problem will do it.

Alex

On Tue, Mar 16, 2010 at 1:50 AM, ricetrac <julien.bittard@logica.com> wrote:
>
> Hello,
>
> The problem is not in an xpl file, but in the page-flow.xml file, in the
> <result> element like the example in my first post.
>
> Thank you.
>
> Julien
>
>
> Alessandro  Vernet wrote:
>>
>> Julien,
>>
>> I tried to reproduce this with:
>>
>>     <p:processor name="oxf:xupdate">
>>         <p:input name="config">
>>             <xu:modifications xmlns:xu="http://www.xmldb.org/xupdate">
>>                 <xu:if test="/input != ''">
>>                     <xu:update select="/input">bar</xu:update>
>>                 </xu:if>
>>             </xu:modifications>
>>         </p:input>
>>         <p:input name="data">
>>             <input>foo</input>
>>         </p:input>
>>         <p:output name="data" id="output"/>
>>     </p:processor>
>>
>> But this runs fine (and replaces foo by bar). Would you be able to put
>> together an XPL file that uses the XUpdate processor, some kind of
>> simple and reproducible test case I could run here?
>>
>> Alex
>>
>> On Fri, Mar 12, 2010 at 9:58 AM, ricetrac <julien.bittard@logica.com>
>> wrote:
>>>
>>> These are the first lines of stacktrace :
>>>
>>> 2010-03-12 17:52:43,078 ERROR ProcessorService  - Exception at line 90 of
>>> oxf:/apps/associations/page-flow.xml
>>> org.orbeon.oxf.common.ValidationException: line 90 of
>>> oxf:/apps/associations/page-flow.xml: Cannot invoke function 'boolean',
>>> no
>>> such function
>>> oxf:/apps/associations/page-flow.xml, line 90, column -1: Cannot invoke
>>> function 'boolean', no such function
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils$1.getFunction(Utils.java:249)
>>>        at org.jaxen.ContextSupport.getFunction(ContextSupport.java:239)
>>>        at org.jaxen.Context.getFunction(Context.java:193)
>>>        at
>>> org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:168)
>>>        at
>>> org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
>>>        at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
>>>        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
>>>        at org.dom4j.xpath.DefaultXPath.evaluate(DefaultXPath.java:110)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.evaluate(Utils.java:293)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.If.execute(If.java:39)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.execute(Utils.java:338)
>>>        at
>>> org.orbeon.oxf.transformer.xupdate.TransformerImpl.transform(TransformerImpl.java:88)
>>>        at
>>> org.orbeon.oxf.processor.transformer.TraxTransformer$1.readImpl(TraxTransformer.java:121)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>>>        at
>>> org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProcessor.java:35)
>>>        at
>>> org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.readImpl(TeeProcessor.java:89)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:369)
>>>        at
>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:388)
>>>        at
>>> org.orbeon.oxf.processor.InstanceToParametersProcessor$1.readImpl(InstanceToParametersProcessor.java:71)
>>>
>>> Thank you.
>>>
>>> Julien
>>>
>>>
>>>
>>> Alessandro  Vernet wrote:
>>>>
>>>> Julien,
>>>>
>>>> The XUpdate code hasn't changed in ages, so I am not sure why this
>>>> wouldn't work. Could you quote the first 10 to 20 lines of the stack
>>>> trace?
>>>>
>>>> Alex
>>>>
>>>> On Wed, Mar 10, 2010 at 5:51 AM, ricetrac <julien.bittard@logica.com>
>>>> wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> Before, with orbeon 3.5.1, we use in the <result> element of page-flow
>>>>> the
>>>>> transform "oxf:xupdate" and we make test with <xu:if>.
>>>>> But with orbeon 3.7.1, we have this error when we use <xu:if> :
>>>>> "Cannot invoke function 'boolean', no such function"
>>>>>
>>>>> Is it normal ? or a bug ?
>>>>>
>>>>> I must use "oxf:xslt" now ?
>>>>>
>>>>> My example :
>>>>> <action when="/form/action = 'Valider'"
>>>>> action="visudemande/validationDepotPJ.xpl" >
>>>>>   <result when="/FluxWebService/msCodeRet = '0'"  page="commun_page4"
>>>>> transform="oxf:xupdate">
>>>>>        <xu:transformations>
>>>>>                <xu:update select="/form/action"/>
>>>>>                <xu:if test="/form/msIban != ''">
>>>>>                        <xu:update
>>>>> select="CTierReferenceBancaireVO/msEtranger"/>
>>>>>                </xu:if>
>>>>>                <xu:update select="/form/erreur"/>
>>>>>        </xu:transformations>
>>>>>    </result>
>>>>> </action>
>>>>>
>>>>> Thank You.
>>>>> --
>>>>> View this message in context:
>>>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1587421.html
>>>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>>>> Nabble.com.
>>>>>
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the ops-users@ow2.org
>>>>> mailing
>>>>> list.
>>>>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>>>> For general help: mailto:sympa@ow2.org?subject=help
>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>>> http://www.orbeon.com/
>>>> My Twitter: http://twitter.com/avernet
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the ops-users@ow2.org
>>>> mailing
>>>> list.
>>>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>>> For general help: mailto:sympa@ow2.org?subject=help
>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1590790.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the ops-users@ow2.org mailing
>>> list.
>>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>> For general help: mailto:sympa@ow2.org?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>>
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the ops-users@ow2.org mailing
>> list.
>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>> For general help: mailto:sympa@ow2.org?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> View this message in context: http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1594573.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>



--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?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: function boolean in page-flow with transform xupdate

Alessandro  Vernet
Administrator
In reply to this post by ricetrac
Hi Julien,

As you noticed some emails got stuck last week, creating quite a bit a
backlog; sorry for the delay! I have been able to reproduce this, but
I don't see any obvious reason why this would be happening. I created
a bug, which will have to wait until someone contributes a fix, or a
client with a support plan escalates the issue.

http://forge.ow2.org/tracker/index.php?func=detail&aid=314855&group_id=168&atid=350207

Alex

On Thu, Mar 18, 2010 at 3:13 PM, ricetrac <[hidden email]> wrote:

>
> Hello,
> I join to this mail an little "app" that reproduces the problem. It's a copy
> of xforms-wizard-pfc example.
>
> Thank you.
>
> Julien.
> http://n4.nabble.com/file/n1598706/testPageflow.zip testPageflow.zip
>
>
> Alessandro  Vernet wrote:
>>
>> Julien,
>>
>> Then an "app" (that we can deploy in the apps directory) with a simple
>> page flow that reproduces the problem will do it.
>>
>> Alex
>>
>> On Tue, Mar 16, 2010 at 1:50 AM, ricetrac <[hidden email]>
>> wrote:
>>>
>>> Hello,
>>>
>>> The problem is not in an xpl file, but in the page-flow.xml file, in the
>>> <result> element like the example in my first post.
>>>
>>> Thank you.
>>>
>>> Julien
>>>
>>>
>>> Alessandro  Vernet wrote:
>>>>
>>>> Julien,
>>>>
>>>> I tried to reproduce this with:
>>>>
>>>>     <p:processor name="oxf:xupdate">
>>>>         <p:input name="config">
>>>>             <xu:modifications xmlns:xu="http://www.xmldb.org/xupdate">
>>>>                 <xu:if test="/input != ''">
>>>>                     <xu:update select="/input">bar</xu:update>
>>>>                 </xu:if>
>>>>             </xu:modifications>
>>>>         </p:input>
>>>>         <p:input name="data">
>>>>             <input>foo</input>
>>>>         </p:input>
>>>>         <p:output name="data" id="output"/>
>>>>     </p:processor>
>>>>
>>>> But this runs fine (and replaces foo by bar). Would you be able to put
>>>> together an XPL file that uses the XUpdate processor, some kind of
>>>> simple and reproducible test case I could run here?
>>>>
>>>> Alex
>>>>
>>>> On Fri, Mar 12, 2010 at 9:58 AM, ricetrac <[hidden email]>
>>>> wrote:
>>>>>
>>>>> These are the first lines of stacktrace :
>>>>>
>>>>> 2010-03-12 17:52:43,078 ERROR ProcessorService  - Exception at line 90
>>>>> of
>>>>> oxf:/apps/associations/page-flow.xml
>>>>> org.orbeon.oxf.common.ValidationException: line 90 of
>>>>> oxf:/apps/associations/page-flow.xml: Cannot invoke function 'boolean',
>>>>> no
>>>>> such function
>>>>> oxf:/apps/associations/page-flow.xml, line 90, column -1: Cannot invoke
>>>>> function 'boolean', no such function
>>>>>        at
>>>>> org.orbeon.oxf.transformer.xupdate.statement.Utils$1.getFunction(Utils.java:249)
>>>>>        at org.jaxen.ContextSupport.getFunction(ContextSupport.java:239)
>>>>>        at org.jaxen.Context.getFunction(Context.java:193)
>>>>>        at
>>>>> org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:168)
>>>>>        at
>>>>> org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
>>>>>        at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
>>>>>        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
>>>>>        at org.dom4j.xpath.DefaultXPath.evaluate(DefaultXPath.java:110)
>>>>>        at
>>>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.evaluate(Utils.java:293)
>>>>>        at
>>>>> org.orbeon.oxf.transformer.xupdate.statement.If.execute(If.java:39)
>>>>>        at
>>>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.execute(Utils.java:338)
>>>>>        at
>>>>> org.orbeon.oxf.transformer.xupdate.TransformerImpl.transform(TransformerImpl.java:88)
>>>>>        at
>>>>> org.orbeon.oxf.processor.transformer.TraxTransformer$1.readImpl(TraxTransformer.java:121)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>>>>>        at
>>>>> org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProcessor.java:35)
>>>>>        at
>>>>> org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputImpl.readImpl(TeeProcessor.java:89)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:996)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1179)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:351)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:369)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:388)
>>>>>        at
>>>>> org.orbeon.oxf.processor.InstanceToParametersProcessor$1.readImpl(InstanceToParametersProcessor.java:71)
>>>>>
>>>>> Thank you.
>>>>>
>>>>> Julien
>>>>>
>>>>>
>>>>>
>>>>> Alessandro  Vernet wrote:
>>>>>>
>>>>>> Julien,
>>>>>>
>>>>>> The XUpdate code hasn't changed in ages, so I am not sure why this
>>>>>> wouldn't work. Could you quote the first 10 to 20 lines of the stack
>>>>>> trace?
>>>>>>
>>>>>> Alex
>>>>>>
>>>>>> On Wed, Mar 10, 2010 at 5:51 AM, ricetrac <[hidden email]>
>>>>>> wrote:
>>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> Before, with orbeon 3.5.1, we use in the <result> element of
>>>>>>> page-flow
>>>>>>> the
>>>>>>> transform "oxf:xupdate" and we make test with <xu:if>.
>>>>>>> But with orbeon 3.7.1, we have this error when we use <xu:if> :
>>>>>>> "Cannot invoke function 'boolean', no such function"
>>>>>>>
>>>>>>> Is it normal ? or a bug ?
>>>>>>>
>>>>>>> I must use "oxf:xslt" now ?
>>>>>>>
>>>>>>> My example :
>>>>>>> <action when="/form/action = 'Valider'"
>>>>>>> action="visudemande/validationDepotPJ.xpl" >
>>>>>>>   <result when="/FluxWebService/msCodeRet = '0'"  page="commun_page4"
>>>>>>> transform="oxf:xupdate">
>>>>>>>        <xu:transformations>
>>>>>>>                <xu:update select="/form/action"/>
>>>>>>>                <xu:if test="/form/msIban != ''">
>>>>>>>                        <xu:update
>>>>>>> select="CTierReferenceBancaireVO/msEtranger"/>
>>>>>>>                </xu:if>
>>>>>>>                <xu:update select="/form/erreur"/>
>>>>>>>        </xu:transformations>
>>>>>>>    </result>
>>>>>>> </action>
>>>>>>>
>>>>>>> Thank You.
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1587421.html
>>>>>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>>>>>> Nabble.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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>>>>> http://www.orbeon.com/
>>>>>> My Twitter: http://twitter.com/avernet
>>>>>>
>>>>>>
>>>>>> --
>>>>>> You receive this message as a subscriber of the [hidden email]
>>>>>> mailing
>>>>>> list.
>>>>>> To unsubscribe: mailto:[hidden email]
>>>>>> For general help: mailto:[hidden email]?subject=help
>>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1590790.html
>>>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>>>> Nabble.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
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>>> http://www.orbeon.com/
>>>> My Twitter: http://twitter.com/avernet
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the [hidden email]
>>>> mailing
>>>> list.
>>>> To unsubscribe: mailto:[hidden email]
>>>> For general help: mailto:[hidden email]?subject=help
>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1594573.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.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
>>>
>>>
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> View this message in context: http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupdate-tp1587421p1598706.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Re: Re: Re: Re: function boolean in page-flow with transform xupdate

ricetrac
Hello,

I have a new problem with a method in the page file-flow.xml: method position() in a <xu:for-each> is not recognized: "Can not invoke function 'position', no such function"

While in XPL file, there is no problem.

Does he miss a library to use XUpdate functions in the files page-flow ?

Julien.

-----Message d'origine-----
De : Alessandro Vernet [mailto:[hidden email]]
Envoyé : jeudi 25 mars 2010 05:45
À : [hidden email]
Objet : [ops-users] Re: Re: Re: Re: function boolean in page-flow with transform xupdate

Hi Julien,

As you noticed some emails got stuck last week, creating quite a bit a backlog; sorry for the delay! I have been able to reproduce this, but I don't see any obvious reason why this would be happening. I created a bug, which will have to wait until someone contributes a fix, or a client with a support plan escalates the issue.

http://forge.ow2.org/tracker/index.php?func=detail&aid=314855&group_id=168&atid=350207

Alex

On Thu, Mar 18, 2010 at 3:13 PM, ricetrac <[hidden email]> wrote:

>
> Hello,
> I join to this mail an little "app" that reproduces the problem. It's
> a copy of xforms-wizard-pfc example.
>
> Thank you.
>
> Julien.
> http://n4.nabble.com/file/n1598706/testPageflow.zip testPageflow.zip
>
>
> Alessandro  Vernet wrote:
>>
>> Julien,
>>
>> Then an "app" (that we can deploy in the apps directory) with a
>> simple page flow that reproduces the problem will do it.
>>
>> Alex
>>
>> On Tue, Mar 16, 2010 at 1:50 AM, ricetrac <[hidden email]>
>> wrote:
>>>
>>> Hello,
>>>
>>> The problem is not in an xpl file, but in the page-flow.xml file, in
>>> the <result> element like the example in my first post.
>>>
>>> Thank you.
>>>
>>> Julien
>>>
>>>
>>> Alessandro  Vernet wrote:
>>>>
>>>> Julien,
>>>>
>>>> I tried to reproduce this with:
>>>>
>>>>     <p:processor name="oxf:xupdate">
>>>>         <p:input name="config">
>>>>             <xu:modifications
>>>> xmlns:xu="http://www.xmldb.org/xupdate">
>>>>                 <xu:if test="/input != ''">
>>>>                     <xu:update select="/input">bar</xu:update>
>>>>                 </xu:if>
>>>>             </xu:modifications>
>>>>         </p:input>
>>>>         <p:input name="data">
>>>>             <input>foo</input>
>>>>         </p:input>
>>>>         <p:output name="data" id="output"/>
>>>>     </p:processor>
>>>>
>>>> But this runs fine (and replaces foo by bar). Would you be able to
>>>> put together an XPL file that uses the XUpdate processor, some kind
>>>> of simple and reproducible test case I could run here?
>>>>
>>>> Alex
>>>>
>>>> On Fri, Mar 12, 2010 at 9:58 AM, ricetrac
>>>> <[hidden email]>
>>>> wrote:
>>>>>
>>>>> These are the first lines of stacktrace :
>>>>>
>>>>> 2010-03-12 17:52:43,078 ERROR ProcessorService  - Exception at
>>>>> line 90 of oxf:/apps/associations/page-flow.xml
>>>>> org.orbeon.oxf.common.ValidationException: line 90 of
>>>>> oxf:/apps/associations/page-flow.xml: Cannot invoke function
>>>>> 'boolean', no such function oxf:/apps/associations/page-flow.xml,
>>>>> line 90, column -1: Cannot invoke function 'boolean', no such
>>>>> function
>>>>>        at
>>>>> org.orbeon.oxf.transformer.xupdate.statement.Utils$1.getFunction(U
>>>>> tils.java:249)
>>>>>        at
>>>>> org.jaxen.ContextSupport.getFunction(ContextSupport.java:239)
>>>>>        at org.jaxen.Context.getFunction(Context.java:193)
>>>>>        at
>>>>> org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCal
>>>>> lExpr.java:168)
>>>>>        at
>>>>> org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
>>>>>        at
>>>>> org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
>>>>>        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
>>>>>        at
>>>>> org.dom4j.xpath.DefaultXPath.evaluate(DefaultXPath.java:110)
>>>>>        at
>>>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.evaluate(Utils.
>>>>> java:293)
>>>>>        at
>>>>> org.orbeon.oxf.transformer.xupdate.statement.If.execute(If.java:39
>>>>> )
>>>>>        at
>>>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.execute(Utils.j
>>>>> ava:338)
>>>>>        at
>>>>> org.orbeon.oxf.transformer.xupdate.TransformerImpl.transform(Trans
>>>>> formerImpl.java:88)
>>>>>        at
>>>>> org.orbeon.oxf.processor.transformer.TraxTransformer$1.readImpl(Tr
>>>>> axTransformer.java:121)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(
>>>>> ProcessorImpl.java:996)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Pr
>>>>> ocessorImpl.java:1179)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImp
>>>>> l.java:351)
>>>>>        at
>>>>> org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProce
>>>>> ssor.java:35)
>>>>>        at
>>>>> org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputI
>>>>> mpl.readImpl(TeeProcessor.java:89)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(
>>>>> ProcessorImpl.java:996)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Pr
>>>>> ocessorImpl.java:1179)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImp
>>>>> l.java:351)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorI
>>>>> mpl.java:369)
>>>>>        at
>>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorI
>>>>> mpl.java:388)
>>>>>        at
>>>>> org.orbeon.oxf.processor.InstanceToParametersProcessor$1.readImpl(
>>>>> InstanceToParametersProcessor.java:71)
>>>>>
>>>>> Thank you.
>>>>>
>>>>> Julien
>>>>>
>>>>>
>>>>>
>>>>> Alessandro  Vernet wrote:
>>>>>>
>>>>>> Julien,
>>>>>>
>>>>>> The XUpdate code hasn't changed in ages, so I am not sure why
>>>>>> this wouldn't work. Could you quote the first 10 to 20 lines of
>>>>>> the stack trace?
>>>>>>
>>>>>> Alex
>>>>>>
>>>>>> On Wed, Mar 10, 2010 at 5:51 AM, ricetrac
>>>>>> <[hidden email]>
>>>>>> wrote:
>>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> Before, with orbeon 3.5.1, we use in the <result> element of
>>>>>>> page-flow the transform "oxf:xupdate" and we make test with
>>>>>>> <xu:if>.
>>>>>>> But with orbeon 3.7.1, we have this error when we use <xu:if> :
>>>>>>> "Cannot invoke function 'boolean', no such function"
>>>>>>>
>>>>>>> Is it normal ? or a bug ?
>>>>>>>
>>>>>>> I must use "oxf:xslt" now ?
>>>>>>>
>>>>>>> My example :
>>>>>>> <action when="/form/action = 'Valider'"
>>>>>>> action="visudemande/validationDepotPJ.xpl" >
>>>>>>>   <result when="/FluxWebService/msCodeRet = '0'"  page="commun_page4"
>>>>>>> transform="oxf:xupdate">
>>>>>>>        <xu:transformations>
>>>>>>>                <xu:update select="/form/action"/>
>>>>>>>                <xu:if test="/form/msIban != ''">
>>>>>>>                        <xu:update
>>>>>>> select="CTierReferenceBancaireVO/msEtranger"/>
>>>>>>>                </xu:if>
>>>>>>>                <xu:update select="/form/erreur"/>
>>>>>>>        </xu:transformations>
>>>>>>>    </result>
>>>>>>> </action>
>>>>>>>
>>>>>>> Thank You.
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transfor
>>>>>>> m-xupdate-tp1587421p1587421.html Sent from the Orbeon Forms
>>>>>>> (ops-users) mailing list archive at Nabble.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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>>>>> http://www.orbeon.com/ My Twitter: http://twitter.com/avernet
>>>>>>
>>>>>>
>>>>>> --
>>>>>> You receive this message as a subscriber of the [hidden email]
>>>>>> mailing list.
>>>>>> To unsubscribe: mailto:[hidden email]
>>>>>> For general help: mailto:[hidden email]?subject=help
>>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-
>>>>> xupdate-tp1587421p1590790.html Sent from the Orbeon Forms
>>>>> (ops-users) mailing list archive at Nabble.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
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>>> http://www.orbeon.com/ My Twitter: http://twitter.com/avernet
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the [hidden email]
>>>> mailing list.
>>>> To unsubscribe: mailto:[hidden email]
>>>> For general help: mailto:[hidden email]?subject=help
>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xu
>>> pdate-tp1587421p1594573.html Sent from the Orbeon Forms (ops-users)
>>> mailing list archive at Nabble.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
>>>
>>>
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/ My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email]
>> mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> View this message in context:
> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupd
> ate-tp1587421p1598706.html Sent from the Orbeon Forms (ops-users)
> mailing list archive at Nabble.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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet

Please help Logica to respect the environment by not printing this email  / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.




--
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: function boolean in page-flow with transform xupdate

Erik Bruchez
Administrator
Julien,

This is probably a bad answer, but we recommend not using XUpdate
anymore because we have not maintained the implementation, and don't
have plans to work on it in the future. You can use XSLT in the page
flow though.

-Erik

On Mon, Jun 7, 2010 at 1:26 AM, Bittard, Julien
<[hidden email]> wrote:

> Hello,
>
> I have a new problem with a method in the page file-flow.xml: method position() in a <xu:for-each> is not recognized: "Can not invoke function 'position', no such function"
>
> While in XPL file, there is no problem.
>
> Does he miss a library to use XUpdate functions in the files page-flow ?
>
> Julien.
>
> -----Message d'origine-----
> De : Alessandro Vernet [mailto:[hidden email]]
> Envoyé : jeudi 25 mars 2010 05:45
> À : [hidden email]
> Objet : [ops-users] Re: Re: Re: Re: function boolean in page-flow with transform xupdate
>
> Hi Julien,
>
> As you noticed some emails got stuck last week, creating quite a bit a backlog; sorry for the delay! I have been able to reproduce this, but I don't see any obvious reason why this would be happening. I created a bug, which will have to wait until someone contributes a fix, or a client with a support plan escalates the issue.
>
> http://forge.ow2.org/tracker/index.php?func=detail&aid=314855&group_id=168&atid=350207
>
> Alex
>
> On Thu, Mar 18, 2010 at 3:13 PM, ricetrac <[hidden email]> wrote:
>>
>> Hello,
>> I join to this mail an little "app" that reproduces the problem. It's
>> a copy of xforms-wizard-pfc example.
>>
>> Thank you.
>>
>> Julien.
>> http://n4.nabble.com/file/n1598706/testPageflow.zip testPageflow.zip
>>
>>
>> Alessandro  Vernet wrote:
>>>
>>> Julien,
>>>
>>> Then an "app" (that we can deploy in the apps directory) with a
>>> simple page flow that reproduces the problem will do it.
>>>
>>> Alex
>>>
>>> On Tue, Mar 16, 2010 at 1:50 AM, ricetrac <[hidden email]>
>>> wrote:
>>>>
>>>> Hello,
>>>>
>>>> The problem is not in an xpl file, but in the page-flow.xml file, in
>>>> the <result> element like the example in my first post.
>>>>
>>>> Thank you.
>>>>
>>>> Julien
>>>>
>>>>
>>>> Alessandro  Vernet wrote:
>>>>>
>>>>> Julien,
>>>>>
>>>>> I tried to reproduce this with:
>>>>>
>>>>>     <p:processor name="oxf:xupdate">
>>>>>         <p:input name="config">
>>>>>             <xu:modifications
>>>>> xmlns:xu="http://www.xmldb.org/xupdate">
>>>>>                 <xu:if test="/input != ''">
>>>>>                     <xu:update select="/input">bar</xu:update>
>>>>>                 </xu:if>
>>>>>             </xu:modifications>
>>>>>         </p:input>
>>>>>         <p:input name="data">
>>>>>             <input>foo</input>
>>>>>         </p:input>
>>>>>         <p:output name="data" id="output"/>
>>>>>     </p:processor>
>>>>>
>>>>> But this runs fine (and replaces foo by bar). Would you be able to
>>>>> put together an XPL file that uses the XUpdate processor, some kind
>>>>> of simple and reproducible test case I could run here?
>>>>>
>>>>> Alex
>>>>>
>>>>> On Fri, Mar 12, 2010 at 9:58 AM, ricetrac
>>>>> <[hidden email]>
>>>>> wrote:
>>>>>>
>>>>>> These are the first lines of stacktrace :
>>>>>>
>>>>>> 2010-03-12 17:52:43,078 ERROR ProcessorService  - Exception at
>>>>>> line 90 of oxf:/apps/associations/page-flow.xml
>>>>>> org.orbeon.oxf.common.ValidationException: line 90 of
>>>>>> oxf:/apps/associations/page-flow.xml: Cannot invoke function
>>>>>> 'boolean', no such function oxf:/apps/associations/page-flow.xml,
>>>>>> line 90, column -1: Cannot invoke function 'boolean', no such
>>>>>> function
>>>>>>        at
>>>>>> org.orbeon.oxf.transformer.xupdate.statement.Utils$1.getFunction(U
>>>>>> tils.java:249)
>>>>>>        at
>>>>>> org.jaxen.ContextSupport.getFunction(ContextSupport.java:239)
>>>>>>        at org.jaxen.Context.getFunction(Context.java:193)
>>>>>>        at
>>>>>> org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCal
>>>>>> lExpr.java:168)
>>>>>>        at
>>>>>> org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98)
>>>>>>        at
>>>>>> org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
>>>>>>        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
>>>>>>        at
>>>>>> org.dom4j.xpath.DefaultXPath.evaluate(DefaultXPath.java:110)
>>>>>>        at
>>>>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.evaluate(Utils.
>>>>>> java:293)
>>>>>>        at
>>>>>> org.orbeon.oxf.transformer.xupdate.statement.If.execute(If.java:39
>>>>>> )
>>>>>>        at
>>>>>> org.orbeon.oxf.transformer.xupdate.statement.Utils.execute(Utils.j
>>>>>> ava:338)
>>>>>>        at
>>>>>> org.orbeon.oxf.transformer.xupdate.TransformerImpl.transform(Trans
>>>>>> formerImpl.java:88)
>>>>>>        at
>>>>>> org.orbeon.oxf.processor.transformer.TraxTransformer$1.readImpl(Tr
>>>>>> axTransformer.java:121)
>>>>>>        at
>>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(
>>>>>> ProcessorImpl.java:996)
>>>>>>        at
>>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Pr
>>>>>> ocessorImpl.java:1179)
>>>>>>        at
>>>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImp
>>>>>> l.java:351)
>>>>>>        at
>>>>>> org.orbeon.oxf.processor.pipeline.TeeProcessor.access$200(TeeProce
>>>>>> ssor.java:35)
>>>>>>        at
>>>>>> org.orbeon.oxf.processor.pipeline.TeeProcessor$TeeProcessorOutputI
>>>>>> mpl.readImpl(TeeProcessor.java:89)
>>>>>>        at
>>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(
>>>>>> ProcessorImpl.java:996)
>>>>>>        at
>>>>>> org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Pr
>>>>>> ocessorImpl.java:1179)
>>>>>>        at
>>>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImp
>>>>>> l.java:351)
>>>>>>        at
>>>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorI
>>>>>> mpl.java:369)
>>>>>>        at
>>>>>> org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorI
>>>>>> mpl.java:388)
>>>>>>        at
>>>>>> org.orbeon.oxf.processor.InstanceToParametersProcessor$1.readImpl(
>>>>>> InstanceToParametersProcessor.java:71)
>>>>>>
>>>>>> Thank you.
>>>>>>
>>>>>> Julien
>>>>>>
>>>>>>
>>>>>>
>>>>>> Alessandro  Vernet wrote:
>>>>>>>
>>>>>>> Julien,
>>>>>>>
>>>>>>> The XUpdate code hasn't changed in ages, so I am not sure why
>>>>>>> this wouldn't work. Could you quote the first 10 to 20 lines of
>>>>>>> the stack trace?
>>>>>>>
>>>>>>> Alex
>>>>>>>
>>>>>>> On Wed, Mar 10, 2010 at 5:51 AM, ricetrac
>>>>>>> <[hidden email]>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> Before, with orbeon 3.5.1, we use in the <result> element of
>>>>>>>> page-flow the transform "oxf:xupdate" and we make test with
>>>>>>>> <xu:if>.
>>>>>>>> But with orbeon 3.7.1, we have this error when we use <xu:if> :
>>>>>>>> "Cannot invoke function 'boolean', no such function"
>>>>>>>>
>>>>>>>> Is it normal ? or a bug ?
>>>>>>>>
>>>>>>>> I must use "oxf:xslt" now ?
>>>>>>>>
>>>>>>>> My example :
>>>>>>>> <action when="/form/action = 'Valider'"
>>>>>>>> action="visudemande/validationDepotPJ.xpl" >
>>>>>>>>   <result when="/FluxWebService/msCodeRet = '0'"  page="commun_page4"
>>>>>>>> transform="oxf:xupdate">
>>>>>>>>        <xu:transformations>
>>>>>>>>                <xu:update select="/form/action"/>
>>>>>>>>                <xu:if test="/form/msIban != ''">
>>>>>>>>                        <xu:update
>>>>>>>> select="CTierReferenceBancaireVO/msEtranger"/>
>>>>>>>>                </xu:if>
>>>>>>>>                <xu:update select="/form/erreur"/>
>>>>>>>>        </xu:transformations>
>>>>>>>>    </result>
>>>>>>>> </action>
>>>>>>>>
>>>>>>>> Thank You.
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transfor
>>>>>>>> m-xupdate-tp1587421p1587421.html Sent from the Orbeon Forms
>>>>>>>> (ops-users) mailing list archive at Nabble.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
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>>>>>> http://www.orbeon.com/ My Twitter: http://twitter.com/avernet
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> You receive this message as a subscriber of the [hidden email]
>>>>>>> mailing list.
>>>>>>> To unsubscribe: mailto:[hidden email]
>>>>>>> For general help: mailto:[hidden email]?subject=help
>>>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-
>>>>>> xupdate-tp1587421p1590790.html Sent from the Orbeon Forms
>>>>>> (ops-users) mailing list archive at Nabble.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
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>>>> http://www.orbeon.com/ My Twitter: http://twitter.com/avernet
>>>>>
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the [hidden email]
>>>>> mailing list.
>>>>> To unsubscribe: mailto:[hidden email]
>>>>> For general help: mailto:[hidden email]?subject=help
>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xu
>>>> pdate-tp1587421p1594573.html Sent from the Orbeon Forms (ops-users)
>>>> mailing list archive at Nabble.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
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>> http://www.orbeon.com/ My Twitter: http://twitter.com/avernet
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the [hidden email]
>>> mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>>
>>
>> --
>> View this message in context:
>> http://n4.nabble.com/function-boolean-in-page-flow-with-transform-xupd
>> ate-tp1587421p1598706.html Sent from the Orbeon Forms (ops-users)
>> mailing list archive at Nabble.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
>>
>>
>
>
>
> --
> Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet
>
> Please help Logica to respect the environment by not printing this email  / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.
>
>
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>
>
>
> --
> 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