Framework - not the same validation
Post here questions and problems related to oXygen frameworks/document types.
Framework - not the same validation
Hi,
I've created a .framework file containing in the field schemaDescriptor the path to an .xsd file.
When I open in Oxygen 17 a document (without associating the previous framework) and I associate the same .xsd file, there is no error when I validate the document (I get a green square).
But, when I associate the previous framework and when I open the same file (which of course match this framework), I get valdiation errors.
How can the validation errors list be different ? Are there options to change the way the xsd is loaded or the way the validation is done ?
Thanks for your help,
Johann
I've created a .framework file containing in the field schemaDescriptor the path to an .xsd file.
When I open in Oxygen 17 a document (without associating the previous framework) and I associate the same .xsd file, there is no error when I validate the document (I get a green square).
But, when I associate the previous framework and when I open the same file (which of course match this framework), I get valdiation errors.
How can the validation errors list be different ? Are there options to change the way the xsd is loaded or the way the validation is done ?
Thanks for your help,
Johann
Re: Framework - not the same validation
Dear Johann,
Please see some answers below:
Unfortunately I do not have enough details about what the reported errors are. Do the reported errors make sense?
Do you use an XML catalog which might possibly re-direct the reference to the schema to another XML Schema with slightly different content?
If you open the XML Document, you can use the toolbar "Open Associated Schema" action to see from where the schema used for validation is loaded.
Regards,
Radu
Please see some answers below:
That schema you associate in the framework is only used when the XML does not implicitly refer to some other schema.I've created a .framework file containing in the field schemaDescriptor the path to an .xsd file.
How exactly do you associate the XML Schema? By setting the xsi:schemaLocation attribute on the root element?When I open in Oxygen 17 a document (without associating the previous framework) and I associate the same .xsd file, there is no error when I validate the document (I get a green square).
So in this case does the opened XML file refer directly to the XML schema using the xsi:schemaLocation attribute? If so, the schema you specified in the framework configuration should be ignored.But, when I associate the previous framework and when I open the same file (which of course match this framework), I get validation errors.
Do you use XML Schema version 1.0 or the experimental 1.1?How can the validation errors list be different ? Are there options to change the way the xsd is loaded or the way the validation is done
Unfortunately I do not have enough details about what the reported errors are. Do the reported errors make sense?
Do you use an XML catalog which might possibly re-direct the reference to the schema to another XML Schema with slightly different content?
If you open the XML Document, you can use the toolbar "Open Associated Schema" action to see from where the schema used for validation is loaded.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Framework - not the same validation
Hi Radu,
Thanks a lot for your responses. They enabled me to succeed in finding what was wrong.
I did not get the same validation errors list between an XML file using xsi:schemaLocation and the same XML file using a framework. The difference and the error was located in the XML catalog I use in the framework. This catalog uses uriSuffix elements which incorrectly redirected included XSD schema...
Thanks again,
Johann
Thanks a lot for your responses. They enabled me to succeed in finding what was wrong.
I did not get the same validation errors list between an XML file using xsi:schemaLocation and the same XML file using a framework. The difference and the error was located in the XML catalog I use in the framework. This catalog uses uriSuffix elements which incorrectly redirected included XSD schema...
Thanks again,
Johann
Return to “SDK-API, Frameworks - Document Types”
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