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

This should cover W3C XML Schema, Relax NG and DTD related problems.
larsS
Posts: 18
Joined: Mon Sep 13, 2021 10:41 am

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

Post 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!
tavy
Posts: 365
Joined: Thu Jul 01, 2004 12:29 pm

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

Post 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
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
larsS
Posts: 18
Joined: Mon Sep 13, 2021 10:41 am

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

Post 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.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply