phpgroupware-cvs
[Top][All Lists]
Advanced

[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;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]