Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 89964 invoked by uid 500); 28 Mar 2002 17:47:25 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 89951 invoked from network); 28 Mar 2002 17:47:24 -0000 X-Originating-IP: [24.162.232.172] From: "Marc Johnson" To: cocoon-dev@xml.apache.org Bcc: Subject: Re: HSSFSerializer and mime-type hard-coded? Date: Thu, 28 Mar 2002 17:47:28 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Mar 2002 17:47:28.0480 (UTC) FILETIME=[A0C97600:01C1D680] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >From: Rick Tessner > >Hi all, > >I was just testing the refactored examples and noticed that the >mime-type being returned on the Hello World XLS is vnd.ms-excel. > >I would have expected it to be application/vnd.ms-excel as that is how >the mime-type is defined in the sitemap. In fact, changing the >mime-type in the sitemap to, say, application/blah-blah-blah has no >effect on the mime-type being sent back to the browser. I have no idea how the information in the sitemap would be made available to the serializer; if anyone has a clue, I'd appreciate hearing it. In any case, I'm not sure why the serializer would ever return anything besides vnd.ms-excel or application/vnd.ms-excel > >Is this actually the intended behaviour? I did notice there is a method >called getMimeType() in HSSFSerializer.java that always returns the >fixed string "vnd.ms-excel" ... Correct. When I was implementing that method, I searched the net for an appropriate mime type and that was the only one I found that was even remotely appropriate. > >-- >Rick Tessner >ricktessner@canada.com > >"There are no bad days. Only good days and great days." > >--------------------------------------------------------------------- >To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org >For additional commands, email: cocoon-dev-help@xml.apache.org > "Touch passion when it comes your way ... it's rare enough as it is. Don't walk away when it calls you by name." Marcus Cole, Babylon 5: Lines of Communication _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org