unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* About new commit "xpath methods can return things other than nodesets"
@ 2010-01-22 15:16 Iñaki Baz Castillo
  2010-01-22 16:05 ` Iñaki Baz Castillo
  0 siblings, 1 reply; 2+ messages in thread
From: Iñaki Baz Castillo @ 2010-01-22 15:16 UTC (permalink / raw)
  To: mongrel-unicorn

Hi, I'm a bit afraid about this recet commit:

  http://github.com/tenderlove/nokogiri/commit/45c6d1d4902e100fecc3741985870aa4edda9a25
  "xpath methods can return things other than nodesets"

In my case I use Nokogiri in a server application which receives Xpath strings 
from remote clients and performs such Xpath operation within a XML document 
stored in the server.

However I do a strict pre-parsing of the Xpath string so it must have the form 
of a "typical" Xpath ("ns1:root/ns2:child/ns2:somenode[@name='lala']").

The server application expects to get a NodeSet after performing the Xpath 
operation and evaluates it (empty, number of entries....) by alwasying 
inspecting the NodeSet#size method.

Should I care about this new commit? Could occur that Xpath returns something 
but a NodeSet in my case?

Thanks.


-- 
Iñaki Baz Castillo <ibc@aliax.net>
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: About new commit "xpath methods can return things other than nodesets"
  2010-01-22 15:16 About new commit "xpath methods can return things other than nodesets" Iñaki Baz Castillo
@ 2010-01-22 16:05 ` Iñaki Baz Castillo
  0 siblings, 0 replies; 2+ messages in thread
From: Iñaki Baz Castillo @ 2010-01-22 16:05 UTC (permalink / raw)
  To: mongrel-unicorn

Sorry, wrong list.

-- 
Iñaki Baz Castillo <ibc@aliax.net>
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-22 16:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-22 15:16 About new commit "xpath methods can return things other than nodesets" Iñaki Baz Castillo
2010-01-22 16:05 ` Iñaki Baz Castillo

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).