cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Rosen" <a...@cti2.com>
Subject RE: [Proposal]: Advanced Value Substitution
Date Tue, 08 Oct 2002 10:02:55 GMT


> -----Original Message-----
> From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> Sent: Tuesday, October 08, 2002 10:36 AM
> To: Cocoon-Dev
> Subject: [Proposal]: Advanced Value Substitution
> 
> 
> Hi,
> 
> here is a simple proposal for an easier value substitution algorithm
> in the sitemap.
> 
> Currently, if you nest actions and matchers you have to aware of
> the paths to get your information:
> <match pattern="**">
>   <act type="anything">
>       <read src="{directory}/{../1}"/>
>   </act>
> </match>
>
> This can get very complicated. When I first got contact with value
> substitution more than two years ago, I thought I could write:
> <read src="{directory}/{1}"/>
>

And what happens if in the next version of AnythingAction it does use '1' as a key ?

how about:
 <match pattern="**">
   <act type="anything" name="xx" >
       <read src="{directory}/{xx:1}"/>
   </act>
 </match>
or some other simillar syntax that doesn't collide with input-modules. 


Amir 
> 

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


Mime
View raw message