cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <sharkb...@mac.com>
Subject Re: [RT] reconsidering pipeline semantics
Date Wed, 03 Jul 2002 10:59:12 GMT

On Wednesday, July 3, 2002, at 10:16 AM, Jeremy Quinn wrote:

>
> On Wednesday, July 3, 2002, at 08:30 AM, Gerhard Froehlich wrote:
>
>> What are the typical use cases for:
>


<snip/>


>> (3) using a pipeline as a serializer
>>
>
> 	Dunno
>


OK, I'll try again ;)



	<map:pipeline name="serialization">

		<map:match pattern="serialize(*,pdf)">
			<map:transform src="flatten-{1}.xsl"/>
			<map:transform src="{1}-to-xslfo"/>
			<map:serialize type="xslfo">
		</map:match>

		<map:match pattern="serialize(*,html)">
			<map:transform src="{1}-to-html"/>
			<map:serialize type="xhtml">
		</map:match>

		<map:match pattern="serialize(*,jpg)">
			<map:transform src="{1}-to-svg"/>
			<map:serialize type="svg-jpeg">
		</map:match>

	</map:pipeline>


	<map:pipeline>

		<map:match pattern="*/*.*">
			<map:generate src="docs/{1}/{2}.xml"/>
			<!-- more stuff -->
			<map:call pipeline="serialization:serialize({1},{3})">
		</map:match>

	</map:pipeline>


regards Jeremy


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


Mime
View raw message