James, > > Although in the former case the function is called once for each node > > ("somewhere" element) in the node set, and hence more naturally maps to > > method call. In the latter case, the first argument is a node set (a set > of > > "somewhere" Elements). Isn't that correct and doesn't that make a > > difference? > > Though the function could always iterate over the nodeset and execute its > functionality on each node in the set, and return a new nodeset of all the > results. Would that do?
No. There is a difference between iterating over a set and being called as a method on each object in turn. Each object may have it's own method, like the javascript function attached to each Element node, as in my case. Hallvard _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest