Bug #16376 Updated: Transformation does not work inside PHP
| From: | john at lerach dot cz | Date: | Wed, 17 Apr 2002 13:39:56 +0000 |
| Subject: | Bug #16376 Updated: Transformation does not work inside PHP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5193@lists.php.net to get a copy of this message | ||
ID: 16376
Updated by: john@lerach.cz
Reported By: john@lerach.cz
Status: Open
Bug Type: Sablotron XSL
Operating System: Windows 2000
PHP Version: 4.1.2
New Comment:
Unfortunately it's not joke but some php vs. sablotron version
confusion.
As I wrote, "Sablotron itself works fine", which means (sorry if it's
not explicit enough), that commandline program transforms given files
well (it means xml files ARE well formed).
Xslt_process used via string parameters (not fileneme as abduced in
example) works fine, so I don't handle this problem any more.
Thanx.
Previous Comments:
------------------------------------------------------------------------
[2002-04-16 20:56:08] s.li@gmx.de
This is not a bug description, it's an April's fool joke :) Have you
checked whether your xml file is well-formed?
------------------------------------------------------------------------
[2002-04-01 11:26:25] john@lerach.cz
Hello,
I've used this sample code as well as the installation described at
http://shanx.com/php/xsl/getXsl.htm.
<?php
// Create an XSLT processor
$xsltHandle = xslt_create();
// Perform the transformation
$out = xslt_process($xsltHandle, getcwd().'test.xml',
getcwd().'test.xsl');
// Detect errors
if(!$out) die(xslt_error($xsltHandle));
// Destroy the XSLT processor
xslt_free($xsltHandle);
?>
The result is that Sablotron itself works fine but this code produces
following error "XML parser error 4: not well-formed (invalid token)".
Thank you.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16376&edit=1