ISO schematron & schema-aware validation

This should cover W3C XML Schema, Relax NG and DTD related problems.
madde001
Posts: 80
Joined: Fri Apr 23, 2004 5:24 pm
Location: Durham, NC, USA

ISO schematron & schema-aware validation

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

Re: ISO schematron & schema-aware validation

Post 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
George Cristian Bina
madde001
Posts: 80
Joined: Fri Apr 23, 2004 5:24 pm
Location: Durham, NC, USA

Re: ISO schematron & schema-aware validation

Post by madde001 »

Thanks, George. Now it works. 8)
Post Reply