oNVDL and schematron : Unknown XPath version 0

Issues related with the oNVDL implementation of NVDL.
matthieu.ricaud
Posts: 20
Joined: Fri Apr 22, 2011 4:17 pm

oNVDL and schematron : Unknown XPath version 0

Post by matthieu.ricaud » Mon Jul 25, 2011 9:18 pm

Hi,

I have a schematron who validate my xml file. It works when xml file is associate with it. But when calling the schematron from a NVDL file I get this error :
SystemID: C:\oNVDL\test.nvdl
Nom du moteur: Jing
Gravité: error
Description: java.lang.IllegalArgumentException-Unknown XPath version 0
When I use the ondvl.jar file downloaded from sourceforge I don't get any error.

This are the test files :

test.xml

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!--<?oxygen SCHSchema="test.sch"?>-->
<?oxygen NVDLSchema="test.nvdl"?>
<foo:bar xmlns:foo="http://www.foo.com" id=""/>
test.sch

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.ascc.net/xml/schematron">
<ns prefix='foo' uri='http://www.foo.com'/>

<pattern name="Common">
<rule context="*[@id]">
<report test="normalize-space(@id)=''">attribut @id is empty...!</report>
</rule>
</pattern>

</schema>
test.nvdl

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<rules xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0" startMode="main">
<mode name="main">
<namespace ns="http://www.foo.com">
<validate schema="test.sch" />
</namespace>
</mode>
</rules>
Do you know about this problem, do I have to change anything in my oXygen's preferences so it works ?

Regards,

Matthieu.

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

Re: oNVDL and schematron : Unknown XPath version 0

Post by george » Tue Jul 26, 2011 5:36 pm

Please make sure you run the latest 12.2 build, 2011062910
http://www.oxygenxml.com/download_oxygenxml_editor.html

This build fixes a few issues, including the problem of calling a Schematron schema from an NVDL script that was a side effect of the upgrade to the latest Saxon:
http://www.oxygenxml.com/build_history.html#2011062910

Best Regards,
George
George Cristian Bina

matthieu.ricaud
Posts: 20
Joined: Fri Apr 22, 2011 4:17 pm

Re: oNVDL and schematron : Unknown XPath version 0

Post by matthieu.ricaud » Fri Jul 29, 2011 10:54 am

Hi Georges,

I've upgraded my oXygen version to the latest build, and as expected : schematron validation within NDVL works perfectly now :-) !

Thanks a lot,

Regards,
Matthieu

Post Reply