cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@dff.st>
Subject [Announcement] sitemap variables
Date Tue, 08 Oct 2002 17:42:18 GMT
I've added support for absolute addressing of sitemap variables.

Instead of writing:

  <map:match pattern="**.html">
      <map:act type="...">
         ...
         <map:act type="..">
              <map:generate src="{../../....../1}.xml"/>
              ...

You can now refer to the first matcher result directly

  <map:match pattern="**.html">
      <map:act type="...">
         ...
         <map:act type="..">
              <map:generate src="{/1}.xml"/>
              ...

I also wanted to add support for going down the tree of results.
but could not come up with a good syntax.

 {///1} - for 3 levels deeper
 {../../../1} - for 3 levels back

But I am not quite sure if this really makes sense... FS?

Comments?
--
Torsten


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


Mime
View raw message