Hello,

I unsuccessfully tried to run the following Wiki book
<https://en.wikibooks.org/wiki/XForms/Message_Types> example.
Event trapping and message modes do not work as expected (using Chrome).

Here-attached is my use case, derived from the wiki with corrections of the
missing bindings

Best regards.
Robert.
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://localhost:1180/XsltForms/xsltforms/xsltforms.xsl"; type="text/xsl"?>
<html xmlns:ht="http://www.w3.org/1999/xhtml"; xmlns:xf="http://www.w3.org/2002/xforms"; xmlns:ev="http://www.w3.org/2001/xml-events";>
  <ht:head>
    <title>XForms Message</title>
    <xf:model>
      <!--id="myModel"-->
      <xf:instance>
        <data xmlns="">
          <test1 />
          <test2 />
          <MyMessage>This is a modeless message stored directly in the model.
                Note you can drag me to the side and still proceed to the next task.
            </MyMessage>
        </data>
      </xf:instance>
    </xf:model>
  </ht:head>
  <body xmlns="http://www.w3.org/1999/xhtml";>
    <p>Put your cursor in the first input.  A message will appear for just a moment.</p>
    <xf:input ref="test1">
      <xf:label>Ephemeral message: </xf:label>
      <xf:message ev:event="DOMFocusIn" level="ephemeral">This is an ephemeral message.
                Don't worry, I go away after a few seconds.</xf:message>
    </xf:input>
    <div>
      <p>Press enter in the input field to get a modeless message:</p>
      <xf:input ref="test2">
        <xf:label>Modeless message input: </xf:label>
        <xf:message level="modeless" ref="MyMessage" ev:event="DOMActivate">
          <!--model="myModel"-->
        </xf:message>
      </xf:input>
      <p>A standard and intrusive modal message that must be dismissed:</p>
      <xf:trigger>
        <xf:label>Press for a modal message</xf:label>
        <xf:message level="modal" ev:event="DOMActivate">This is a modal message.</xf:message>
      </xf:trigger>
    </div>
  </body>
</html>
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to