cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: input module question
Date Tue, 28 Jan 2003 14:41:17 GMT
Konstantin Piroumian wrote:

>From: "Nicola Ken Barozzi" <nicolaken@apache.org>
>  
>
>>Konstantin Piroumian wrote:
>>    
>>
>>>From: "Jeremy Quinn" <jeremy@media.demon.co.uk>
>>>      
>>>
>>>>    <map:parameter name="alphabet" value="{alphabet:{2}}"/>
>>>>  </map:transform>                                  ^^^      ????????
>>>>  <snip/>
>>>></map:match>
>>>>
>>>>Is this possible to do?
>>>>        
>>>>
>>>Unfortunately no. I've raised this issue on dev list, but no one had a
>>>solution to it (I hope we'd invent something for that).
>>>      
>>>
>>In xpath one uses $ for variables.
>>I would assume this could be a possible notation {alphabet:$2}
>>    
>>
>
>I had the same idea.
>Also, we could use the same notation for input modules, e.g.: $request,
>$session, $xml-file and then we could combine them in any XPath expressions
>like:
>src="$session/attribute($request/paramValue[@name='style'])"... Seems a
>little complex... just a quick idea.
>  
>

Is it a good idea to change the syntax so late in the game? Why not 
simply implement recursive {a{b}} substitution? In 2.0.4 series, this 
code lives in AbstractSitemap.java, substitute() method. I believe in 
2.1 this is in PreparedVariableResolver.java, <init> method.

Vadim


>--
>  Konstantin
>
>  
>
>>--
>>Nicola Ken Barozzi                   nicolaken@apache.org
>>             - verba volant, scripta manent -
>>    (discussions get forgotten, just code remains)
>>---------------------------------------------------------------------
>>    
>>



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


Mime
View raw message