you could just try "test/plain" for csv .... -----Original Message----- From: Baer Peter [mailto:[EMAIL PROTECTED]] Sent: 15. februar 2002 10:44 To: [EMAIL PROTECTED] Subject: XML --> CSV file download to client
Hi, I'm currently stuck with creating and sending a CSV file. (1) When a user clicks on a specific hyperlink, a CSV file should be created and sent to him. The file should not have the name of the page called. Instead of .xml the file extension must be .csv. For the moment, it is good enough to have the user right-click on the hyperlink in order to get the file downloaded instead having it displayed in their browser. But the filename is the name of the page, which is not what we want... I've read the thread "writing xml to file" and others on this list. Do I really have to change the sitemap, here? Or is there any other way to change the file name? Is changing the sitemap the only means to avoid having the content of the file enclosed in XML tags? (2) There's a MIME type for CSV (x-csv). What is the exact syntax to set this MIME type? type=text/x-csv results in an error message. Can it be that the type is not supported by Cocoon? Environment: Cocoon 1.8.2 (sorry, despite all the gentle support on the list we couldn't get C2 running with X, and we don't have the time for experiments, right now) Tomcat 3.2.4 SuSE Linux 7.3. Xfree86 4.1 Blackdown J2SDK 1.3.1-02a Thanks! -- +-------------------------------+-------------------------------------+ | >>> mailto:[EMAIL PROTECTED] <<< | +---------------------------------------------------------------------+ --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>