}
Vector<DatabaseElementNode> outputNodes = new Vector<DatabaseElementNode>();
for (SubTreeSelectStatement stmt : _statements) {
DatabaseElementNode node = nodeSet.get(stmt.targetPath().variableName());
QueryOutputNodeCollector nodeMarker = null;
if(stmt.label() == null)
nodeMarker = new QueryOutputNodeCollector(outputNodes);
else
try {
nodeMarker = new QueryOutputNodeCollector(outputNodes, _resultSchema.find(stmt.label()));
} catch (WikiException e) {
e.printStackTrace();
}
new RelativeXPathConsumer().consume(node, stmt.targetPath(), nodeMarker);
}