php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23700 XInclude: failed build URL with #-sign in xpointer path
Submitted: 2003-05-19 09:52 UTC Modified: 2003-05-20 11:51 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: anton at fedosin dot ru Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 4.3.2RC2 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: anton at fedosin dot ru
New email:
PHP Version: OS:

 

 [2003-05-19 09:52 UTC] anton at fedosin dot ru
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-19 12:14 UTC] anton at fedosin dot ru
Forgot 

DOM/XML API Version  20020815  
libxml Version  20425  
XPointer Support  enabled
 [2003-05-20 11:29 UTC] chregu@php.net
This is not a php-bug, but libxml2's concern. I'm not sure if it's really a bug, but you should ask on the libxml2 mailinglist, what's the proper solution to this.

chregu
 [2003-05-20 11:51 UTC] sniper@php.net
Not PHP issue -> bogus.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC