On Wednesday, July 3, 2002, at 08:30 AM, Gerhard Froehlich wrote:
> What are the typical use cases for:
Sample from <slash-edit/>:
<map:match pattern="content-pre(*,**)">
<!-- uses pipeline as generator -->
<map:generate src="cocoon:/request-pre({1})"/>
<!-- uses pipeline as 'transformer-generator' -->
<map:transform src="cocoon:/make-validator(page)"/>
<map:transform src="editor/stylesheets/validationFilter.xsl"/>
<map:serialize type="xml"/>
</map:match>
In practice, this one is already internal, so the serialize
is redundant here too.
> (1) using a pipeline as a generator
<!-- request generator pipeline -->
<map:match pattern="request-*(*)">
<map:generate type="request"/>
<map:transform src="editor/stylesheets/request2editor.xsl">
<map:parameter name="sub" value="{2}"/>
<map:parameter name="behaviour" value="{1}"/>
</map:transform>
<map:serialize type="xml"/> <!-- redundant (!) -->
</map:match>
> (2) using a pipeline as a transformer
<!-- Transformer generator pipeline -->
<map:match pattern="make-validator(*)">
<map:generate src="editor/docs/schematron-{1}.xml"/>
<map:transform src="editor/stylesheets/schematron-validator2xsl.xsl"/>
<map:serialize type="xml"/> <!-- redundant (!) -->
</map:match>
I am not sure if this is the same thing as a "pipeline as a
transformer".
> (3) using a pipeline as a serializer
>
Dunno
regards Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]