[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.xslttemplates.inc.php,1.4,1.5
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.xslttemplates.inc.php,1.4,1.5 |
Date: |
Tue, 01 Oct 2002 20:44:24 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv16460
Modified Files:
class.xslttemplates.inc.php
Log Message:
added debugging formatting code
Index: class.xslttemplates.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.xslttemplates.inc.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** class.xslttemplates.inc.php 28 Sep 2002 15:20:19 -0000 1.4
--- class.xslttemplates.inc.php 2 Oct 2002 00:44:22 -0000 1.5
***************
*** 223,226 ****
--- 223,238 ----
}
+ function list_lineno($xml)
+ {
+ $xml = explode("\n",$xml);
+
+ echo "<pre>\n";
+ for ($n=1; isset($xml[$n]); ++$n)
+ {
+ echo "$n: ".htmlentities($xml[$n])."\n";
+ }
+ echo "</pre>\n";
+ }
+
function parse($parsexsl = True, $parsexml = True)
{
***************
*** 245,250 ****
xslt_process($this->xsldata,
$this->xmldata,$html);
}
!
! if (!$html) die($this->xsldata."\n\n XSLT processing
error: ".xslt_error($xsltproc));
xslt_free($xsltproc);
return $html;
--- 257,266 ----
xslt_process($this->xsldata,
$this->xmldata,$html);
}
! if (!$html)
! {
! echo "<p>xml-data = ";
$this->list_lineno($this->xmldata);
! echo "<p>xsl-data = ";
$this->list_lineno($this->xsldata);
! die(/*$this->xsldata.*/"\n\n XSLT processing
error: ".xslt_error($xsltproc));
! }
xslt_free($xsltproc);
return $html;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.xslttemplates.inc.php,1.4,1.5,
Bettina Gille <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: etemplate/inc class.xmltool.inc.php,1.3,1.4
- Next by Date:
[Phpgroupware-cvs] CVS: etemplate/inc class.select_widget.inc.php,NONE,1.1 class.boetemplate.inc.php,1.24,1.25 class.editor.inc.php,1.22,1.23 class.html.inc.php,1.8,1.9 class.uietemplate.inc.php,1.33,1.34
- Previous by thread:
[Phpgroupware-cvs] CVS: etemplate/inc class.xmltool.inc.php,1.3,1.4
- Next by thread:
[Phpgroupware-cvs] CVS: etemplate/inc class.select_widget.inc.php,NONE,1.1 class.boetemplate.inc.php,1.24,1.25 class.editor.inc.php,1.22,1.23 class.html.inc.php,1.8,1.9 class.uietemplate.inc.php,1.33,1.34
- Index(es):