<?xml version="1.0" encoding="iso-8859-1"?>

<!-- file: xhtml-events-1.rng

     This is XHTML, a reformulation of HTML as a modular XML application.
     Copyright 1998-2010 W3C (MIT, ERCIM, Keio), All Rights Reserved.
     Revision: $Id: xhtml-events-1.rng,v 1.1 2010/12/12 23:24:10 smccarro Exp $

     This RelaxNG module is identified by URI:
        
        http://www.w3.org/MarkUp/RELAXNG/xhtml-events-1.rng
     .................................................................... -->
<!-- Events Module -->
<grammar xmlns="http://relaxng.org/ns/structure/1.0">

<define name="xhtml.a.attlist" combine="interleave">
  <optional>
    <attribute name="onblur">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onfocus">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.area.attlist" combine="interleave">
  <optional>
    <attribute name="onblur">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onfocus">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.form.attlist" combine="interleave">
  <optional>
    <attribute name="onreset">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onsubmit">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.body.attlist" combine="interleave">
  <optional>
    <attribute name="onload">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onunload">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.label.attlist" combine="interleave">
  <optional>
    <attribute name="onblur">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onfocus">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.input.attlist" combine="interleave">
  <optional>
    <attribute name="onblur">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onchange">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onfocus">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onselect">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.select.attlist" combine="interleave">
  <optional>
    <attribute name="onblur">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onchange">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onfocus">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.textarea.attlist" combine="interleave">
  <optional>
    <attribute name="onblur">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onchange">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onfocus">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onselect">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.button.attlist" combine="interleave">
  <optional>
    <attribute name="onblur">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onfocus">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.Events.attrib">
  <optional>
    <attribute name="onclick">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="ondblclick">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onmousedown">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onmouseup">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onmouseover">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onmousemove">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onmouseout">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onkeypress">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onkeydown">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="onkeyup">
      <ref name="xhtml.Script.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.Common.attrib" combine="interleave">
  <ref name="xhtml.Events.attrib"/>
</define>

<define name="xhtml.CommonIdRequired.attrib" combine="interleave">
  <ref name="xhtml.Events.attrib"/>
</define>

</grammar>
