"Park, Paul" wrote:
> 
> Will the pipelines support parameters?

Yes, absolutely.

> Since, its begining to look like named xslt templates, what about something
> like
> 
>    <pipeline name="blah">
>       <param name="foo"/>
>       <generate ../>
>       <transform ../>
>       <serialize ../>
>    </pipeline>
> 
>    <call pipeline="blah">
>       <with-param name="foo" value="bar"/>
>    </call>

Yes, something like this.

Keep in mind that we already have a syntax for that, so I'll try to keep
the changes as small as possible, thus

 <pipeline name="blah">
   <generate src="{foo}"/>
   ...
 </pipeline>

 <pipeline>
   ...
   <match pattern="**">
    ...
    <call pipeline="blah">
     <parameter name="foo" value="{1}"/>
    </call>
    ...
   </match>
  </pipeline>

but I really don't care about the syntax, as long as the semantics are
consistent and understandable.

Also note: even if we change the sitemap schema in a back-incompatible
way, the sitemap namespace is versioned. So, Cocoon 2.1 will be able to
run *both* sitemap versions, just by looking at the namespace.

Moreover, I think it's possible to provide automatic translation between
the old semantics and the new one with an XSLT stylesheet.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<[EMAIL PROTECTED]>                             Friedrich Nietzsche
--------------------------------------------------------------------



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

Reply via email to