Hi!

What makes you think that? How about this:

$ rlwrap ocaml
        OCaml version 4.02.3

# #use "topfind";;
- : unit = ()
[...]
# #require "tyxml";;
[...]
# open Html5.M;;
# html (head (title (pcdata "")) []) (body [svg [Svg.M.rect []]]);;
- : [> `Html ] Html5.M.elt = <abstr>


Hope this helps,
  ph.

2016-01-02 18:43 GMT+01:00 <rixed@happyleptic.org>:
Hello!

It seems that it's currently imposible due to typing restrictions to create an
SVG element into an HTML document.
I'm thinking about using js_of_ocaml without tyxml, calling unsafe JS to
generate whatever element I want.  Is there a better workaround?


--
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs