You can either use the Request generator, or use the <param> element in the controller to set XForms instance parameters based on the URL path. For example:
<page id="album-summary" path-info="/pictures/([^/]+)/" matcher="oxf/processor/perl5-matcher" xforms="image-form.xml" model="image.xpl" view="image.xsl"> <param ref="/form/image-id"/> </page>
What the code above does is to extract a regular expression group from the URL path, and then store it in the XForms instance. This will work assuming you have an instance like this, for example:
<form> <image-id/> </form>
and a path like "/pictures/12345/".
This solution works on the URL path exclusively, so will not match request parameters (i.e. the query string).
Whatever option you choose, you should then create an Image Server configuration based on the XForms instance, for example using XSLT.
-Erik
Hank Ratzesberger wrote:
I want to use the image server by just passing url parameters.
I tried using the sample just as it is, copying the url from the source code. I am a bit confused as to how the sample pipeline works because although it passes all parameters in the url, it also has a xforms param.
I want to call the image server with just a few simple params,
do I need a request generator to parse the url params and then feed this to the image server?
Thanks for any tips, even RTFM, although I've been scouring.
--Hank
Hank Ratzesberger Institute for Crustal Studies University of California, Santa Barbara 1140 Girvetz Hall Santa Barbara, CA 93106 805-893-8042 ==============================
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
