cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@localbar.com>
Subject Re: C2: Pre- & Post-Transformers
Date Fri, 07 Jul 2000 04:58:55 GMT
"Timm, Sean" wrote:

> It seems like it would be useful to have pre- and post-transformers that are
> applied prior to and after all other transformers on a per-pipeline basis.
> Obviously this isn't necessary, since you could list the transformers in
> every single match you had, but it would ease the administration of common
> transformers (especially when you had to change something).  For instance,
> maybe you want XInclude to run every time for a certain pipeline prior to
> any of your other transformers (or after your other transformers...or both).
> Does anyone else see this as useful?  Maybe something like the following:

-1;
IMHO, it breaks cleanliness of the Sitemap, introduces more complexity for the
sitemap processor (must make sure there are only transformers in the
pre-pipeline for instance.)

I would instead suggest an "include" of commonly re-occurring segments.

Niclas

>
>
> <map:pipeline>
>   ...
>   <map:pre-transform>
>     <map:tranform type="xinclude"/>
>   </map:pre-transform>
>
>   <map:post-transform>
>     <map:choose>
>       <map:when test="is('Mozilla5')">
>         <map:transform src="./stylesheet/site-xul-skin.xsl"/>
>       </map:when>
>       <map:otherwise>
>         <map:transform src="./stylesheet/site-skin.xsl"/>
>       </map:otherwise>
>     </map:choose>
>   </map:post-transform>
>
> </map:pipeline>
>
> - Sean T.


Mime
View raw message