I'm missing something obvious here. Suppose book.xml contains multiple title elements. Why does: doc("book.xml")//title[1] return a sequence of all title elements and: (doc("book.xml")//title)[1] return the first title element? I would have thought both queries would return the first title element. Thanks, -- Ron