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 [EMAIL PROTECTED]
_________________________________________________________________________