[xsl] PHP XSL adds Content-Type meta

Subject: [xsl] PHP XSL adds Content-Type meta
From: "Martynas Jusevicius" <martynas.jusevicius@xxxxxxxxx>
Date: Tue, 8 May 2007 10:44:04 +0200
Hi all,

I'm using PHP's XSL extension (which uses libxsl, AFAIK).
When I specify

   <xsl:output method="xml" encoding="UTF-8" indent="yes"
   doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
   doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"/>

the processor adds

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

to the output. This is not needed, because the encoding is not known
at this point and negotiated later according to the HTTP headers. For
the same reason I cannot specify it directly in the <xsl:output>.
Is it possible to turn this feature (bug?) off?

Thanks,

Martynas

Current Thread