Re: Re: Aggregate instances when performing submission

Posted by Erik Bruchez on
URL: https://discuss.orbeon.com/Aggregate-instances-when-performing-submission-tp3936413p3946231.html

Neil,

In my example I only pass 2 arguments: the second one is a sequence,
between `()`. So try:

xxforms:element('result', ($form, $data))

-Erik

On Wed, Oct 26, 2011 at 2:12 AM, ncrofts <[hidden email]> wrote:

> Hi Erik,
>
> Thanks for this suggestion. This seems to be along the right lines, but
> unfortunately the xxforms:element() function throws an exception when passed
> more than two arguments e.g.
>
> 2011-10-26 09:51:58,970 ERROR XFormsServer  - xforms-submit-error - setting
> throwable {throwable: "org.orbeon.saxon.trans.XPathException: XPath syntax
> error at char 39 in {...lement('result', $form, $data}:
>    Cannot find a matching 3-argument function named
> {http://orbeon.org/oxf/xml/xforms}element()
>        at
> org.orbeon.saxon.expr.ExpressionParser.grumble(ExpressionParser.java:149)
>        at
> org.orbeon.saxon.expr.ExpressionParser.parseFunctionCall(ExpressionParser.java:1852)
>
> It is tantalisingly close to being a solution though, as when you just pass
> in two arguments it does behave as you would expect e.g. passes an instance
> to the pipeline comprising a root element name and a child element.
>
> Am I missing a technique to make the xxforms:element function accept a third
> argument to create a composite element? Or is this a feature that you think
> could be added to Orbeon Forms relatively easily?
>
>
>
> Regards,
> Neil
>
>
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Aggregate-instances-when-performing-submission-tp3936413p3939913.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
>
>


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