I want to manually update a managed document without incrementing to a new version.
I noticed that updating the document referenced by the uri doesn't propagate to the document pointed to by the latest version - I need to make another update directly in the latest version.
Are there any bad consequences of this hack or something that I missed?
let $uri := "/docs/doc.xml"
let $doc := fn:doc($uri)/doc
let $_ := xdmp:node-replace($doc/element/text(), text { "changed" })
let $hist := dls:document-history($uri)
let $docFromHist := dls:document-version($uri, max(data($hist//dls:version-id)))/doc
let $_ := xdmp:node-replace($docFromHist/element/text(), text { "changed" })