[relaxng-user] Installing custom datatype libraries

Elliotte Harold elharo at metalab.unc.edu
Tue Oct 26 10:10:12 ICT 2004


I'm having trouble getting my (or any) custom datatype library to work 
on Mac OS X, java 1.4.2 (Haven't tested other platforms yet). For 
instance, with the Jing sample library I get this:

$ export CLASSPATH=./datatype-sample.jar
$ jing datatype-sample.rng valid.xml
compileSchema threw a SAXException class class org.xml.sax.SAXParseException
/Users/elharo/Desktop/Downloads/jing-20030619/sample/datatype/datatype-sample.rng:4:32: 
fatal: datatype library 
"http://www.thaiopensource.com/relaxng/datatypes/sample" not recognized


Hmm, let's make sure it really is in the CLASSPATH:

$ java com.thaiopensource.datatype.sample.SimpleDatatypeLibrary
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/relaxng/datatype/Datatype

Yep, seems to be there. Otherwise it would complain about not finding 
the SimpleDatatypeLibrary class.

Any suggestions? Is there some other way to tell Jing to find custom 
type libraries?

-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim



More information about the relaxng-user mailing list