Well to set the content-type to text/html I've had to add

<xsl:output media-type="text/html"/>

to my style sheet.


Apache::AxKit::Language::LibXSLT does this:

my $encoding = $stylesheet->output_encoding;
my $type = $stylesheet->media_type;
AxKit::Debug(7, "[LibXSLT] content-type $type");
$r->content_type("$type; charset=$encoding");

and the man page for XML::LibXSLT says

media_type

Returns the output media_type of the results. Defaults to "text/html".

so I don't know why I have to set this explicitly.

Dave.

--
Dr. David Holden.
Please avoid sending me Word or PowerPoint attachments, thanks.
See: <http://www.gnu.org/philosophy/no-word-attachments.html>
Public GPG key available on request.
-------------------------------------------------------------

Reply via email to