Hmmm, not sure you can do that with pure AxKit. The problem is XSP and XSLT both are good at generating XML/HTML but not really good at building arbitrary non-XML output. You can try this, construct an XSLT 'identity' stylesheet which uses output mode 'text', then feed it your PDF wrapped in a tag, something like <pdf> your PDF here, most likely as a CDATA section </pdf> and in theory it should spit out just the PDF, though you may need to monkey with whitespace handling options to get it exactly right. That SHOULD do the trick. The alternative is to do what most webmail systems do, extract the attachments, save them to disk somewhere, and just serve them up as static content. Given that you really don't want to transform them anyway I'm not sure what the advantage to handling them dynamically is anyway.

Jonas Oberg wrote:

I have a database with mail in rfc822 format, most of which are
with MIME attachements. I want to create an XSP that will present
the user with those messages and allow for downloading of specific
attachements.

Getting the information from the database is not a problem, but
what do I do when the user requests a binary attachement, such
as a PDF? Is there any way to tell AxKit, "scrap this, return
this scalar to the user instead of everything else. oh, and it's
an application/x-pdf by the way"?

Or what sort of design should I be looking at?





--
Tod Harter
Principal Developer
TradeDesk Software
voice: 802 655 2777
[EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to