-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 5 Jul 2002, Ken Neighbors wrote:

> However, I need the content type in the HTTP header to be set
> appropriately (application/x-qif, application/x-ofx, etc.)  Where is
> the best place to set the content type in AxKit for this purpose?

In the "media-type" attribute of the <xsl:output/> tag in the final 
stylesheet. http://www.w3.org/TR/xslt#output

> to the value of $cgi->param('style').  However, I found that
> Language::LibXSLT is overwriting the content type according to the
> $stylesheet->media_type (text/xml, text/html, or text/plain) which I
> think it gets from the xsl:output "method" attribute in the final
> stylesheet.

Use "media-type" to override the content-type implicitly set by 
<xsl:output method=""/>

Be sure to use current versions of libxslt and XML::LibXSLT because in 
older versions <xsl:output media-type=""/> was not recognized correctly.

Michael


-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQA/AwUBPSbDD3jN0CNeKmaIEQI0iACfbKKze0sn7k+At6kqCHetoPbu8MQAnR2f
LKFTUX4Wqnv2lWOcqo1z6SvS
=C4Q0
-----END PGP SIGNATURE-----


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

Reply via email to