|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16376 Transformation does not work inside PHP
Submitted: 2002-04-01 11:26 UTC Modified: 2002-06-17 14:27 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: john at lerach dot cz Assigned:
Status: Not a bug Package: Sablotron XSL
PHP Version: 4.1.2 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: john at lerach dot cz
New email:
PHP Version: OS:


 [2002-04-01 11:26 UTC] john at lerach dot cz

I've used this sample code as well as the installation described at

  // 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

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-16 20:56 UTC] s dot li at gmx dot 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-17 09:39 UTC] john at lerach dot cz
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.

 [2002-06-02 17:48 UTC]
Please post your xsl and xml file to reproduce your problem.

Regards, Kai
 [2002-06-17 14:27 UTC]
Coding error, not XSLT error, could be related to a variety of things...
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Aug 15 19:05:44 2022 UTC