cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Britton" <cbrit...@centervilletech.com>
Subject Re: Dynamic XML to PDF
Date Wed, 07 Mar 2001 13:02:52 GMT
Try reordering the url to

http://someserver/somepage.xml?producer=myproducer&dummy=test.pdf

it is important that the .pdf is at the end to trick IE into thinking it is
a PDF file. I believe this is because IE defaults to a file suffix for known
file application mapping before reading the mime type.

rgds
CB



----- Original Message -----
From: "Carl Mace" <mcai8cm2@ist4.co.umist.ac.uk>
To: <cocoon-users@xml.apache.org>
Sent: Wednesday, March 07, 2001 4:42 AM
Subject: Dynamic XML to PDF


> Hi
>
> When I call my producer to ouput XML which calls a PDF
> stylesheet, I get an object handler error.  It says the content is
> application/pdf which is what it should be, but acrobat isn't opened.
>
> The FAQ says that to get the browser to know it is a PDF, put
>
> http://someserver/somepage.xml?dummy=test.pdf
>
> but I am calling a producer, so I had an input box that had the value
> of test.pdf so that the URL would be
>
> http://someserver/somepage.xml?dummy=test.pdf&producer=myprod
> ucer
>
> This doesn't seem to work.  Has anyone got this to work with a
> producer.
>
> Rgrds
>
> C
>
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
>





Mime
View raw message