Konstantin Piroumian wrote:

From: "Nicola Ken Barozzi" <[EMAIL PROTECTED]>

Konstantin Piroumian wrote:

From: "Jeremy Quinn" <[EMAIL PROTECTED]>

<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 [EMAIL PROTECTED]
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to