cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject Re: New expression language usage
Date Mon, 28 Jan 2008 06:46:28 GMT
Grzegorz Kossakowski wrote:
> Reinhard Poetz pisze:
>> can you help me with following (simple) pipeline:
>>
>> <map:pipeline>
>>   <map:match pattern="matching/*">
>>     <map:generate src="sax-pipeline/[???].xml"/>
>>     <map:serialize type="xml"/>
>>   </map:match>
>> </map:pipeline>
>>
>> What do I have to put instead of [???] if I want ro refer to the first
>> match of
>> the wildcard matcher?
> 
> Oh gosh, you stumbled upon COCOON-2118[1] issue. Fortunately enough, at least COCOON-2117
is
> resolved so we can find this value in ObjectModel. Using XPath it should be something
like:
> 
>   all/sitemap[position() = last()]/*[name()='1']
> 
> or:
> 
>   all/sitemap[position() = last()]/*[name()='$named$']/*[name()='1']
> 
> I don't remember if $named$ part is necessary. I must put here a BIG warning, I tested
this only
> casually so this part of EL might have bugs.
> 
> Expressions above look quite nasty so I think we'll need to get map: language done pretty
quickly.
> (I think it should be easy)
> 
> If you can't make this work, write a IT for it and I'll have a look ASAP.

I think that I will wait until COCOON-2118 will be implemented ;-)

-- 
Reinhard Pötz                            Managing Director, {Indoqa} GmbH
                           http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member, PMC Chair        reinhard@apache.org
_________________________________________________________________________

Mime
View raw message