cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: Sitmap question
Date Tue, 02 Jan 2001 19:44:32 GMT
Klaus Drechsler wrote:
> 
> Hi,
> 
> what does {1} stands for?
> 
> For example:
> 
> <map:generate src="docs/samples/sql/{1}.xml"/>

It stands for what the parent matcher has matched, ie:

  <map:match pattern="myuri/*">
    <map:generate src="docs/samples/sql/{1}.xml"/>
  </map:match>

If the requested URI is "myuri/welcome" the {1} would stand for
"welcome" and the generate will get a src attribute with a value of
"docs/samples/sql/welcome.xml"

Giacomo

Mime
View raw message