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

<!-- file: xhtml-object-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-object-1.rng,v 1.1 2010/12/12 23:24:11 smccarro Exp $

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

<define name="xhtml.object">
  <element name="object">
    <ref name="xhtml.object.attlist"/>
    <!-- No restrictions on mixed content in TREX. -->
    <zeroOrMore>
      <ref name="xhtml.param"/>
    </zeroOrMore>
    <ref name="xhtml.Flow.model"/>
  </element>
</define>

<define name="xhtml.object.attlist">
  <ref name="xhtml.Common.attrib"/>
  <optional>
    <attribute name="declare">
      <value>declare</value>
    </attribute>
  </optional>
  <optional>
    <attribute name="classid">
      <ref name="xhtml.URI.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="codebase">
      <ref name="xhtml.URI.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="data">
      <ref name="xhtml.URI.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="type">
      <ref name="xhtml.ContentType.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="codetype">
      <ref name="xhtml.ContentType.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="archive">
      <ref name="xhtml.URIs.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="standby">
      <ref name="xhtml.Text.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="height">
      <ref name="xhtml.Length.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="width">
      <ref name="xhtml.Length.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="name"/>
  </optional>
  <optional>
    <attribute name="tabindex">
      <ref name="xhtml.Number.datatype"/>
    </attribute>
  </optional>
</define>

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

</grammar>
