| http://www.w3.org/ns/prov#value | - I tend to name mine foreach in the interest of brevity:function foreach( xpath, cb, root ){ var nodes = $x( xpath, root ), e = 0; for( var i=0; i<nodes.length; i++ ) e += cb( nodes[i], i ) || 0; return e;} Usage is simple; here is an example I just tossed up that stops links from opening in new windows (direct install link):foreach( '//a[@target]', dont_open_new_windows );foreach( '//base[
|