schematron phases

Issues related with the oNVDL implementation of NVDL.
oriol
Posts: 1

schematron phases

Thu Feb 26, 2009 2:41 pm

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: 2099

Re: schematron phases

Fri Feb 27, 2009 6:32 pm

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: 85
Location: Helsinki, Finland

Re: schematron phases

Tue Mar 03, 2009 3:57 pm

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: 2099

Re: schematron phases

Tue Mar 03, 2009 4:30 pm

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

Return to “oNVDL Related Issues”

Who is online

Users browsing this forum: No registered users and 0 guests