This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
If I'm not mistaken, there are no test cases which use fn:put in combination with a transform expression. e.g. copy $doc := doc('update.xml') modify (insert node <node /> into $doc/nodes, fn:put($doc, "update.xml")) return (count($doc/nodes/node), count(doc('update.xml')/nodes/node))