Xquery updating function
(/bookstore selects the bookstore element, /book selects all the book elements under the bookstore element, and /title selects all the title elements under each book element) The XQuery above will extract the following: XQuery uses predicates to limit the extracted data from XML documents.
But these alternative formulations are both inconvenient for users and harder for an implementation to optimize, which suggests the these axes should be standard. An implementation is free to implement the Full Axis Feature, in which case it must implement all these extra axes.
In this example, a cts:triples call finds all triples with John_Doe in the subject position and replaces each occurrence with Jane_Roe:xquery version "1.0-ml"; import module namespace sem = " at "/Marklogic/semantics.xqy"; let $triples := cts:triples(sem:iri(" for $triple in $triples let $node := sem:database-nodes($triple) let $replace := Using the xdmp:node-replace function results in creating a new fragment and deleting the old fragment.