cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@codeconsult.ch>
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:transform>
   <map:serialize type="xml"/>
</map:match>

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






---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message