calling XPL using xxforms:call-xpl

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

calling XPL using xxforms:call-xpl

srikanth.prodigy

Hello All,

 

 

1) I am trying to display values using xpl. When execute the xpl file from command prompt it displays an instance

<event>

<name>

test  

</test>

When I try to call the same xpl file from xform using xxforms:call-xpl method for displaying name. It displays nothing

And I'm trying to bind the xpl output dynamically to event instance in xform

 

<xforms:bind nodeset="event" caluclate="xxforms:call-xpl('oxf:/apps/upcomingevents/view-event-expanded.xpl',data, instance('events-instance'),'formatted-output')/*, 'html'">

 

When I view a xpl in browser it displayed XPL view must have a 'data' output error

 

 2) Can we write xpath in call-xpl() method in which argument of call-xpl () method we can write xpath?

 

Please find the attachment with this mail

 

Thanks,

Srikanth    

 



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

upcomingevents.xhtml (4K) Download Attachment
view-event-expanded.xpl (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: calling XPL using xxforms:call-xpl

fl.schmitt(ops-users)
Srikanth,

> When I view a xpl in browser it displayed
> XPL view must have a 'data' output error

the error message tells you what's the problem: a xpl view must have a
data output. So you have two possibilities:

- keep the xpl _as view_ and use a data output to return the xpl result
instance; to do this, you should drop the xml serializer (the last
processor in your pipeline), add a p:param type="output" name="data" and
connect the xquery processor to that output (using ref="data").

or

- change the corresponding page-flow entry from view="your-xpl.xpl" to
model="your-xpl.xpl"; then you can let the xpl content as it is.

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