fn:serialize($doc, map { "exist:add-exist-id": "all" })