cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Melhem <micha...@apache.org>
Subject [Flow] sendPage* params and jpath input modules?
Date Mon, 24 Mar 2003 14:58:21 GMT
Hi lads,

Is there a best practice for making flow values available at
the sitemap level (instead of being directly sent to
sitemap components)?

AFAIK, there are at least two ways of doing this at the moment.

1. Embed information within the URL:

sendPage*(calculated_value+"/hello-world",{})

  match pattern="(.*)/hello-world"
  generate...
  transform src="client/stylesheet-{1}.xsl


2.Use of cgi variables:

sendPage*("hello-world?value="+calculated_value,{})

  match pattern="hello-world"
  generate...
  transform src="client/stylesheet-{{request-param:value}}.xsl

However the above two solutions seem more like hacks. A more
appropriate solution might the introduction of "jpath input module"
as follows:

sendPage*("hello-world",{"value" : calculated_value})

  match pattern="hello-world"
  generate...
  transform src="client/stylesheet-{{jpath:value}}.xsl

So im thinking of implementing a jpath input module to facilitate the
3rd option.

Cheers,
Michael


Mime
View raw message