xml editor

Products

Features

  EPUB
Supported platforms

Supports Windows 7 & Mac OS X Lion

Ready for XML Editor data server software
W3C Member

oNVDL and schematron : Unknown XPath version 0

Issues related with the oNVDL implementation of NVDL.

oNVDL and schematron : Unknown XPath version 0

Postby 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.
matthieu.ricaud
 
Posts: 20
Joined: Fri Apr 22, 2011 4:17 pm

Re: oNVDL and schematron : Unknown XPath version 0

Postby 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
george
Site Admin
 
Posts: 2033
Joined: Thu Jan 09, 2003 2:58 pm

Re: oNVDL and schematron : Unknown XPath version 0

Postby 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
matthieu.ricaud
 
Posts: 20
Joined: Fri Apr 22, 2011 4:17 pm


Return to oNVDL Related Issues

Who is online

Users browsing this forum: No registered users and 0 guests

cron
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>® XML Editor