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

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

<define name="xhtml.link">
  <element name="link">
    <ref name="xhtml.link.attlist"/>
  </element>
</define>

<define name="xhtml.link.attlist">
  <ref name="xhtml.Common.attrib"/>
  <optional>
    <attribute name="charset">
      <ref name="xhtml.Charset.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="href">
      <ref name="xhtml.URI.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="hreflang">
      <ref name="xhtml.LanguageCode.datatype"/>
    </attribute>
  </optional>
  <optional>
    <attribute name="type">
      <ref name="xhtml.ContentType.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="media">
      <ref name="xhtml.MediaDesc.datatype"/>
    </attribute>
  </optional>
</define>

<define name="xhtml.head.content" combine="interleave">
  <zeroOrMore>
    <ref name="xhtml.link"/>
  </zeroOrMore>
</define>

</grammar>
