As an FYI for those starting with XQuery Update, I've found this to be a short but very practical and useful guide: