|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2003-06-23 17:51 UTC] iliaa@php.net
  [2003-06-24 01:25 UTC] andrew at shh dot fi
  [2003-06-25 02:17 UTC] andrew at shh dot fi
  [2003-06-26 12:54 UTC] sniper@php.net
  [2003-07-14 18:27 UTC] edink@php.net
  [2003-07-20 10:40 UTC] sniper@php.net
  [2003-07-20 15:56 UTC] andrew at shh dot fi
  [2003-07-20 15:58 UTC] andrew at shh dot fi
  [2003-07-20 22:56 UTC] sniper@php.net
  [2003-07-26 18:51 UTC] iliaa@php.net
  [2004-04-01 12:42 UTC] hvila at intercom dot org dot br
  [2004-04-19 15:31 UTC] bogomil at spisanie dot com
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 12:00:01 2025 UTC | 
Description: ------------ The setup is an xml document with several external entities including xml files. Using the standard xslt functions in php the problem begins when the filesize exceed a limit (don't know what the size is unless I start couting all the includes). By choopping out a number of lines from the files the problem is OK. Its not about structure as this works OK in MsXML plus other packages like XML Spy. The problem is definately with the sablot/expat somewhere. I am not sure whether its a combination of entities and filesize or just filesize. What appears to be happening is some kind of cache that chops the end off therefore giving an error 3 which is an no element found error. Perhaps the problem is with expat? Any ideas? Reproduce code: --------------- <? $xml = "file://".getcwd()."\\index.xml"; $xsl = "file://".getcwd()."\\text.xsl"; //create the processor $my_xslt = xslt_create(); //process the file and echo the result $result = xslt_process($my_xslt,$xml,$xsl); if (!$result) { print "Error Number: ".xslt_errno($my_xslt); print xslt_error($my_xslt); } //free the processor xslt_free($my_xslt); print htmlspecialchars($result); ?> Expected result: ---------------- A load of text .... Actual result: -------------- Warning: Sablotron error on line 293: XML parser error 3: no element found in E:\projects\studybuilder\parse.php on line 12 Error Number: 2 XML parser error 3: no element found