header

Schematron Quick Reference

These elements are part of the Schematron standard, which is a rule-based language for validating the structure of XML documents. It is an open standard, and is typically used in conjunction with other XML schema languages, such as RelaxNG and W3C XML Schema, to provide more comprehensive and powerful validation of XML documents.

  • sch:active is used to enable or disable a rule or a pattern in the schema.
  • sch:assert is used to specify a constraint or an assertion on the XML document that must be satisfied.
  • sch:diagnostic is used to specify a diagnostic message to be displayed if an sch:assert element fails.
  • sch:diagnostics is used to group sch:diagnostic elements together.
  • sch:dir is used to specify the direction in which text should be displayed in the diagnostic messages.
  • sch:emph is used to emphasize text in diagnostic messages.
  • sch:extends is used to specify that a pattern extends another pattern in the schema.
  • sch:include is used to include another schema in the current schema.
  • sch:let is used to define a variable that can be used in XPath expressions in the schema.
  • sch:name is used to specify a name for a pattern or a rule in the schema.
  • sch:ns is used to specify a namespace to be used in the schema.
  • sch:p is used to specify a paragraph of text in a diagnostic message.
  • sch:param is used to define a parameter that can be passed to a pattern or a rule in the schema.
  • sch:pattern is used to group sch:rule elements together and define a named pattern in the schema.
  • sch:phase is used to group sch:pattern elements together and define a named phase in the schema.
  • sch:report is used to specify a diagnostic message to be displayed if an sch:assert element or an sch:report element in a sch:rule element succeeds.
  • sch:rule is used to specify a rule that can be applied to nodes in the XML document.
  • sch:schema is the root element of a Schematron schema, which defines the rules and patterns for validating an XML document.
  • sch:span is used to specify a span of text in a diagnostic message.
  • sch:title is used to specify a title for a pattern or a rule in the schema.
  • sch:value-of is used to insert the value of an XPath expression in a diagnostic message.