sch:report
An assertion made about the context nodes. The data content is a natural-language assertion.
Element information
Namespace: http://purl.oclc.org/dsdl/schematron
Schema document: schematron.xsd
Type: Anonymous
Properties: Global, Qualified
Content
- Any text (mixed) content, intermingled with:
- Choice [0..*]
- Any element Namespace: ##other, Process Contents: skip
- Any element Namespace: ##local, Process Contents: skip
- sch:name Provides the names of nodes from the instance document to allow clearer assertions and diagnostics.
- sch:value-of Finds or calculates values from the instance document to allow clearer assertions and diagnostics
- sch:emph A portion of text that should be rendered with some emphasis.
- sch:dir A section of natural-language text with a direction.
- sch:span A portion of some paragraph that should be rendered in a distinct way, keyed with the class attribute.
from group sch:foreign-element
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
test | [1..1] | sch:exprValue | An assertion test evaluated in the current context. If the test evaluates positive, the report succeeds. | |
flag | [0..1] | sch:flagValue | The name of a Boolean flag variable used to convey state or severity information to a subsequent process. | from group sch:flag |
id | [0..1] | xsd:ID | ||
diagnostics | [0..1] | xsd:IDREFS | A reference to further diagnostic information. | |
see | [0..1] | sch:uriValue | 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. | from group sch:rich |
fpi | [0..1] | sch:fpiValue | A formal public identifier for the schema, phase or other element. | from group sch:rich |
xml:lang | [0..1] | Anonymous | from group sch:rich | |
xml:space | [0..1] | Anonymous | from group sch:rich | |
role | [0..1] | sch:roleValue | 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. | from group sch:linkable |
subject | [0..1] | sch:pathValue | 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. | from group sch:linkable |
Any attribute | [0..*] | Namespace: ##other, Process Contents: skip | from group sch:foreign-attributes | |
Any attribute | [0..*] | Namespace: ##local, Process Contents: skip | from group sch:foreign-attributes |
Used in
- Anonymous type of element sch:rule
Sample instance
<sch:report test="string">Any text, intermingled with: <!--any element--> </sch:report>