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

<!-- file: xhtml-hypertext-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-hypertext-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-hypertext-1.rng
     .................................................................... -->
<!-- Hypertext Module -->
<!-- Depends on text module. -->
<grammar xmlns="http://relaxng.org/ns/structure/1.0">

<define name="xhtml.a">
  <element name="a">
    <ref name="xhtml.a.attlist"/>
    <ref name="xhtml.Inline.model"/>
  </element>
</define>

<define name="xhtml.a.attlist">
  <ref name="xhtml.Common.attrib"/>
  <optional>
    <attribute name="href">
      <ref name="xhtml.URI.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="charset">
      <ref name="xhtml.Charset.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="type">
      <ref name="xhtml.ContentType.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="hreflang">
      <ref name="xhtml.LanguageCode.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="rel">
      <ref name="xhtml.LinkTypes.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="rev">
      <ref name="xhtml.LinkTypes.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="accesskey">
      <ref name="xhtml.Character.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="tabindex">
      <ref name="xhtml.Number.datatype"/>
    </attribute>
  </optional>
</define>

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

</grammar>
