cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <>
Subject RequestGenerator for "non-data" pipelines (was: read/write DOM Session)
Date Mon, 25 Feb 2002 13:59:47 GMT
On Monday 25 February 2002 14:26, terracare wrote:
>. . .
> Can you give a typical example of how you might use it for such a
> "non-data" pipeline?

By non-data I meant a pipeline that only uses the request parameters as 
its direct input, for example:

RequestGenerator -> CreateSQL -> SQLTransformer ->. . .

in that case, "CreateSQL" would be an XSLT transform that, based on the 
request parameters, creates suitable XML for SQLTransformer to make a 
database query.

The corresponding sitemap excerpt looks like:

<map:match pattern="sql-query/*.xml">
  <map:generate type="request"/>
  <map:transform src="request-to-sql.xsl"/>
  <map:transform type="sql">
    <map:parameter name="use-connection" value="prodDb"/>
   <map:serialize type="xml"/>

Does this help?
 -- Bertrand Delacrétaz,
 -- web technologies consultant - OO, Java, XML, C++

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message