Great, thanks! I should have looked further down the list of pre-
defined attributes rather than stopping at the first occurrence of
"MIME"!

J

On Jan 28, 6:25 pm, Chuck <[email protected]> wrote:
> Jonathan,
>
> You should be using the "rdeResponseMimetype" pre-defined "request"
> attribute.  I've confirmed in my DS 10.0 env. that the following
> accomplishes what you want:
>
> <rde-dm:attribute mode="write" attribute="request:rdeResponseMimetype"
> value="text/csv" tag="notag" />
>
> Using Firefox's developer toolbar, I see the following response
> headers - notice that "Content-Type" is "text/csv":
>
> Server: Apache-Coyote/1.1
> Date: Thu, 28 Jan 2010 17:42:48 GMT
> Expires: Thu, 28 Jan 2010 17:42:48 GMT
> lsrequestid: 493
> Cache-Control: no-cache
> Pragma: no-cache
> Content-Type: text/csv;charset=ISO-8859-1
> Transfer-Encoding: chunked
>
> 200 OK
>
> Enjoy!
>
> -C
>
> On Jan 28, 10:34 am, Jonathan W <[email protected]> wrote:
>
> > Our next attempt has been to specify the MIME type in the XSL
> > transformation:
>
> > <xsl:output method="text" media-type="text/csv" ... />
>
> > However when viewing the page in Firefox, the MIME type is still text/
> > html, so that doesn't appear to be working.
>
> > We're using the default WebLet, xchg.
>
> > Any more ideas?
>
> > Jonathan
>
> > On Jan 27, 4:17 pm, Jonathan W <[email protected]> wrote:
>
> > > Does anyone know how to change the MIME-type of a page in LiveServer.
> > > I want to present a Comma Separated Value page with MIME type text/
> > > csv. I've tried:
>
> > > <rde-dm:attribute mode="write" attribute="request:rde-rd:content-type"
> > > value="text/csv" tag="notag"/>
>
> > > but it had no effect; indeed "request:rde-rd:content-type" doesn't
> > > have any value normally.
>
> > > Thanks,
>
> > > Jonathan

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to