cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timm, Sean" <ST...@mailgo.com>
Subject C2: Pre- & Post-Transformers
Date Thu, 06 Jul 2000 17:13:45 GMT
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:

<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