2.3.2.4 content

The content attribute applies to the ElementType element (see section 2.3.1.4), and restricts the content of this element. The following schema defines the content attribute:

   <xs:attribute  name='content'>
     <xs:simpleType >
       <xs:restriction  base='xs:string'>
         <xs:enumeration  value='empty'/>
         <xs:enumeration  value='textOnly'/>
         <xs:enumeration  value='eltOnly'/>
         <xs:enumeration  value='mixed'/>
       </xs:restriction>
     </xs:simpleType>
   </xs:attribute>

The allowable values in the content schema attribute are specified in the following table.

Value

Meaning

empty

Element can have attributes, but no text or child elements.

textOnly

Element can have attributes and text, but no child elements.

eltOnly

Element can have attributes and child elements, but no text.

mixed

Element can contain both text and elements.

The content attribute value is by default "mixed". The value of the content attribute affects the default value for the order schema attribute. content that is "mixed" has default order "many", while "eltOnly" content has default order "seq". If the value of model is "open", the value of content MUST NOT be "empty".