(In reply to Liu Shukui from comment #13) > > > > Could you append the file datatype-sample.rng to Bugzilla? > > the file datatype-sample.rng is at > /usr/share/doc/packages/jing/sample/datatype > and the description of the regression test is at: > > /usr/share/doc/packages/jing/sample/datatype/index.html > > > cat datatype-sample.rng > <element name="balancedString" > xmlns="http://relaxng.org/ns/structure/1.0" > datatypeLibrary="http://www.thaiopensource.com/relaxng/datatypes/sample"> > <data type="balancedString"/> > </element> Ok. As Jing uses the JPackage project, you can use/set VERBOSE and/or CLASSPATH. The following steps works for me: # VERBOSE turns on debugging; leave it out, if you don't want it $ export VERBOSE=1 $ export CLASSPATH=/usr/share/doc/packages/jing/sample/datatype/datatype-sample.jar $ jing datatype-sample.rng valid.xml java virtual machine used: /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0//bin/java classpath used: /usr/share/java/jing.jar:/usr/share/java/xerces-j2.jar:/usr/share/java/xml-commons-apis.jar:/usr/share/java/saxon9.jar:/usr/share/java/saxon6.jar:/usr/share/java/xml-commons-resolver.jar:/usr/share/doc/packages/jing/sample/datatype/datatype-sample.jar main class used: com.thaiopensource.relaxng.util.Driver flags used: options used: arguments used: datatype-sample.rng valid.xml Loaded balanced string $ $ echo $? 0 The last line gives the return code of the validation.