ID:               24296
 Updated by:       [EMAIL PROTECTED]
 Reported By:      andrew at shh dot fi
-Status:           Open
+Status:           Feedback
 Bug Type:         XSLT related
 Operating System: win32 and linux
 PHP Version:      4.3.2
 New Comment:

Could you at least aproximate the size of the xml file at which the
problems begins to occur?


Previous Comments:
------------------------------------------------------------------------

[2003-06-23 06:43:02] andrew at shh dot fi

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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24296&edit=1

Reply via email to