Oxygen Web Validation Panel - Errors with XML Schema

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
kdolan09
Posts: 4
Joined: Mon Apr 28, 2025 7:11 pm

Oxygen Web Validation Panel - Errors with XML Schema

Post by kdolan09 »

I deployed my first Oxygen framework to Oxygen Web and created/opened an XML file. The Validation panel reports the following errors.
  • A schema cannot contain two global components with the same name; this schema contains two occurrences of ',abcType'.
  • Cannot resolve the name 'abcType_fn3dktizrknc9pi' to a(n) 'type definition' component.
I am not sure how to even debug this, or determine if Oxygen Web supports this, or can be configured to support this. I was not able to find anything helpful in Oxygen Web documentation or other posts. All help is greatly appreciated.

These errors cite a problem with the actual XML Schema the XML file references. If I open the same XML file in Oxygen XML Editor, these errors are not reported in validation results. If I open the XML Schema and validate it directly, these errors are not reported in validation results.

Specifically, the "abcType" that the error messages cite is defined in the XML Schema as a complexType.
  • This complexType is defined in global scope in one of the XSD files that is included by other XSD files.
  • In the same XSD file, two elements are defined in global scope, each with different names but of type abcType. The Validation panel error messages are not citing the names of these elements.
  • This complexType is redefined in the main XSD file (e.g., redefined and extended)
The XML Schema is not flat. The main XSD file includes other XSD files. These XSD files include other XSD files. And so on. Some includes are recursive. Oxygen XML Editor reports these as Warnings (e.g., abc.xsd includes itself recursively). Additionally, the XML Schema employs extension. I am not sure if any of this plays into the problem but wanted to bring it to light.
Bogdan Dumitru
Site Admin
Posts: 172
Joined: Tue Mar 20, 2018 5:28 pm

Re: Oxygen Web Validation Panel - Errors with XML Schema

Post by Bogdan Dumitru »

Hello,

Oxygen XML Web Author uses pretty much the same validation engine as Oxygen XML Editor so you should encounter the same validation errors both on Oxygen XML Editor and Oxygen XML Web Author. I see that you opened the same document in both and only encounter the validation problems in Web Author but please check that the same framework is matched in both cases; maybe you have a slightly different framework uploaded in Web Author.
To ensure that the same framework is used you can use Oxygen XML Test Server Addon that starts Web Author from Oxygen XML Editor with the frameworks that the Oxygen XML Editor uses.
At least the first validation problem should appear also in Oxygen XML Editor but in Results view.
Another idea would be to search in the XSD files for "abcType" and check each that each occurrence is valid. And also check not to import a file multiple times (either importing from a XSD file or from Document Type/Validation).
Bogdan Dumitru
http://www.oxygenxml.com
Post Reply