Installing custom datatype libraries

Elliotte Harold <[email protected]> Tue, 26 Oct 2004 10:10:12 -0400
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
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  [email protected]
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