cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: AW: How to force a Save As prompt?
Date Wed, 08 Oct 2008 19:12:17 GMT
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 <Geert.Josten@daidalos.nl>
> 
> 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message