let initial_space,status,new_status_and_text_list_rev =
let module DTE = DisambiguateTypes.Environment in
let module UM = UriManager in
+ let baseuri = MatitaTypes.get_string_option new_status "baseuri" in
List.fold_left (
fun (initial_space,status,acc) (k,((v,_) as value)) ->
- let b =
- try
- let v = UM.strip_xpointer (UM.uri_of_string v) in
- List.mem v new_status.objects
- with UM.IllFormedUri _ -> false
+ let b =
+ try
+ UM.buri_of_uri (UM.uri_of_string v) = baseuri
+ with
+ UriManager.IllFormedUri _ -> false (* v is a description, not a URI *)
in
if b then
initial_space,status,acc