Started writing the eXist update part, but some work is needed to decide what the queries are.