Page 1 of 1

Unwanted incorrect xml:id attributes being inserted

Posted: Mon Feb 10, 2025 8:20 pm
by martindholmes
When we have a RELAXNG schema that prescribes a mandatory xml:id attribute on an element, when we type an angle bracket, get a suggestion for the element, and accept the suggestion, the structure that is inserted includes a bogus made-up xml:id attribute value. We didn't ask for this and we don't want it -- is it some kind of AI thing? How can we turn it off? We can't find any setting in the preferences that relates to this.

Re: Unwanted incorrect xml:id attributes being inserted

Posted: Tue Feb 11, 2025 1:52 pm
by tavy
Hello,
Thanks for the feedback.

Starting with Oxygen version 26.1, when an ID-type attribute is inserted using the Content Completion Assistant, a unique value is automatically generated for it. If you don't want to insert the attribute automatically, you can deactivate the "Insert the required attributes" option. To do this, go to Options > Preferences > Editor > Content Completion options page.

You can read more about this in our user manual:
https://www.oxygenxml.com/doc/versions/ ... attributes

Best Regards,
Octavian