When I tried to reproduce your problem, I did not get the same error. Instead, I would get "NOT_FOUND_ERR: DOM Exception 8". In my case, this was not a problem with the selector at all; it was that the return value of t.query was an array. If I wanted to use this, say, in notify() , I had to infer the 0th element from the array and return it instead.
I do not know if you have the same problem. But here is a sample rule that works for me:
ruleset a163x61 { meta { name "Selector test" description << Testing the query() function >> author "Steve Nay" logging on } dispatch { } global { the_url = "http://students.cs.byu.edu/~snay2/content.html"; recent = function() { t = http:get(the_url).pick("$..content");
source share