From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 369857FBA6 for ; Sat, 2 Jan 2016 19:09:30 +0100 (CET) IronPort-PHdr: 9a23:aUNIbBF+JsCgEFW2zL+nzJ1GYnF86YWxBRYc798ds5kLTJ75r86wAkXT6L1XgUPTWs2DsrQf27SQ7f2rADRRqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh770pcCYOl0ZzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IZ57nZLw1RqB0CzEvMmZ9pJG69EqLcQzazXsVSmReuRpBGw+NuAv7Tpr9mivzrvJs3CSCIcz9C7cuVmLxwb1sTUrQiCYDNiYh/Snph8Z9luoPuBKgox1n24OSfoyfOeBWcabUfNdcTm1ECJUCHxddC5+xOtNcR9EKOvxV+tWsqg== Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=philippe.veber@gmail.com; spf=Pass smtp.mailfrom=philippe.veber@gmail.com; spf=None smtp.helo=postmaster@mail-wm0-f46.google.com Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of philippe.veber@gmail.com) identity=pra; client-ip=74.125.82.46; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="philippe.veber@gmail.com"; x-sender="philippe.veber@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of philippe.veber@gmail.com designates 74.125.82.46 as permitted sender) identity=mailfrom; client-ip=74.125.82.46; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="philippe.veber@gmail.com"; x-sender="philippe.veber@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wm0-f46.google.com) identity=helo; client-ip=74.125.82.46; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="philippe.veber@gmail.com"; x-sender="postmaster@mail-wm0-f46.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CmAQDQEYhWmy5SfUpeg1g0bQaIU6N1hTqMMiKFbQKBCgc8EAEBAQEBAQEBEAEBAQEBBgsLCSEuQRKBWoIIAQEDARIRHQEbEgsBAwELBgMCBAcDFx0CAiIBEQEFAQoSBhMSEId3AQMKCA6RRo9MgTE+MYtIgWqCeYgRChknAwpWgkgBAQEBAQEEAQEBAQEBARYBBQ6GSIR/hQSCb4FJBYYdDIxhg3yFQIgRgiaMVUSMKhEkgRcRKIIvIoFlPTSBBoQKAQEB X-IPAS-Result: A0CmAQDQEYhWmy5SfUpeg1g0bQaIU6N1hTqMMiKFbQKBCgc8EAEBAQEBAQEBEAEBAQEBBgsLCSEuQRKBWoIIAQEDARIRHQEbEgsBAwELBgMCBAcDFx0CAiIBEQEFAQoSBhMSEId3AQMKCA6RRo9MgTE+MYtIgWqCeYgRChknAwpWgkgBAQEBAQEEAQEBAQEBARYBBQ6GSIR/hQSCb4FJBYYdDIxhg3yFQIgRgiaMVUSMKhEkgRcRKIIvIoFlPTSBBoQKAQEB X-IronPort-AV: E=Sophos;i="5.20,513,1444687200"; d="scan'208";a="159233496" Received: from mail-wm0-f46.google.com ([74.125.82.46]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 02 Jan 2016 19:08:15 +0100 Received: by mail-wm0-f46.google.com with SMTP id l65so124777972wmf.1 for ; Sat, 02 Jan 2016 10:08:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=q9Mwk6izlVfwGEdLwLme0w/uBnwJczqaU7d/B+uerGU=; b=eD4LU7xQPHuuypqDGTdIjhUXtVHJoLHw/xD9Mqd8pPOmxMLgeaMN6GOzIm1txNT2hf bTdbrCiwczuMty7p/E969U24dxKsp0NO9Zt9UZZyZSj2AHezS9eS/HDzMMrH4ctdKidm gCTp5iNlGPiZ44yCjjVNmsksuocfxbZ5QzQi311oR6lJ1BK9vKGsfRacH6oLAxy4r4ck z4Xlc976OOzhHPRpFR7UUvxWqvfT5OWKaK6KiaoBr3pkKc+EpN71cgsahvjGO1Rad0oy z+krSfGfBLlUSm0JwdD2SFY5O5/KlxhYyiGtFSVuYAGOeV/ohA8e1oILraYZRIi8HmAJ UIvw== X-Received: by 10.194.192.99 with SMTP id hf3mr87187535wjc.30.1451758095363; Sat, 02 Jan 2016 10:08:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.175.20 with HTTP; Sat, 2 Jan 2016 10:07:55 -0800 (PST) In-Reply-To: <20160102174325.GA22783@pim.happyleptic.org> References: <20160102174325.GA22783@pim.happyleptic.org> From: Philippe Veber Date: Sat, 2 Jan 2016 19:07:55 +0100 Message-ID: To: Chapi Chapo Cc: caml users Content-Type: multipart/alternative; boundary=047d7bae469692f72205285dc510 X-Validation-by: philippe.veber@gmail.com Subject: Re: [Caml-list] js_of_ocaml and --047d7bae469692f72205285dc510 Content-Type: text/plain; charset=UTF-8 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 = Hope this helps, ph. 2016-01-02 18:43 GMT+01:00 : > 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 > --047d7bae469692f72205285dc510 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

What makes you think that? How = about this:

$ rlwrap ocaml
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 OCaml version 4.02.3

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


Hope this helps,
=C2=A0 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 cr= eate an
SVG element into an HTML document.
I'm thinking about using js_of_ocaml without tyxml, calling unsafe JS t= o
generate whatever element I want.=C2=A0 Is there a better workaround?


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

--047d7bae469692f72205285dc510--