schematron phases

Issues related with the oNVDL implementation of NVDL.
oriol
Posts: 1
Joined: Thu Feb 26, 2009 1:56 pm

schematron phases

Post by oriol »

Hello,

I have an schematron file with phases an I am trying to validate it using NVDL with the option name http://www.thaiopensource.com/validate/phase in the validate element.

<mode name="root">
<namespace ns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
<validate schema="../xsd/maindoc/UBL-Invoice-2.0.xsd" useMode="components"/>
<validate schema="../utilities/test_rules.sch" useMode="schematron">
<option name="http://www.thaiopensource.com/validate/phase" arg="phase1"/>
</validate>

</namespace>
</mode>
<mode name="schematron">
<anyNamespace>
<attach/>
</anyNamespace>
</mode>
...

Oxygen gives me the following error:

E [oNVDL] option "http://www.thaiopensource.com/validate/phase" is not supported for this kind of schema

How can I get this phase being validated?
thank you
Oriol
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: schematron phases

Post by george »

oNVDL does not provide support for ISO Schematron (I started to work on that at some point but the support was just started and never finished). You get the error because the test_rules.sch schema you refer is an ISO Schematron schema. If you change that to pre-ISO using the http://www.ascc.net/xml/schematron namespace then you should not get an error when setting the phase.

The NVDL implementation from oNVDL and other changes made in oNVDL were merged back into Jing at
http://code.google.com/p/jing-trang/
ISO Schematron support is one of the planned enhancements, see
http://code.google.com/p/jing-trang/issues/detail?id=23
You can vote for that by starring the issue to show your interest.

Regards,
George
George Cristian Bina
jelovirt
Posts: 84
Joined: Tue Oct 11, 2005 9:17 am
Location: Helsinki, Finland
Contact:

Re: schematron phases

Post by jelovirt »

george wrote: The NVDL implementation from oNVDL and other changes made in oNVDL were merged back into Jing...
I assume Oxygen will start using the new Jing at some point. Any information when we might see this in Oxygen?
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: schematron phases

Post by george »

We need a new Jing release first.
I have a working copy on which I merged the latest Jing into oXygen. That needs some more work as a couple of automatic tests fail but it should be just a matter of days to update it once a stable Jing release is out.

Best Regards,
George
George Cristian Bina
Post Reply