sch:diagnostic

A natural-language message giving more specific details concerning a failed
assertion, such as found versus expected values and repair hints. NOTE:<br/>In multiple
languages may be supported by using a different diagnostic element for each language, with
the appropriate xml:lang language attribute, and referencing all the unique identifiers of
the diagnostic elements in the diagnostics attribute of the assertion.<br/>An
implementation is not required to make use of this element.

Element Information

Model

((ANY element from ANY namespace OTHER than 'http://purl.oclc.org/dsdl/schematron' | ANY element from LOCAL namespace 'No Namespace')) | sch:value-of | sch:emph | sch:dir | sch:span

Attributes

QName Type Fixed Default Use Inheritable Annotation
fpi sch:fpiValue optional
A formal public identifier for the schema, phase or other element.
icon sch:uriValue optional
The location of a graphics file containing some visible representation of
the severity, significance or other grouping of the associated element.
id xs:ID required
The unique identifier with the schema for the diagnostic element.
see sch:uriValue optional
The URI of external information of interest to maintainers and users of
the schema.
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.
xml:space restriction of xs:NCName optional
Wildcard: ANY attribute from ANY namespace OTHER than 'http://purl.oclc.org/dsdl/schematron'

Used By

Element sch:diagnostics

Source

<xs:element name="diagnostic">
  <xs:annotation>
    <xs:documentation>A natural-language message giving more specific details concerning a failed assertion, such as found versus expected values and repair hints. NOTE:
      <br/>In multiple languages may be supported by using a different diagnostic element for each language, with the appropriate xml:lang language attribute, and referencing all the unique identifiers of the diagnostic elements in the diagnostics attribute of the assertion.
      <br/>An implementation is not required to make use of this element.</xs:documentation>
  </xs:annotation>
  <xs:complexType mixed="true">
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:group ref="sch:foreign"/>
      <xs:element ref="sch:value-of"/>
      <xs:element ref="sch:emph"/>
      <xs:element ref="sch:dir"/>
      <xs:element ref="sch:span"/>
    </xs:choice>
    <xs:attribute name="id" use="required" type="xs:ID">
      <xs:annotation>
        <xs:documentation>The unique identifier with the schema for the diagnostic element.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attributeGroup ref="sch:rich"/>
    <xs:attributeGroup ref="sch:foreign"/>
  </xs:complexType>
</xs:element>

Sample