> > Obviously this operation could be implemented in the host language to make it truly efficient. Don't assume that other languages are inevitably more efficient than XQuery. And don't assume that the cost of moving/converting data from one programming language to another is negligible. Michael Kay Saxonica