cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <>
Subject RE: Static Params?
Date Tue, 15 Jan 2002 15:17:28 GMT
> From: Berin Loritsch []
> In the sitemap, is it possible to create a series of parameters that
> could be used globally?
> Basically, I am thinking something like this:
> <map:pipeline>
>    <map:parameter name="host-uri" value=""/>
>    <map:match uri="paper-*/*.html">
>      <map:generate src="docs/papers/{1}/{2}.html">
>        <map:parameter name="static-uri" value="{host-uri}/paper-
> {1}/{2}.html"/>
>      </map:generate>
>      <map:serialize/>
>    </map:match>
> </map:pipeline>
> Perhaps the {host-uri} might have to be like this: {../host-uri}.

Yes, perhaps. What are you asking reminds me of something there was
discussion about
That's the syntax to define sitemap variables, something like (how I
imagine this):

  <map:match uri="paper-*/*.html">
        <map:parameter name="host-uri" value=""/>

        <map:generate src="docs/papers/{../1}/{../2}.html">
          <map:parameter name="static-uri" value="{host-uri}/paper-
    </map: variables>

(I moved declaration of variables inside matcher to show that it's
possible to define map variables at any level)

Unfortunately, this thread was ended with decision to add
<map:parameter>s to <map:call>. So, there are two options now: resurrect
this thread or to choose one of the matchers/actions to do this for you.


To unsubscribe, e-mail:
For additional commands, email:

View raw message