Re: Aggregate instances when performing submission
Posted by
ncrofts on
URL: https://discuss.orbeon.com/Aggregate-instances-when-performing-submission-tp3936413p3939913.html
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