Page 1 of 1

schematron phases

Posted: Thu Feb 26, 2009 2:41 pm
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

Re: schematron phases

Posted: Fri Feb 27, 2009 6:32 pm
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

Re: schematron phases

Posted: Tue Mar 03, 2009 3:57 pm
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?

Re: schematron phases

Posted: Tue Mar 03, 2009 4:30 pm
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