cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [RT] reconsidering pipeline semantics
Date Wed, 03 Jul 2002 07:59:10 GMT
"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.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message