]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_notation/test_parser.ml
ocaml 3.09 transition
[helm.git] / helm / ocaml / cic_notation / test_parser.ml
index dc76884aca4d2d8d69733b6cf1f9f5c9220437eb..b3685232e8e96e3a898e6a361bc9dd940cb63601 100644 (file)
@@ -39,7 +39,9 @@ let dump_xml t id_to_uri fname =
   prerr_endline (sprintf "dumping MathML to %s ..." fname);
   flush stdout;
   let oc = open_out fname in
-  Xml.pp_to_outchan (CicNotationPres.render_to_boxml id_to_uri t) oc;
+  let markup = CicNotationPres.render id_to_uri t in
+  let xml_stream = CicNotationPres.print_xml markup in
+  Xml.pp_to_outchan xml_stream oc;
   close_out oc
 
 let extract_loc =
@@ -155,5 +157,5 @@ let _ =
   CicNotation.load_notation (Helm_registry.get "notation.core_file");
   print_endline "done.";
   flush stdout;
-  process_stream (Stream.of_channel stdin)
+  process_stream (Ulexing.from_utf8_channel stdin)