cts:similar-query-nodes( $query as cts:similar-query ) as node()*
Returns the nodes used to construct the specified query.
let $query := cts:similar-query(fn:doc("/mydoc.xml")) return cts:similar-query-nodes($query)