Adding facet search to XQuery