sch:report

An assertion made about the context nodes. The data content is a
natural-language assertion.<br/>The natural-language assertion shall be a positive
statement of a found pattern or a negative statement of a constraint. NOTE:<br/>The
natural-language assertion may contain information about actual values in addition to
expected values and may contain diagnostic information. Users should note, however,that the
diagnostic element is provided for such information to encourage clear statement of the
natural-language assertion.

Element Information

Model

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

Attributes

QName Type Fixed Default Use Inheritable Annotation
diagnostics xs:IDREFS optional
The optional diagnostics attribute is a reference to further diagnostic
information.
flag sch:flagValue optional
The flag attribute allows more detailed outcomes. A boolean variable
with initial value false. A flag is implicitly declared by an assertion or rule having a
flag attribute with that name. The value of a flag becomes true when an assertion with
that flag fails or a rule with that flag fires. The purpose of flags is to convey state
or severity information to a subsequent process.
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 optional
The unique identifier with the schema for the element.
role sch:roleValue optional
A name describing the function of the assertion or context node in the
pattern. If the assertion has a subject attribute, then the role labels the arc between
the context node and any nodes which match the path expression given by the subject
attribute.
see sch:uriValue optional
The URI of external information of interest to maintainers and users of
the schema.
sqf:default-fix xs:string optional
This attribute sets a default QuickFix for the Schematron assert or report. The default QuickFix must also be referred by the<icode type="attribute">sqf:fix</icode>attribute.
Value
The ID of a QuickFix which is referred by the<icode type="attribute">sqf:fix</icode>attribute.
sqf:fix xs:string optional
This attribute refers to one or more QuickFixes which should be assigned to the Schematron assert or report. Each referred QuickFix must be defined globally or locally for the same Schematron rule.
The reference works with the ID of the QuickFix. If there is a local and a global QuickFix having the same ID, the local QuickFix will be selected.
Value
A list of IDs of the referred QuickFixes separated by white space.
subject sch:pathValue optional
A path allowing more precise specification of nodes. The path expression
is evaluated in the context of the context node of the current rule. If no subject
attribute is specified, the current subject node may be used.
test sch:exprValue required
The required test attribute is an assertion test evaluated in the
current context. If the test evaluates positive, the assert succeeds.
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:rule

Source

<xs:element name="report" type="sch:assertReportType">
  <xs:annotation>
    <xs:documentation>An assertion made about the context nodes. The data content is a natural-language assertion.
      <br/>The natural-language assertion shall be a positive statement of a found pattern or a negative statement of a constraint. NOTE:
      <br/>The natural-language assertion may contain information about actual values in addition to expected values and may contain diagnostic information. Users should note, however,that the diagnostic element is provided for such information to encourage clear statement of the natural-language assertion.</xs:documentation>
  </xs:annotation>
</xs:element>

Sample