2.2.1.2.45 errorMessage (1)

The errorMessage element specifies the error message that MUST be returned if the value of the specified XML node is considered invalid according to the value specified by the expression attribute of the errorCondition element (section 2.2.1.2.44).

Parent Elements

errorCondition

override

Attributes:

shortMessage: This attribute specifies the short error message that MUST be returned in the case of invalid data.

type: This attribute specifies the modality of the error message. If this attribute is not present, its value MUST be interpreted as "modal". If the value is "modal", the errorMessage element MUST be ignored. If the value is "modeless", this errorMessage element MUST NOT be ignored.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

 <xsd:element name="errorMessage">
   <xsd:complexType>
     <xsd:simpleContent>
       <xsd:extension base="xsf:xdErrorMessage">
         <xsd:attribute name="type" use="optional">
           <xsd:simpleType>
             <xsd:restriction base="xsd:NMTOKEN">
               <xsd:enumeration value="modal"/>
               <xsd:enumeration value="modeless"/>
             </xsd:restriction>
           </xsd:simpleType>
         </xsd:attribute>
         <xsd:attribute name="shortMessage" use="required">
           <xsd:simpleType>
             <xsd:restriction base="xsd:string">
               <xsd:maxLength value="127"/>
             </xsd:restriction>
           </xsd:simpleType>
         </xsd:attribute>
       </xsd:extension>
     </xsd:simpleContent>
   </xsd:complexType>
 </xsd:element>