ISO schematron & schema-aware validation

This should cover W3C XML Schema, Relax NG and DTD related problems.
madde001
Posts: 80
Location: Durham, NC, USA

ISO schematron & schema-aware validation

Thu Oct 01, 2009 10:30 pm

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

Re: ISO schematron & schema-aware validation

Fri Oct 02, 2009 10:18 am

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
Location: Durham, NC, USA

Re: ISO schematron & schema-aware validation

Fri Oct 02, 2009 3:15 pm

Thanks, George. Now it works. 8)

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 0 guests