X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Fcommon%2Flibrary.ml;h=91272c6f839c10bffef60ad44d47ed1334e93ec5;hb=5dcae34c6e44a40e236db641f59ddb096d1a16ec;hp=94ee60bd3f188564aebca8408f3a6139bd927a5b;hpb=ea41b1f6e212334924a8de4b2ff53b2586de9c4b;p=helm.git diff --git a/helm/software/lambda-delta/common/library.ml b/helm/software/lambda-delta/common/library.ml index 94ee60bd3..91272c6f8 100644 --- a/helm/software/lambda-delta/common/library.ml +++ b/helm/software/lambda-delta/common/library.ml @@ -25,7 +25,8 @@ let root = "ENTITY" let system = "http://helm.cs.unibo.it/lambda-delta/" ^ base ^ "/ld.dtd" -let path_of_uri uri = +let path_of_uri xdir uri = + let base = F.concat xdir base in F.concat base (Str.string_after (U.string_of_uri uri) 3) (* interface functions ******************************************************) @@ -105,8 +106,8 @@ let mark a = let f i = "mark", string_of_int i in Y.mark err f a -let export_entity pp_term si g (a, u, b) = - let path = path_of_uri u in +let export_entity pp_term si xdir (a, u, b) = + let path = path_of_uri xdir u in let _ = Sys.command (Printf.sprintf "mkdir -p %s" (F.dirname path)) in let och = open_out (path ^ obj_ext) in let out = output_string och in @@ -119,7 +120,7 @@ let export_entity pp_term si g (a, u, b) = | Y.Void -> assert false in let opts = if si then "si" else "" in - let shp = H.string_of_graph g in + let shp = H.string_of_graph () in let attrs = ["hierarchy", shp; "options", opts] in tag root attrs ~contents out 0; close_out och