<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>I think it should all "just work," with your new tag added in an
      FFI .urs file like that!<br>
    </p>
    <div class="moz-cite-prefix">On 04/17/2018 08:00 AM, Jonas Mellin
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:67EBC36FAF00564EAAE9C7FD4E3CE3B0010D5CA31E@HSMSMBX1.hs.local">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">My
            bad, sorry. It took me a short while to see the misspelling.
            Got it working. I will be more careful about that in the
            future.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">I
            move on to trying multiple objects and then adding
            “foreignObject” tag:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">val
            foreignObject : svgTag([X = string, Y = string, Width =
            string, Height = string] ++ typicalAttrs)<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">an
            addition to the SVG.urs (cf. original at
            <a
href="https://github.com/karsar/urweb-examples/blob/master/SVGTest/SVG.urs"
              moz-do-not-send="true">https://github.com/karsar/urweb-examples/blob/master/SVGTest/SVG.urs</a>)
            , this require somehow to mix xsvg with xbody. Anything in
            particular that has to be taken into account when mixing
            this?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">/Jonas
            Mellin<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal" style="margin-left:65.2pt"><b><span
                  style="color:windowtext;mso-fareast-language:SV"
                  lang="EN-US">From:</span></b><span
                style="color:windowtext;mso-fareast-language:SV"
                lang="EN-US"> Ur [<a class="moz-txt-link-freetext" href="mailto:ur-bounces@impredicative.com">mailto:ur-bounces@impredicative.com</a>]
                <b>On Behalf Of </b>Adam Chlipala<br>
                <b>Sent:</b> den 17 april 2018 13:20<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:ur@impredicative.com">ur@impredicative.com</a><br>
                <b>Subject:</b> Re: [Ur] UR/Web SVG (ffi) question<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal" style="margin-left:65.2pt"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal" style="margin-left:65.2pt">For future
            questions, I think it would be good for you to explain what
            you understand from error messages, highlighting what
            additional understanding you need to diagnose the error. 
            Here again the problem is a simple one that would be
            recognized as a bug in any programming language.<br>
            <br>
            Notice the difference in spellings of field names, between
            the "Have" and "Need" parts of the error message.<br>
            <br>
            On 04/17/2018 05:53 AM, Jonas Mellin wrote:<span
              style="font-size:12.0pt;mso-fareast-language:SV"><o:p></o:p></span></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal" style="margin-left:65.2pt"><span
              style="font-size:12.0pt;font-family:"Times New
              Roman",serif;mso-fareast-language:SV">...
              <o:p></o:p></span></p>
          <p class="MsoNormal" style="margin-left:65.2pt"><span
              style="color:#1F497D" lang="EN-US">                            
                <body onmousemove={fn ev => set x
              (ev.ScreenX,ev.SceenY)}></span><o:p></o:p></p>
          <p class="MsoNormal" style="margin-left:65.2pt"><span
              style="font-size:12.0pt;font-family:"Times New
              Roman",serif;color:#1F497D;mso-fareast-language:SV"
              lang="EN-US">...</span><span
              style="font-size:12.0pt;font-family:"Times New
              Roman",serif;mso-fareast-language:SV" lang="EN-US">
            </span><span style="font-size:12.0pt;font-family:"Times
              New Roman",serif;mso-fareast-language:SV"><o:p></o:p></span></p>
          <p class="MsoNormal" style="margin-left:65.2pt"><span
              style="color:#1F497D" lang="EN-US">   
            </span><o:p></o:p></p>
          <p class="MsoNormal" style="margin-left:65.2pt"><span
              style="color:#1F497D" lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal" style="margin-left:65.2pt"><b><span
                style="color:#1F497D;background:yellow;mso-highlight:yellow"
                lang="EN-US">But I get:</span></b><o:p></o:p></p>
          <p class="MsoNormal" style="margin-left:65.2pt"><span
              style="color:#1F497D" lang="EN-US">Can't unify record
              constructors</span><o:p></o:p></p>
          <p class="MsoNormal" style="margin-left:65.2pt"><span
              style="color:#1F497D" lang="EN-US">Have:
            </span><o:p></o:p></p>
          <p class="MsoNormal" style="margin-left:65.2pt"><span
              style="color:#1F497D" lang="EN-US">[ScreenX = int, ScreenY
              = int, ClientX = int, ClientY = int,
            </span><o:p></o:p></p>
          <p class="MsoNormal" style="margin-left:65.2pt"><span
              style="color:#1F497D" lang="EN-US">  CtrlKey = bool,
              ShiftKey = bool, AltKey = bool, MetaKey = bool,
            </span><o:p></o:p></p>
          <p class="MsoNormal" style="margin-left:65.2pt"><span
              style="color:#1F497D" lang="EN-US">  Button = mouseButton]</span><o:p></o:p></p>
          <p class="MsoNormal" style="margin-left:65.2pt"><span
              style="color:#1F497D" lang="EN-US">Need: 
              <UNIF:U140::{Type}> ++ [ScreenX = int, SceenY = int]</span><o:p></o:p></p>
        </blockquote>
        <p class="MsoNormal" style="margin-left:65.2pt"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;mso-fareast-language:SV"><o:p> </o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Ur mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ur@impredicative.com">Ur@impredicative.com</a>
<a class="moz-txt-link-freetext" href="http://www.impredicative.com/cgi-bin/mailman/listinfo/ur">http://www.impredicative.com/cgi-bin/mailman/listinfo/ur</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>