xsl-list
[Top] [All Lists]

[xsl] PHP XSL adds Content-Type meta

2007-05-08 01:44:19
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>