]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_annotations_cache/cicCache.ml
- Porting of all the code to the new DTD format (with, among others, explicit
[helm.git] / helm / ocaml / cic_annotations_cache / cicCache.ml
index 8bc4be6c4fcca3f77d88a9b7c97b26c325ae77bc..58a8f4197c8bb47d90374653e6ea4e810299daeb 100644 (file)
@@ -39,7 +39,13 @@ let get_annobj uri =
  let module G = Getter in
  let module U = UriManager in
   let cicfilename = G.getxml (U.cicuri_of_uri uri) in
-   let annobj = CicParser.annobj_of_xml cicfilename uri in
+  let cicbodyfilename =
+   match U.bodyuri_of_uri uri with
+      None -> None
+    | Some bodyuri ->
+       Some (G.getxml (U.cicuri_of_uri bodyuri))
+  in
+   let annobj = CicParser.annobj_of_xml cicfilename cicbodyfilename uri in
     annobj,
      if U.uri_is_annuri uri then
       begin