ISO schematron & schema-aware validation
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 80
- Joined: Fri Apr 23, 2004 5:24 pm
- Location: Durham, NC, USA
ISO schematron & schema-aware validation
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
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.

John
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Re: ISO schematron & schema-aware validation
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
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service