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

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

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

<define name="xhtml.iframe.attlist">
  <ref name="xhtml.Core.attrib"/>
  <optional>
    <attribute name="longdesc">
      <ref name="xhtml.URI.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="src">
      <ref name="xhtml.URI.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="frameborder">
      <choice>
        <value>1</value>
        <value>0</value>
      </choice>
    </attribute>
  </optional>
  <optional>
    <attribute name="width">
      <ref name="xhtml.Length.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="height">
      <ref name="xhtml.Length.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="marginwidth">
      <ref name="xhtml.Pixels.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="marginheight">
      <ref name="xhtml.Pixels.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="scrolling">
      <choice>
        <value>yes</value>
        <value>no</value>
        <value>auto</value>
      </choice>
    </attribute>
  </optional>
</define>

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

</grammar>
