input

form control

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
accept ContentTypes optional
accesskey Character optional
alt optional
checked restriction of xs:token optional
class xs:NMTOKENS optional
dir restriction of xs:token optional
disabled restriction of xs:token optional
id xs:ID optional
lang LanguageCode optional
maxlength Number optional
name optional
the name attribute is required for all but submit & reset
onblur Script optional
onchange Script optional
onclick Script optional
ondblclick Script optional
onfocus Script optional
onkeydown Script optional
onkeypress Script optional
onkeyup Script optional
onmousedown Script optional
onmousemove Script optional
onmouseout Script optional
onmouseover Script optional
onmouseup Script optional
onselect Script optional
readonly restriction of xs:token optional
size optional
src URI optional
style StyleSheet optional
tabindex tabindexNumber optional
title Text optional
type InputType text optional
usemap URI optional
value 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 Group inline.forms

Source

<xs:element name="input">
  <xs:annotation>
    <xs:documentation>form control</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attributeGroup ref="attrs"/>
    <xs:attributeGroup ref="focus"/>
    <xs:attribute name="type" default="text" type="InputType"/>
    <xs:attribute name="name">
      <xs:annotation>
        <xs:documentation>the name attribute is required for all but submit & reset</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="value"/>
    <xs:attribute name="checked">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="checked"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="disabled">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="disabled"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="readonly">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="readonly"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="size"/>
    <xs:attribute name="maxlength" type="Number"/>
    <xs:attribute name="src" type="URI"/>
    <xs:attribute name="alt"/>
    <xs:attribute name="usemap" type="URI"/>
    <xs:attribute name="onselect" type="Script"/>
    <xs:attribute name="onchange" type="Script"/>
    <xs:attribute name="accept" type="ContentTypes"/>
  </xs:complexType>
</xs:element>

Sample