<?xml version="1.0"?>
<bindings id="XEBindings" xmlns:xhtml="http://www.w3.org/1999/xhtml"
   xmlns:xbl="http://www.mozilla.org/xbl"
   xmlns:ev="http://www.w3.org/2001/xml-events" xmlns="http://www.mozilla.org/xbl"
   xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
   xmlns:ex="http://www.example.com/ns">
  <binding id="scriptHandler">
    <implementation implements="nsIDOMEventListener">
      <method name="handleEvent">
        <parameter name="aEvent"/>
        <body>(new Function("event", this.firstChild.data))(aEvent);</body>
      </method>
    </implementation>
  </binding>
  <binding id="tester">
    <content><xhtml:span xbl:inherits="xbl:text=ex:value,ex:namespacedValue=ex:value,namespacelessValue=ex:value"> &gt;Click here&lt;
               <xhtml:span xbl:inherits="ev:event=event" ev:propagate="stop" style="display:none; -moz-binding:url(#scriptHandler);">
                 alert('Trying to inherit XML Events declarations: ' + event.currentTarget.getAttribute('namespacelessValue'));
               </xhtml:span>
             </xhtml:span>
    </content>
    <implementation>
      <field name="firstAnon">
        document.getAnonymousNodes(this)[0];
      </field>
    </implementation>
  </binding>
</bindings>
