attribIndex++;
String selector = (String) attribs.get("select");
// If we found an XPath selector we need to execute the commands.
if (selector != null) {
NodeSet ns = col.queryCollection("XPath", selector, nsMap);
Document lastDoc = null;
while (ns != null && ns.hasMoreNodes()) {
DBNode node = (DBNode) ns.getNextNode();
Document doc = node.getOwnerDocument();
if (doc == lastDoc) {
continue; // We only have to process it once
} else {