solving conflicting ID-types in RNG without disabling content-completeion?

This should cover W3C XML Schema, Relax NG and DTD related problems.
bernardusgui
Posts: 18
Joined: Thu Oct 18, 2018 11:45 am

solving conflicting ID-types in RNG without disabling content-completeion?

Post by bernardusgui » Thu Mar 04, 2021 12:02 pm

In Oxygen 23 I am editing TEI documents. I'm introducing a new elements in a new namespace via a customization of the TEI schema. While trying to use this new schema (RNG XML format), I've stumbled upon the problem well-described by Syd Bauman at https://journals.openedition.org/jtei/2573#annexe regarding the error
conflicting ID-types for attribute "id" from namespace "http://www.w3.org/XML/1998/namespace" of element...
Following Bauman's suggestion, I un-checked the “Check ID/IDREF” box in Oxygen > Preferences> > > RELAX NG. While this solves the immediate problem of the RNG schema being valid, it has the consequence of disabling the content completion/lists of values for attributes while editing the dependant TEI documents in Oxygen.

Are there other solutions, hacks, or work-arounds to solve this? The attribute content suggestion functionality Oxygen provides is crucial to our workflow...

Thanks in advance for any advice.

Radu
Posts: 7399
Joined: Fri Jul 09, 2004 5:18 pm

Re: solving conflicting ID-types in RNG without disabling content-completeion?

Post by Radu » Thu Mar 04, 2021 2:20 pm

Hi,

Maybe you can make changes to the custom RNG file to avoid that validation error, like my colleague Alex did in this older TEI issue:
https://github.com/TEIC/oxygen-tei/issues/7

This will allow you to add back the ID/IDREF checking making Oxygen's validation and content completion work again.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

bernardusgui
Posts: 18
Joined: Thu Oct 18, 2018 11:45 am

Re: solving conflicting ID-types in RNG without disabling content-completeion?

Post by bernardusgui » Thu Mar 04, 2021 11:35 pm

I have no problem trying a patch on the RNG. Thanks for the tip - we'll see how it goes!

bernardusgui
Posts: 18
Joined: Thu Oct 18, 2018 11:45 am

Re: solving conflicting ID-types in RNG without disabling content-completeion?

Post by bernardusgui » Fri Mar 05, 2021 1:46 am

FYI - adding the namespace declarations directly into the RNG file worked. Hopefully the folks at TEI-C will fix the problem at source (in customization) but this is a clean patch. Thanks!

Radu
Posts: 7399
Joined: Fri Jul 09, 2004 5:18 pm

Re: solving conflicting ID-types in RNG without disabling content-completeion?

Post by Radu » Fri Mar 05, 2021 8:55 am

Hi,

I'm glad you found a solution for your problem.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply