let rex = Pcre.regexp "\\s*$" in
fun s -> Pcre.replace ~rex s
-let empty_mathml =
- let doc =
- Misc.domImpl#createDocument ~namespaceURI:(Some Misc.mathml_ns)
- ~qualifiedName:(Gdome.domString "math") ~doctype:None
- in
- doc#get_documentElement
+let empty_mathml () =
+ Misc.domImpl#createDocument ~namespaceURI:(Some Misc.mathml_ns)
+ ~qualifiedName:(Gdome.domString "math") ~doctype:None
+
+let empty_boxml () =
+ Misc.domImpl#createDocument ~namespaceURI:(Some Misc.boxml_ns)
+ ~qualifiedName:(Gdome.domString "box") ~doctype:None
exception History_failure