cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [Announcement] sitemap variables
Date Wed, 09 Oct 2002 19:27:11 GMT
Amir Rosen wrote:
> 
>>-----Original Message-----
>>From: Torsten Curdt [mailto:tcurdt@dff.st]
>>Sent: Tuesday, October 08, 2002 7:42 PM
>>To: cocoon-dev@xml.apache.org
>>Subject: [Announcement] sitemap variables
>>
>>
>>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?
>>
> 
> I say {///1} (and sure it makes sense)
> 
> (but who cares what i say )

I do!

Expecially since you like actions and I don't. :)

If there is one thing I learned is that listening to people that agree 
you might be ego-satisfying but it gets boring. Listening to people that 
disagree with you is where the real fun is :)

(and the real chance of learning something new)

-- 
Stefano Mazzocchi                               <stefano@apache.org>
--------------------------------------------------------------------




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


Mime
View raw message