Page 1 of 1

[BUG] XML Schema Validation (Xerces) error but there isn't one

Posted: Tue Jan 10, 2023 12:12 pm
by larsS
Hello,
I recently upgraded to XML Editor 25.0, build 2022121306 from Windows to Ubuntu and now I get a validation error from the start which is gone after manual validation and reappears just as I start editing the document.
There are multiple occurrences of ID value 'bd70c34c5-4c27-4cb8-bf27-80121a8bb89'
I do have a custom XSD schema here the definition for the ID attribute:

Code: Select all

<xs:attribute name="id" type="xs:ID" use="required"/>
The document itself is located in an eXist-db and is opened via the data source window using the xmlrpc interface.
Let me know if I can share more informations and thank you all!

Re: [BUG] XML Schema Validation (Xerces) error but there isn't one

Posted: Tue Jan 10, 2023 4:31 pm
by tavy
Hello,

Thanks for your feedback.
There is already a similar issue on our issue tracker. It seems to be a problem when the schema is associated in the file and Default XML Schema version is set to 1.1. Is your XML Schema version 1.1 and is associated in the file?

As an workaround, if your schema is not using XML Schema version 1.1 constructs, you can change the default XML schema version to 1.0. For this you can open the Preferences dialog box (Options > Preferences) and go to XML > XML Parser > XML Schema. If your schema is using XML Schema version 1.1 constructs, you can change the default validation engine to Saxon EE (from the same option page).


Best Regards,
Octavian

Re: [BUG] XML Schema Validation (Xerces) error but there isn't one

Posted: Tue Jan 10, 2023 7:42 pm
by larsS
Hello Octavian,
thank you very much for the quick reply. Yes, the XSD schema used is set in version 1.1. Because of the use of assertions.
As a workaround or temporary fix I have enabled 'Enable honour all schema location feature' and the error no longer occurs. But it may be that some errors are not displayed because of this, therefore only temporary.
After I have tested more extensively I will give feedback.
Thank you very much.

Re: [BUG] XML Schema Validation (Xerces) error but there isn't one

Posted: Thu Feb 02, 2023 10:19 am
by Radu
Hi,

To update this thread, our latest Oxygen 25.0 minor bug fix release should have a fix for this problem:
https://www.oxygenxml.com/build_history.html#2023013006

Regards,
Radu