[xml] strange libxslt-python error with meta tags and html output



If i use the following xslt stylesheet with libxslt-python-1.0.19-1

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="html" indent="no" encoding="UTF-8"
omit-xml-declaration="yes"/>
<xsl:template match="faq">
<html>
<head>
<title>FAQ</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<!-- some code .... -->
</body>
</html>
</xsl:template>
</xsl:stylesheet>

it produces the following error:
xmlCharEncOutFunc: no output function !
xmlOutputBufferFlush: encoder error

now if i change the line containing the meta tag to
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
or to
<meta http-equiv="Content-Type" content="text/html; charset='UTF-8'"/>
it works very fine.

i dont really unterstand this.
Meta tags always have to be in capital letters according the html 4.0.1 dtd.
But for xhtml this was changed. Maybe this is a bug.


Greetings,
 Simon Eisenmann

--

** N E U **** N E U **** N E U **** N E U **** N E U ***

   icoya OpenContent | Das Power CMS der struktur AG
 für nur EUR 99,-. Erfahren Sie mehr unter www.icoya.de

********************************************************

Simon Eisenmann

[ mailto:simon struktur de ]

[ struktur AG | Junghansstraße 5 | 70469 Stuttgart ]
[ T. +49.711.896656.68 | F.+49.711.89665610 ]
[ http://www.struktur.de | mailto:info struktur de ]




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]