Relax NG Pluggable Datatype Libraries

Issues related with the oNVDL implementation of NVDL.
Murmex
Posts: 1
Joined: Thu May 07, 2009 6:19 am

Relax NG Pluggable Datatype Libraries

Post by Murmex » Thu May 07, 2009 6:41 am

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.

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Relax NG Pluggable Datatype Libraries

Post by sorin_ristache » Fri May 08, 2009 3:17 pm

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

rdeltour
Posts: 3
Joined: Wed Mar 10, 2010 1:15 pm

Re: Relax NG Pluggable Datatype Libraries

Post by rdeltour » Tue Mar 29, 2011 3:55 pm

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.

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Relax NG Pluggable Datatype Libraries

Post by sorin_ristache » Mon Apr 04, 2011 3:28 pm

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

Zearin
Posts: 107
Joined: Mon Jul 30, 2007 11:31 pm
Location: College Park, MD, United States

Re: Relax NG Pluggable Datatype Libraries

Post by Zearin » Sat May 07, 2011 9:03 pm

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.)
-- Zearin

george
Site Admin
Posts: 2101
Joined: Thu Jan 09, 2003 2:58 pm

Re: Relax NG Pluggable Datatype Libraries

Post by george » Mon May 09, 2011 5:11 pm

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
George Cristian Bina

Post Reply