Bugs item #8125, was opened at 2007-01-24 17:41
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=8125&group_id=494

Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Jeremy Echols (nerdmaster)
>Assigned to: Charlie Savage (cfis)
Summary: 0.3.8.4: XPath troubles with certain attributes and namespaces

Initial Comment:
I don't know if this is a libxml thing or a libxml-ruby thing, so I apologize 
if this is the wrong place to post the bug; I'm just not sure an easy way to 
figure out where the problem lies.

On to the problem.  As reported in bug #7537, the xpath testing is very sparse. 
 Worse than that, there is a clear problem with the xpath parser.  I'm 
attaching a patch of the xpath test case (test/tc_xml_xpath.rb) that should be 
helpful in showing specifically what's going wrong.  In a nutshell: I cannot 
select elements with "ns1:" as a namespace prefix for some reason (though other 
prefixes seem okay), and nodes with an "xmlns" attribute seem to be totally 
invisible (though other attributes I've run across seem fine).

My test patch includes a case for showing that rexml does these just fine, 
which makes me believe that this is a bug in libxml-ruby and not in the xml 
itself or my usage of xpath.


----------------------------------------------------------------------

>Comment By: Charlie Savage (cfis)
Date: 2008-07-09 11:36

Message:
Thanks Jeremy,

Your tests have been incorporated into libxml and now work as expected (see 
test/tc_xml_xpath.rb).

Victor - Xpath support works correctly.

----------------------------------------------------------------------

Comment By: Vitor Rodrigues (bitor)
Date: 2007-06-13 16:16

Message:
are there any predictions for when will libxml have xpath support that works?

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=8125&group_id=494
_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to