cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Hoskens" ...@schaubroeck.be>
Subject Re: [map:aggregate] passing sitemap parameter
Date Wed, 21 Jan 2004 10:10:31 GMT
Hmm, that wasn't to smart of me, I was treating the <map:part> more or less like a generator/transformer,
but it only calls the pipeline. 
Thanks for reminding me, David!

Greetings,

Jan

  ----- Original Message ----- 
  From: Carmona Perez, David 
  To: users@cocoon.apache.org 
  Sent: Wednesday, January 21, 2004 10:54 AM
  Subject: RE: [map:aggregate] passing sitemap parameter


  You must set a parameter to a value, thorugh an action or a matcher.

  In this case, who sets the 'test' parameter?

   


  --------

  David

   

  -----Mensaje original-----
  De: Jan Hoskens [mailto:jh@schaubroeck.be]
  Enviado el: miƩrcoles, 21 de enero de 2004 10:48
  Para: users@cocoon.apache.org
  Asunto: [map:aggregate] passing sitemap parameter

   

  Hi,

   

  I tried to pass a parameter within my aggregation:

   

  ...

  <map:aggregate element="Document">
      <map:part src="cocoon:/index" strip-root="true">
       <map:parameter name="test" value="testval"/>
      </map:part>
  </map:aggregate>

  ...

   

  <map:match pattern="index">
      <map:generate type="serverpages" src="pages/index.xsp">
       <map:parameter name="test" value="{test}"/>
      </map:generate>
      <map:serialize type="xml"/>
  </map:match>

   

  When I show the parameter test, it always is empty. I looked at the logs, but when the part
is called, I don't see where the parameter gets passed:

   

  sitemap.log:

  Current Sitemap Parameters:
  LEVEL 1
  PARAM: '0' VALUE: 'index'

   

  that's all!

   

  Why can't I pass parameters to a part? Or am I doing something wrong?

   

  setup: cocoon cvs head 2.1, updated yesterday

   

   

  Greetings,

   

  Jan

Mime
View raw message