<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<!-- note: nsXBLPrototypeHandler::ExecuteHandler is still JS specific,
so 'ondialogaccept' handler does not execute Python
-->
<dialog
  script-type="application/x-python"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  id="myDialog" orient="vertical"
  buttons="accept,cancel"
  ondialogaccept="dump('hello')"
  >

  <script>
    <![CDATA[

dump("Dialog location is %s\n", window.location.href)

    ]]>
  </script>

  <description value="Select a button"/>

</dialog>