#35550 [NEW]: SchemeHandlers in xslt does not return the complete rest in some cases

From: Date: Sun, 04 Dec 2005 21:44:38 +0000
Subject: #35550 [NEW]: SchemeHandlers in xslt does not return the complete rest in some cases
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89732@lists.php.net to get a copy of this message
From:             markus at emedia-solutions-wolf dot de
Operating system: Debian/Linux
PHP version:      4.4.1
PHP Bug Type:     XSLT related
Bug description:  SchemeHandlers in xslt does not return the complete rest in some cases

Description:
------------
I tried to use the scheme handlers from sablot but have an irritating
issue.
I'd like to create a cocoon compatible framework with php and therefore
some extensive xslt processing is required.
There could be some types of custom schemes in the xsl stylesheets like
'cocoon:/something' or 'cocoon://somethingelse'.
The first case (cocoon:/) works as expected, but the second part gives me
only '/' as rest instead of '/somethingelse' or even better
'//somethingelse'.

Reproduce code:
---------------
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:param name="site-file"
select="'cocoon://abs-menulinks'"/>
  <xsl:variable name="site" select="document($site-file)"/>
</xsl:stylesheet>


Expected result:
----------------
For my registered scheme handler I expected to get 'cocoon' as scheme
(this does work) and '//abs-menulinks' as rest.

Actual result:
--------------
The rest only contains the leading /

-- 
Edit bug report at http://bugs.php.net/?id=35550&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35550&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35550&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35550&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35550&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=35550&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35550&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35550&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35550&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35550&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35550&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=35550&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=35550&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35550&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35550&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35550&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35550&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35550&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35550&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35550&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35550&r=mysqlcfg


Thread (6 messages)

« previous php.bugs (#89732) next »