On 08.10.2008 09:25, Matthias Müller wrote:
Hey, one more question:
in your example you serialize your stream as xml. i want to be flexible with this, e.g. for xml or pdf files.
That's not a problem at all. Actually wrapping map:serialize in map:act
is pointless in this case. Just have the action somewhere in your pipeline.
Joerg
----- Ursprüngliche Mail ----
Von: Geert Josten <[EMAIL PROTECTED]>
Hi,
I typically do something like this:
<map:match pattern="download/*/**">
<map:generate src="cocoon:/{2}"/>
<map:act type="set-header">
<map:parameter name="Content-Type" value="application/x-download"/>
<map:parameter name="Content-Disposition" value="attachment ;
filename={1}"/>
<map:serialize type="xml"/>
</map:act>
</map:match>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]