oNVDL and schematron : Unknown XPath version 0
Posted: 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 :
This are the test files :
test.xml
test.sch
test.nvdl
Do you know about this problem, do I have to change anything in my oXygen's preferences so it works ?
Regards,
Matthieu.
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 :
When I use the ondvl.jar file downloaded from sourceforge I don't get any error.SystemID: C:\oNVDL\test.nvdl
Nom du moteur: Jing
Gravité: error
Description: java.lang.IllegalArgumentException-Unknown XPath version 0
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=""/>
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>
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>
Regards,
Matthieu.