#23700 [NEW]: XInclude: failed build URL with #-sign in xpointer path

From: Date: Mon, 19 May 2003 14:52:32 +0000
Subject: #23700 [NEW]: XInclude: failed build URL with #-sign in xpointer path
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39972@lists.php.net to get a copy of this message
From:             anton at fedosin dot ru
Operating system: linux
PHP version:      4.3.2RC2
PHP Bug Type:     DOM XML related
Bug description:  XInclude: failed build URL with #-sign in xpointer path

I'm trying to resolve xinclude

xml:

<news xmlns:xi="http://www.w3.org/2001/XInclude">
	<xi:include
href="news.rss#xmlns(rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#)xmlns(rss=http://purl.org/rss/1.0/)xpointer(/rdf:RDF/rss:item[1])"
parse="xml"/>
</news>

php:

$xmldoc = domxml_open_file('./news.xml');
$xmldoc->xinclude();

the error is:

Warning: xinclude(): XInclude: failed build URL in
/usr/local/apache/htdocs/ACPPDEV/xmltest/art_test.phtml on line 3

I've tried to replace
xmlns(rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#)
with
xmlns(rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns%23)
the same thing.

If remove # works perfect.

-- 
Edit bug report at http://bugs.php.net/?id=23700&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23700&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23700&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23700&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23700&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23700&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23700&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23700&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23700&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23700&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23700&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23700&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23700&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23700&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23700&r=gnused



Thread (4 messages)

« previous php.bugs (#39972) next »