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

<!-- file: xhtml-edit-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-edit-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-edit-1.rng
     .................................................................... -->
<!-- Edit Module -->
<grammar xmlns="http://relaxng.org/ns/structure/1.0">

<define name="xhtml.del">
  <element name="del">
    <ref name="xhtml.del.attlist"/>
    <ref name="xhtml.Flow.model"/>
  </element>
</define>

<define name="xhtml.del.attlist">
  <ref name="xhtml.Edit.attrib"/>
</define>

<define name="xhtml.ins">
  <element name="ins">
    <ref name="xhtml.ins.attlist"/>
    <ref name="xhtml.Flow.model"/>
  </element>
</define>

<define name="xhtml.ins.attlist">
  <ref name="xhtml.Edit.attrib"/>
</define>

<define name="xhtml.Edit.attrib">
  <optional>
    <attribute name="cite">
      <ref name="xhtml.URI.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="datetime">
      <ref name="xhtml.Datetime.datatype"/>
    </attribute>
  </optional>
  <ref name="xhtml.Common.attrib"/>
</define>

<define name="xhtml.Edit.class">
  <choice>
    <ref name="xhtml.del"/>
    <ref name="xhtml.ins"/>
  </choice>
</define>

<define name="xhtml.Inline.class" combine="choice">
  <ref name="xhtml.Edit.class"/>
</define>

<define name="xhtml.Block.class" combine="choice">
  <ref name="xhtml.Edit.class"/>
</define>

</grammar>

