Page 1 of 1

Relax NG Pluggable Datatype Libraries

Posted: Thu May 07, 2009 6:41 am
by Murmex
I'm trying to add XHTML5 support to oXygen XML editor (Eclipse plugin) using the Relax NG schema files from validator.nu.

However, parsing the RNC files fails because of the Datatype Library with the "http://whattf.org/datatype-draft" namespace:
datatype library "http://whattf.org/datatype-draft" not recognized | html5/web-forms.rnc
Validator.nu provides a Pluggable Datatype Library for that namespace (available here). I've copied it in the ${oxygenHome}/lib/ directory and even added it to the XHTML5 classpath in the Document Type Association preferences.

However, it doesn't solve the issue. I don't know if it's a problem with the .jar, the service for org.relaxng.datatype.DatatypeLibraryFactory and I don't know what to do to make it works.

Re: Relax NG Pluggable Datatype Libraries

Posted: Fri May 08, 2009 3:17 pm
by sorin_ristache
Hello,

See the reply on the Oxygen-user mailing list about adding the necessary jar files to the classpath of the Oxygen plugin.


Regards,
Sorin

Re: Relax NG Pluggable Datatype Libraries

Posted: Tue Mar 29, 2011 3:55 pm
by rdeltour
Hi,

I've tried following the suggested steps with the latest version of the html5 datatypes library from validator.nu but it doesn't work. I still have the message:

"datatype library "http://whattf.org/datatype-draft" not recognized"

I'm using the oXygen XML plugin for Eclipse, version 12.1.0.v2011011116.

Thanks,
Romain.

Re: Relax NG Pluggable Datatype Libraries

Posted: Mon Apr 04, 2011 3:28 pm
by sorin_ristache
Hello,
Murmex wrote:However, it doesn't solve the issue. I don't know if it's a problem with the .jar, the service for org.relaxng.datatype.DatatypeLibraryFactory and I don't know what to do to make it works.
rdeltour wrote:I've tried following the suggested steps with the latest version of the html5 datatypes library from validator.nu but it doesn't work.
Where can I download the HTML 5 datatype library for RELAX NG? I tried to locate a jar file or a zip archive or other download on the validator.nu website but I could not find it. I need the library for reproducing the error and suggesting a fix.


Regards,
Sorin

Re: Relax NG Pluggable Datatype Libraries

Posted: Sat May 07, 2011 9:03 pm
by Zearin
I see that this topic is years old, but I just started having the same problem. :)

The files for the datatypes can be downloaded (or browsed) here:

https://bitbucket.org/validator/syntax/ ... on-schema/

You can get a copy of the entire thing by using the command described near the top of the page. (It uses Mercurial, which is hg on the command line.)

Re: Relax NG Pluggable Datatype Libraries

Posted: Mon May 09, 2011 5:11 pm
by george
Do you have that datatype library in a compiled form (jar) ? If not, then probably that is the problem... the classes from that should be accessible to oXygen - for the standalone version you can just drop the jar in the oXygen lib folder, for the Eclipse plugin you need that plus you need to edit also the plugin.xml file to refer to this library in the requires section.

Best Regards,
George