You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Toby <to...@linux.it> on 2006/06/29 00:16:52 UTC

Accessing the stack of parameters from an action

Hello


How does one access the previous layers of sitemap parameters from
inside an action?  For example in this snippet of code:

<resource name="page">
  <act src="process.xsp" type="xsp-action">
    ...

<match pattern="article-*">
  <call resource="page">
    <parameter name="type" value="article"/>
    <parameter name="id" value="{1}"/>
  </call>
</match>

How would I access "class" and "id" from inside the process.xsp action
without passing them explicitly from layer to layer of parameters?  
I'd rather avoid repeating them over and over like this:

<resource name="page">
  <act src="init.xsp" type="xsp-action">
    <parameter name="type" value="{type}"/>
    <parameter name="id" value="{id}"/>
    ...

Is it possible?  Should I be doing it in a different way?  I'm asking
because repeating things in a complex pipeline can get messy quite
easily, but I didn't find a solution on the Cocoon docs.


Toby

-- 
Signed/encrypted mail welcome.  GPG/PGP Key-Id: 0x15C5C2EA

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