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.





data server software 