Hello All, I have called xpl in trigger <xforms:trigger> <xforms:label>invitation</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:setvalue ref="instance('output')"
value="xxforms:call-xpl('http://localhost:8080/contacts/xforms-jsp/contacts/event-save.xpl','data',instance('message'),'formatted-output')/*,'xml')"
/> Im trying to call xpl in a jsp using call-xpl but it is
throwing an error XPath syntax error at char 166 in {...tted-output')/*,'xml'), 1, ...}: Thanks, Srikanth A -- 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 event-save.xpl (905 bytes) Download Attachment |
The xxforms-call xpl missing a ‘( ‘at
formatted –output when run the jsp <xforms:setvalue ref="instance('output')"
value="xxforms:call-xpl('http://localhost:8080/contacts/xforms-jsp/contacts/event-save.xpl','data',instance('message'),'(formatted-output')/*,'xml')"
/> It is displaying a error message Cannot find a matching 5-argument function named
{http://orbeon.org/oxf/xml/xforms}call-xpl() But the function has 5 arguments http://www.orbeon.com/ops/doc/reference-xforms-functions thanks, Srikanth A From: Srikanth A
[mailto: Hello All, I have called xpl in trigger <xforms:trigger> <xforms:label>invitation</xforms:label> <xforms:action ev:event="DOMActivate">
<xforms:setvalue ref="instance('output')"
value="xxforms:call-xpl('http://localhost:8080/contacts/xforms-jsp/contacts/event-save.xpl','data',instance('message'),'formatted-output')/*,'xml')"
/> Im trying to call xpl in a jsp using call-xpl but it
is throwing an error XPath syntax error at char 166 in {...tted-output')/*,'xml'), 1, ...}: Thanks, Srikanth A -- 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 |
Hi Srikanth,
> It is displaying a error message > > Cannot find a matching 5-argument function named > {http://orbeon.org/oxf/xml/xforms}call-xpl() > > But the function has 5 arguments > > http://www.orbeon.com/ops/doc/reference-xforms-functions maybe the documentation is a little bit misleading here. The fucntion as descrbed there has four arguments: 1: URL of the XPL 2: Input name(s) (string(s)) 3: Input Data (element(s)) 4: Output name(s) (string(s)) The example given in the docs: xxforms:call-xpl ('oxf:/examples/sandbox/xpath/run-xpath.xpl', ('input', 'xpath'), (instance('instance')/input, instance('instance')/xpath), 'formatted-output')/*, 'html') has in fact an additional argument 'formatted-output')/* - i think it should be xxforms:call-xpl ( 'oxf:/examples/sandbox/xpath/run-xpath.xpl', ( 'input', 'xpath' ), ( instance('instance')/input, instance('instance')/xpath ), 'html' ) HTH florian -- 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 |
Administrator
|
In reply to this post by srikanth.prodigy
I am counting but I only see 4 arguments:
$xplURL as xs:string $inputNames as xs:string* $inputElements as element()* $outputNames as xs:string+ -Erik On Apr 11, 2009, at 10:29 AM, Srikanth A wrote: > <!-- /* Font Definitions */ @font-face {font-family:Tahoma; > panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, > li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font- > size:12.0pt; font-family:"Times New Roman";} a:link, > span.MsoHyperlink {color:blue; text-decoration:underline;} > a:visited, span.MsoHyperlinkFollowed {color:purple; text- > decoration:underline;} span.EmailStyle17 {mso-style-type:personal; > font-family:Arial; color:windowtext;} span.EmailStyle18 {mso-style- > type:personal-reply; font-family:Arial; color:navy;} @page Section1 > {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 > {page:Section1;} --> > > > The xxforms-call xpl missing a ‘( ‘at formatted –output when run the > jsp > > <xforms:setvalue ref="instance('output')" value="xxforms:call-xpl('http://localhost:8080/contacts/xforms-jsp/contacts/event-save.xpl','data',instance('message'),'(formatted-output')/*,'xml') > " /> > > It is displaying a error message > > Cannot find a matching 5-argument function named {http://orbeon.org/oxf/xml/xforms > }call-xpl() > > But the function has 5 arguments > > http://www.orbeon.com/ops/doc/reference-xforms-functions > > > > thanks, > > Srikanth A > > > > From: Srikanth A [mailto:[hidden email]] > Sent: Saturday, April 11, 2009 10:37 PM > To: [hidden email] > Subject: [ops-users] Calling xpl using call xpl > > > > Hello All, > > I have called xpl in trigger > > > > <xforms:trigger> > > <xforms:label>invitation</xforms:label> > > <xforms:action ev:event="DOMActivate"> > > <xforms:setvalue ref="instance('output')" value="xxforms:call-xpl('http://localhost:8080/contacts/xforms-jsp/contacts/event-save.xpl','data',instance('message'),'formatted-output')/*,'xml') > " /> > > > > Im trying to call xpl in a jsp using call-xpl but it is throwing an > error > > > > XPath syntax error at char 166 in {...tted-output')/*,'xml'), 1, ...}: > Function string() must have no more than 1 argument > > > > Thanks, > > Srikanth A > > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |