#25511 [Opn->Bgs]: bad parameter in callback to xslt scheme handler

From: Date: Tue, 23 Sep 2003 09:11:31 +0000
Subject: #25511 [Opn->Bgs]: bad parameter in callback to xslt scheme handler
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47978@lists.php.net to get a copy of this message
ID: 25511 Updated by: sniper@php.net Reported By: aforeest at corp dot home dot nl -Status: Open +Status: Bogus Bug Type: XSLT related Operating System: Debian/Linux PHP Version: 4.3.3 New Comment: Apparently bug in Sablotron. Previous Comments: ------------------------------------------------------------------------ [2003-09-12 06:57:26] aforeest at corp dot home dot nl Description: ------------ I am performing an XSLT transformation using a stylesheet that does an xsl:import from an external URL. To handle the HTTP scheme I install a get_all scheme handler with the intent to retrieve the document from there. With the upgrade to Sablotron 1.0 (previously 0.97, which works fine) the handler gets called with an incorrect 'rest' parameter. It contains only the path of the URL, not the domain name. Reproduce code: --------------- function get_all_handler($processor, $scheme, $rest) { print "$scheme:$rest\n"; } $xsltProcessor = xslt_create(); xslt_set_scheme_handlers($xsltProcessor, array('get_all' => 'get_all_handler')); $args = array( '/_xml' => '<rootNode/>', '/_xsl' => '<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="http://example.com/stylesheet.xsl"/> </xsl:stylesheet>' ); xslt_process($xsltProcessor, 'arg:/_xml', 'arg:/_xsl', NULL, $args); xslt_free($xsltProcessor); Expected result: ---------------- http://example.com/stylesheet.xsl Actual result: -------------- http:/stylesheet.xsl ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25511&edit=1

« previous php.bugs (#47978) next »