Page 1 of 1

ISO schematron & schema-aware validation

Posted: Thu Oct 01, 2009 10:30 pm
by madde001
Hi guys,

I've gotten confused about how to set up RelaxNG + ISO Schematron validation with schema-aware processor.

When Preferences>XML>XML Parser>ISO Schematron>Use Saxon SA/EE is checked, attempt to validate an instance gives the "ISO Schematron (XSLT 2.0)] Cannot validate <<document-root-element>>: No element declaration available" error. Disappears when the option is unchecked.

Obviously, Saxon is looking for the document schema to use with the Schematron transform.

But where and how do I tell Saxon where it is? Is there some declaration that I didn't put in the Schematron schema? In the document instance? I'm lost. :? Help!

John

Re: ISO schematron & schema-aware validation

Posted: Fri Oct 02, 2009 10:18 am
by george
Hi John,

The default options in oXygen for Saxon schema aware is to apply strict validation on the input. You need to change them to lax validation. See Options->Preferences -- XML / XSLT-FO-XQuery / XSLT / Saxon / Saxon-SA (or HE/PE/EE in beta 11) -- make sure you have "Lax schema validation (-vlax)" selected.

Best Regards,
George

Re: ISO schematron & schema-aware validation

Posted: Fri Oct 02, 2009 3:15 pm
by madde001
Thanks, George. Now it works. 8)