Dave Pawson wrote:


If I read you right, you simply want to validate xml files to a schema?

Yes, I want to validate xml files against a schema, but I only know how to do it against an xsd schema, and only know how to write an rng schema.


 (Or if you could assure me that validating directly from RNG under
 Java and point me to some really clear way to do it, that would be
 even nicer!)

I have some code (based on work by
http://hsivonen.iki.fi/validator-about/VerifierServlet.jar -- Henri Sivonen

which does rng validation in java.
I'm sure others do too.

Thanks, I'll have a look when I get around to it. Since Sebastian Rahtz gave me a fix for the trang bug on Ubuntu, it's not so urgent anymore.

(In case others are interested, to save them the search: the trang.jar file is here <http://www.thaiopensource.com/download/>, in the trang-version.zip file.)

What is the error reported when you try to validate?
Not a datetime issue by any chance?

The message it gives is:

libgcj failure: gcj linkage error.
Incorrect library ABI version detected.  Aborting.

Aborted (core dumped)

If I understand correctly, trang is java compiled to native code. It seems that there is some kind of dependency problem for trang in the latest (7.10) version of Ubuntu (and Debian generally?). Using the traditional method with a java bytecode interpreter + the jar file, as indicated by Sebastian Rahtz, seems to work out fine. (At least with Sun java, which is what I use (not that I wouldn't like to be politically correct, but it seems more reliable than the politically correct gij)).


Anyway, thanks for your help.

David

--
http://david.olivier.name/

Reply via email to