fixed wrong encoding in class xslttpl

This commit is contained in:
ceb 2002-10-19 00:17:02 +00:00
parent a6608840b1
commit 738455541d

View File

@ -174,13 +174,13 @@
{
if(count($this->xslfiles) > 0)
{
$this->xsldata = '<?xml version="1.0"?>'."\n";
$this->xsldata = '<?xml version="1.0" encoding="' . lang('charset') . '"?>'."\n";
$this->xsldata .= '<!DOCTYPE xsl:stylesheet ['."\n";
$this->xsldata .= '<!ENTITY nl "&#10;">'."\n";
$this->xsldata .= '<!ENTITY nbsp "&#160;">'."\n";
$this->xsldata .= ']>'."\n";
$this->xsldata .= '<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">'."\n";
$this->xsldata .= '<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes" doctype-public="-//W3C/DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" standalone="yes" media-type="text/html"/>'."\n";
$this->xsldata .= '<xsl:output method="html" version="1.0" encoding="' . lang('charset') . '" indent="yes" omit-xml-declaration="yes" doctype-public="-//W3C/DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" standalone="yes" media-type="text/html"/>'."\n";
$this->xsldata .= '<xsl:template match="/">'."\n";
$this->xsldata .= "\t".'<xsl:apply-templates select="PHPGW"/>'."\n";
$this->xsldata .= '</xsl:template>'."\n";