Date: 2004-07-09T01:06:44
Editor: DavidCrossley <[EMAIL PROTECTED]>
Wiki: Cocoon Wiki
Page: DownloadFilesToLocalDisk
URL: http://wiki.apache.org/cocoon/DownloadFilesToLocalDisk
remove junk attachment
Change Log:
------------------------------------------------------------------------------
@@ -6,18 +6,18 @@
* Using a Reader.
-{{{
-<map:pipeline>
- <map:match pattern="save/*">
- <map:act type="header">
- <map:parameter name="Cache-Control" value="Pragma:no-cache" />
- <map:parameter name="Content-Disposition" value="attachment ;
filename={1}.xml" />
- </map:act>
- <map:read type="resource" mime-type="binary/octet-stream" src="{1}.xml">
- <map:parameter name="format" value="xml"/>
- </map:read>
- </map:match>
-</map:pipeline>
+{{{
+<map:pipeline>
+ <map:match pattern="save/*">
+ <map:act type="header">
+ <map:parameter name="Cache-Control" value="Pragma:no-cache" />
+ <map:parameter name="Content-Disposition" value="attachment ;
filename={1}.xml" />
+ </map:act>
+ <map:read type="resource" mime-type="binary/octet-stream" src="{1}.xml">
+ <map:parameter name="format" value="xml"/>
+ </map:read>
+ </map:match>
+</map:pipeline>
}}}
I this pipeline, you don't have to create custom sitemap components.
@@ -37,17 +37,17 @@
* Using a Serializer and an Action
-{{{
-<map:pipeline>
- <map:match pattern="save/*">
- <map:act type="header">
- <map:parameter name="Cache-Control" value="Pragma:no-cache" />
- <map:parameter name="Content-Disposition" value="attachment ;
filename={1}.xml" />
- </map:act>
- <map:generate type="file" src="{1}.xml" />
- <map:serialize type="xml"/>
- </map:match>
-</map:pipeline>
+{{{
+<map:pipeline>
+ <map:match pattern="save/*">
+ <map:act type="header">
+ <map:parameter name="Cache-Control" value="Pragma:no-cache" />
+ <map:parameter name="Content-Disposition" value="attachment ;
filename={1}.xml" />
+ </map:act>
+ <map:generate type="file" src="{1}.xml" />
+ <map:serialize type="xml"/>
+ </map:match>
+</map:pipeline>
}}}
@@ -60,6 +60,3 @@
Lionel Crine
-[[BR]]
-[[BR]]
-'''Attachment:''' attachment:cocoon+chapter6.pdf [[BR]]