[PHP-DEV] Bug #11194 Updated: Sablotron bug

2001-06-22 Thread jmoore

ID: 11194
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Sablotron XSL
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

user reported bug fixed

Previous Comments:
---

[2001-06-22 11:24:51] [EMAIL PROTECTED]
An upgrade to Sablotron 0.60 _seems_ to fix the problem. So I think it was an issue 
with Sablotron, not with PHP.

---

[2001-05-30 18:28:16] [EMAIL PROTECTED]
Sorry, this is a XSL that results in the problem, the previous one doesn't:

--==[ begin ]==--


http://www.w3.org/1999/XSL/Transform";>
















  iBBS - 
  














--==[ end ]==--



---

[2001-05-30 18:25:07] [EMAIL PROTECTED]
Here some example files that can reproduce the problem:

--==[ test.php ]==--

add_root("HTML");
$head = $root->new_child("HEAD", "");
$head->new_child("TITLE", "Here a title");

// Create a new processor handle
$th = @xslt_create() or die("Can't create XSLT handle!");

// Open the XML and XSL files
$sh = fopen($xsl_file, "r") or die("Can't open XSL file");

// Read in the XML and XSL contents
$xslContent = fread($sh, filesize($xsl_file));

// Perform the XSL transformation
xslt_process($xslContent, $doc->dumpmem(), $XSLtransformation);

// Output the transformed XML file
echo $XSLtransformation;

// Free up the resources
xslt_free($th);

?>

--==[ test.html.xsl ]==--



http://www.w3.org/1999/XSL/Transform";>
















--==[ The End ]==--

I know the xslt doesn't do anything but I stripped a very long file to the part that 
reproduces the problem :)

---

[2001-05-30 17:50:19] [EMAIL PROTECTED]
Nope, PHP 4.06RC1 does not fix the problem..

---

[2001-05-30 11:24:04] [EMAIL PROTECTED]
Does this happen with PHP 4.0.6RC1:

http://www.php.net/~andi/php-4.0.6RC1.tar.gz




---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11194&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11194 Updated: Sablotron bug

2001-06-22 Thread ruud

ID: 11194
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Sablotron XSL
Operating system: Linux
PHP Version: 4.0.5
Description: Sablotron bug

An upgrade to Sablotron 0.60 _seems_ to fix the problem. So I think it was an issue 
with Sablotron, not with PHP.

Previous Comments:
---

[2001-05-30 18:28:16] [EMAIL PROTECTED]
Sorry, this is a XSL that results in the problem, the previous one doesn't:

--==[ begin ]==--


http://www.w3.org/1999/XSL/Transform";>
















  iBBS - 
  














--==[ end ]==--



---

[2001-05-30 18:25:07] [EMAIL PROTECTED]
Here some example files that can reproduce the problem:

--==[ test.php ]==--

add_root("HTML");
$head = $root->new_child("HEAD", "");
$head->new_child("TITLE", "Here a title");

// Create a new processor handle
$th = @xslt_create() or die("Can't create XSLT handle!");

// Open the XML and XSL files
$sh = fopen($xsl_file, "r") or die("Can't open XSL file");

// Read in the XML and XSL contents
$xslContent = fread($sh, filesize($xsl_file));

// Perform the XSL transformation
xslt_process($xslContent, $doc->dumpmem(), $XSLtransformation);

// Output the transformed XML file
echo $XSLtransformation;

// Free up the resources
xslt_free($th);

?>

--==[ test.html.xsl ]==--



http://www.w3.org/1999/XSL/Transform";>
















--==[ The End ]==--

I know the xslt doesn't do anything but I stripped a very long file to the part that 
reproduces the problem :)

---

[2001-05-30 17:50:19] [EMAIL PROTECTED]
Nope, PHP 4.06RC1 does not fix the problem..

---

[2001-05-30 11:24:04] [EMAIL PROTECTED]
Does this happen with PHP 4.0.6RC1:

http://www.php.net/~andi/php-4.0.6RC1.tar.gz




---

[2001-05-30 09:08:33] [EMAIL PROTECTED]
The Sablotron PHP implementation works quite well. However if you offer Sablotron a 
buggy XSLT, that child of Apache produces an error (that's great ;). But.. in future 
instances it always produces an error as well: Error: duplicate tag name:...

I think the reason is that Sablot's buffer is not flushed when an error occurs in 
Sablot. The tag nam only exists one time in the XSL. If the buffer is not-empty, that 
would explain the above error.

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=11194


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]