Relax NG Pluggable Datatype Libraries

Hi, I'm trying to add XHTML5 support to oXygen XML editor (Eclipse plugin) using the Relax NG schema files from validator.nu[1]. 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[2][3] for that namespace. 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 or something else and I don't know what to do to make it works. Thanks for your help, Georges Discry [1] http://s.validator.nu/ [2] http://www.thaiopensource.com/relaxng/pluggable-datatypes.html [3] http://s.validator.nu/html5/datatype/java/

Hello, You have to add the jar with the datatype library to the classpath of the Oxygen plugin: copy the file html5-datatypes.jar to ${oxygenHome}/lib/ directory and add the line <library name="lib/html5-datatypes.jar"/> in the <runtime> element of the ${oxygenHome}/plugin.xml file. The library html5-datatypes.jar needs the following jars from the Jena distribution otherwise you get many ClassNotFound exceptions: jena.jar iri.jar icu4j_3_4.jar You can download a Jena distribution from: http://sourceforge.net/project/showfiles.php?group_id=40417&package_id=41716 You have to copy the jar files to ${oxygenHome}/lib/ and add them to plugin.xml: <library name="lib/jena.jar"/> <library name="lib/iri.jar"/> <library name="lib/icu4j_3_4.jar"/> Restart Eclipse and you can validate the RELAX NG schema that uses the HTML 5 datatype library. Also you can validate XML documents against such a schema. We will add the steps of this procedure to the User Manual. Regards, Sorin Georges Discry wrote:
Hi,
I'm trying to add XHTML5 support to oXygen XML editor (Eclipse plugin) using the Relax NG schema files from validator.nu[1].
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[2][3] for that namespace. 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 or something else and I don't know what to do to make it works.
Thanks for your help, Georges Discry

It works, thanks a lot! Georges Sorin Ristache a écrit :
Hello,
You have to add the jar with the datatype library to the classpath of the Oxygen plugin: copy the file html5-datatypes.jar to ${oxygenHome}/lib/ directory and add the line
<library name="lib/html5-datatypes.jar"/>
in the <runtime> element of the ${oxygenHome}/plugin.xml file. The library html5-datatypes.jar needs the following jars from the Jena distribution otherwise you get many ClassNotFound exceptions:
jena.jar iri.jar icu4j_3_4.jar
You can download a Jena distribution from:
http://sourceforge.net/project/showfiles.php?group_id=40417&package_id=41716
You have to copy the jar files to ${oxygenHome}/lib/ and add them to plugin.xml:
<library name="lib/jena.jar"/> <library name="lib/iri.jar"/> <library name="lib/icu4j_3_4.jar"/>
Restart Eclipse and you can validate the RELAX NG schema that uses the HTML 5 datatype library. Also you can validate XML documents against such a schema.
We will add the steps of this procedure to the User Manual.
Regards, Sorin
Georges Discry wrote:
Hi,
I'm trying to add XHTML5 support to oXygen XML editor (Eclipse plugin) using the Relax NG schema files from validator.nu[1].
datatype library "http://whattf.org/datatype-draft" not recognized | html5/web-forms.rnc Validator.nu provides a Pluggable Datatype Library[2][3] for that namespace. I've copied it in the ${oxygenHome}/lib/ directory and even added it to the XHTML5 classpath in the Document Type Association
However, parsing the RNC files fails because of the Datatype Library with the "http://whattf.org/datatype-draft" namespace: 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 or something else and I don't know what to do to make it works.
Thanks for your help, Georges Discry
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Looks like I'm having some issues making this work again with 10.3. I've followed the same steps but I keep getting the message
datatype library "http://whattf.org/datatype-draft" not recognized | common.rnc
On 05/08/2009 01:56 PM, Sorin Ristache wrote:
Hello,
You have to add the jar with the datatype library to the classpath of the Oxygen plugin: copy the file html5-datatypes.jar to ${oxygenHome}/lib/ directory and add the line
<library name="lib/html5-datatypes.jar"/>
in the<runtime> element of the ${oxygenHome}/plugin.xml file. The library html5-datatypes.jar needs the following jars from the Jena distribution otherwise you get many ClassNotFound exceptions:
jena.jar iri.jar icu4j_3_4.jar
You can download a Jena distribution from:
http://sourceforge.net/project/showfiles.php?group_id=40417&package_id=41716
You have to copy the jar files to ${oxygenHome}/lib/ and add them to plugin.xml:
<library name="lib/jena.jar"/> <library name="lib/iri.jar"/> <library name="lib/icu4j_3_4.jar"/>
Restart Eclipse and you can validate the RELAX NG schema that uses the HTML 5 datatype library. Also you can validate XML documents against such a schema.
We will add the steps of this procedure to the User Manual.
Regards, Sorin
Georges Discry wrote:
Hi,
I'm trying to add XHTML5 support to oXygen XML editor (Eclipse plugin) using the Relax NG schema files from validator.nu[1].
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[2][3] for that namespace. 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 or something else and I don't know what to do to make it works.
Thanks for your help, Georges Discry
participants (2)
-
Georges Discry
-
Sorin Ristache