This commit is contained in:
ceb 2002-09-21 22:00:07 +00:00
parent 933f76e00d
commit 7b50d6c10c

View File

@ -1,6 +1,7 @@
<?php <?php
require_once('class.xmltool.inc.php'); require_once('class.xmltool.inc.php');
class template
class xslttemplates
{ {
var $rootdir = ''; var $rootdir = '';
var $prev_rootdir = ''; var $prev_rootdir = '';
@ -16,7 +17,7 @@
var $xmlvars = Array(); var $xmlvars = Array();
var $xmldata = ''; var $xmldata = '';
function template($root = '.') function xslttemplates($root = '.')
{ {
if(@isset($GLOBALS['phpgw_info']['flags']['printview']) && $GLOBALS['phpgw_info']['flags']['printview'] == True) if(@isset($GLOBALS['phpgw_info']['flags']['printview']) && $GLOBALS['phpgw_info']['flags']['printview'] == True)
{ {
@ -151,7 +152,7 @@
$this->xsldata .= '<!ENTITY nbsp "&#160;">'."\n"; $this->xsldata .= '<!ENTITY nbsp "&#160;">'."\n";
$this->xsldata .= ']>'."\n"; $this->xsldata .= ']>'."\n";
$this->xsldata .= '<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">'."\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="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:template match="/">'."\n"; $this->xsldata .= '<xsl:template match="/">'."\n";
$this->xsldata .= "\t".'<xsl:apply-templates select="PHPGW"/>'."\n"; $this->xsldata .= "\t".'<xsl:apply-templates select="PHPGW"/>'."\n";
$this->xsldata .= '</xsl:template>'."\n"; $this->xsldata .= '</xsl:template>'."\n";