cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: [C2] xsp proposal
Date Thu, 01 Mar 2001 22:25:16 GMT
Martin Man wrote:
> On Mon, Feb 26, 2001 at 09:38:20PM +0100, Giacomo Pati wrote:
> > Martin Man wrote:
> >
> > <snip/>
> >
> > > action parameter names
> > > ======================
> > > also from what I know about actions from cvs, the sitemap construction
> > > {parameter_name}, where this parameter_name is hardcoded in the
> > > action's source code doesn't make the sitemap very readable (and
> > > intuitive) maybe some way on how to specify the parameter names to set
> > > directly from sitemap (I see that it's almost impossible for actions
> > > that are setting more parameters but anyway) :-))
> >
> > I haven't got the point you are telling us. Could you explain it with
> > some examples?
>
> first I'm sorry for my english :-))
>
> I wanted to tell that (as I understand the concept of actions) the
> parameters an action is propagating to the sitemap are hardcoded in a
> action's source code... and therefore it seems to me not very comprehensive
> from where the parameter is coming to the sitemap (e.g, from which action
> exactly)
>
> for example, if there is
>
> <map:match patern="xxx/*">
>
> I know that {1} matches the star in pattern attribute, but if there is
>
> <map:act type="lang_select">
>
> then parameter {lang} is being set by this action, o.k. ??
>
> what I propose is the possibility to declare the "lang" name also from the
> sitemap, not like now when it's hardcoded in a java sourcecode,
>
> <map:act type="lang_select" set="xxx">
>
> so that I can use xxx defined by me as a sitemap developer..
>
> maybe even beter to declare these parameter names in
> <map:action name=".." src="...">
>   <propagate-parameter name="lang" as="my_language"/>
> </map:action>

You can do it this way:

  <map:act type="whatever" src="younameit">
    <parameter name="propagate-lang-name" value="lang"/>
    ...
  </map:act>

and have your action lookup the parameter named "propagate-lang-name" to know 
the name wanted by the sitemap admin.

Giacomo

Mime
View raw message