In addition to RELAX NG (both XML and compact syntax), Jing has
support for some other schema languages. This support is less mature
than the RELAX NG support. These schema languages all use XML and
Jing can autodetect using the namespace URI of the document element.
However, if you use the -c
option, no autodetection will
be performed and the schema will be parsed as RELAX NG compact
syntax.
Jing has support for the following schema languages:
http://www.ascc.net/xml/schematron
. Jing can report
correct line numbers both for errors in the instance and errors in the
schema (including XPath errors). It can use either Saxon or Xalan as
its XSLT engine. Jing is distributed with Saxon, because JDK 1.4
includes an old version of Xalan, which does not work properly for
this application, and it is tricky to prevent the JRE using this
version. A command-line option of -d
enables
diagnostics. A command-line option of
-p phase
specifies the phase to use. Both
reports and failed assertions are considered errors. The Schematron
schema is subject to rather more rigorous checking (using a RELAX NG
schema) than with the reference Schematron implementation.xsi:schemaLocation
and
xsi:noNamespaceSchemaLocation
hints in the instance are
ignored.schema
option for W3C XML Schema subschemas, which would
allow more than one schema URI to be specified.