Page 1 of 1

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

Posted: Thu Mar 04, 2021 12:02 pm
by bernardusgui
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.

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

Posted: Thu Mar 04, 2021 2:20 pm
by Radu
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

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

Posted: Thu Mar 04, 2021 11:35 pm
by bernardusgui
I have no problem trying a patch on the RNG. Thanks for the tip - we'll see how it goes!

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

Posted: Fri Mar 05, 2021 1:46 am
by bernardusgui
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!

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

Posted: Fri Mar 05, 2021 8:55 am
by Radu
Hi,

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

Regards,
Radu