Login  Register

Parameterization in for-each in pipeline

Posted by Mahender Didwania on Dec 14, 2010; 4:31pm
URL: https://discuss.orbeon.com/Parameterization-in-for-each-in-pipeline-tp3087461.html

Hi,

I have been trying to fetch a URL (basically an XML document is returned in response) and populate the document in response in an XML DB.

Things I want to be able to do using a for-each look in an XML pipeline (XPL):
1.  Fetch XML docs at different URLs (via Attribute-Value-Template feature of Orbeon or via the Variable feature in xxforms namespace or via something else (don't know what) available in Orbeon forms
2.  Populate XML docs retrieved above in an XML DB.

I am able to do it as long as I have the XML DB URL hard-coded in the action attribute of the submissions processor.  Unlike the URL generator processor, the submissions processor does support use of Attribute-Value-Template feature, so I can arrive at dynamic values for URLs to fetch.  So far, so good.  But when it is time to submit the document to an XML DB, again using submissions processor (don't know what else to use other than an xforms submission for this), the document is available on the request input (so translates to default instance) and attribute-value-template mechanism inside xforms submissions processor only works on the default instance (I could not get to work with any other input available in the pipeline).  So here I am stuck.  I want the XML DB URL to be configured in a separate config XML (which I load and make available inside the pipeline as an input), but I am not able to.  The XML document which is submitted to the XML DB does not hold that config/URL (the XML doc submitted has entirely different content).

How can I achieve using AVT inside submissions processor in an XPL, AVT evaluating XPath on inputs other than the request input of submissions processor?

Thanks,
Mahender.


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