head

content model is "head.misc" combined with a single
title and an optional base element in any order

Element Information

Model

(script | style | meta | link | object) , ((title , (script | style | meta | link | object) , base , (script | style | meta | link | object)) | (base , (script | style | meta | link | object) , title , (script | style | meta | link | object)))

Attributes

QName Type Fixed Default Use Inheritable Annotation
dir restriction of xs:token optional
id xs:ID optional
lang LanguageCode optional
profile URI optional
xml:lang union of(xs:language, restriction of xs:string) optional
Attempting to install the relevant ISO 2- and 3-letter
         codes as the enumerated possible values is probably never
         going to be a realistic possibility.  See
         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
         at http://www.iana.org/assignments/lang-tag-apps.htm for
         further information.

         The union allows for the 'un-declaration' of xml:lang with
         the empty string.

Used By

Element html

Source

<xs:element name="head">
  <xs:annotation>
    <xs:documentation>content model is "head.misc" combined with a single title and an optional base element in any order</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:group ref="head.misc"/>
      <xs:choice>
        <xs:sequence>
          <xs:element ref="title"/>
          <xs:group ref="head.misc"/>
          <xs:sequence minOccurs="0">
            <xs:element ref="base"/>
            <xs:group ref="head.misc"/>
          </xs:sequence>
        </xs:sequence>
        <xs:sequence>
          <xs:element ref="base"/>
          <xs:group ref="head.misc"/>
          <xs:element ref="title"/>
          <xs:group ref="head.misc"/>
        </xs:sequence>
      </xs:choice>
    </xs:sequence>
    <xs:attributeGroup ref="i18n"/>
    <xs:attribute name="id" type="xs:ID"/>
    <xs:attribute name="profile" type="URI"/>
  </xs:complexType>
</xs:element>

Sample