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

<!-- file: xhtml-attribs-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-attribs-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-attribs-1.rng
     .................................................................... -->
<!-- Common Attributes Module -->
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">

<define name="xhtml.id.attrib">
  <optional>
    <attribute name="id">
      <data type="ID"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.class.attrib">
  <optional>
    <attribute name="class">
      <ref name="xhtml.Text.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.title.attrib">
  <optional>
    <attribute name="title">
      <ref name="xhtml.Text.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.Core.attrib">
  <ref name="xhtml.id.attrib"/>
  <ref name="xhtml.class.attrib"/>
  <ref name="xhtml.title.attrib"/>
</define>

<define name="xhtml.lang.attrib">
  <optional>
    <attribute name="xml:lang">
      <ref name="xhtml.LanguageCode.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.I18n.attrib">
  <ref name="xhtml.lang.attrib"/>
</define>

<define name="xhtml.Common.attrib">
  <ref name="xhtml.Core.attrib"/>
  <ref name="xhtml.I18n.attrib"/>
</define>

<define name="xhtml.CommonIdRequired.attrib">
  <attribute name="id">
    <data type="ID"/>
  </attribute>
  <ref name="xhtml.class.attrib"/>
  <ref name="xhtml.title.attrib"/>
  <ref name="xhtml.I18n.attrib"/>
</define>

</grammar>

