let $d:=doc("order.xml") return <h> filter ($d,$d//order[vcd|book]/text()) </h> filter function is supposed to return paths with the above criteria , it does not return __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com