Torsten Curdt wrote:

On 28.01.2008, at 00:53, 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?


<snip type="complicated expressions"/>

Have my cocoon skills gone so rusty or did I just not get the question? What's wrong with the good old ways to referring to first match?

  <map:match pattern="matching/*">
    <map:generate src="sax-pipeline/{1}.xml"/>

  <map:match pattern="matching/*">
    <map:generate src="sax-pipeline/{\1}.xml"/>

  <map:match pattern="matching/*" name="root">
    <map:generate src="sax-pipeline/{#root:1}.xml"/>

Grek, what's the suggested new syntax for these three use cases?

--
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]
_________________________________________________________________________

Reply via email to