As an FYI for those starting with XQuery Update, I've found this to be a short but very practical and useful guide:
http://www.xmlmind.com/_tutorials/XQueryUpdate/index.html
I've successfully used BaseX to apply large numbers of updates to a database containing roughly 200,000 pages-equivalent of text.