Autocompletion for elements with IDREF data type

Oxygen general issues.
andreas_tai
Posts: 4
Joined: Fri Nov 25, 2016 1:27 pm

Autocompletion for elements with IDREF data type

Post by andreas_tai »

We have the following sample structucture:

Code: Select all


<test>
<author>
<ID>Cicero</ID>
<City>Rome</City>
</author>
<book>
<author>
<IDREF>Cicero</IDREF>
</author>
</book>
</test>
We apply an XML Schema where the element ID is of type xs:ID and the element IDREF has the type xs:IDREF.

If attributes are defined with types xs:ID and xs:IDREF the auto-completion in Oxygen works fine and you can select for the attribute with type xs:IDREF the values in the document that are of type xs:ID. If this is done with elements it does not work. Did I oversee anything or is there a reason why this is restricted to attributes?

Many thanks,

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

Re: Autocompletion for elements with IDREF data type

Post by Radu »

Hi Andreas,

Indeed I tested and right now Oxygen does not properly gather ID values defined inside element text content. This has never worked in Oxygen and you are the first one reporting it so probably there are not that many people using ID/IDREFs with element values.
I think we can make this work though, I'll add an internal issue for it. The next Oxygen release is at the beginning of 2019 and I'll update this forum thread when a fix is available.
If this you want to work with this sooner I can provide you with a beta kit if this impedes your work.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

Re: Autocompletion for elements with IDREF data type

Post by Radu »

Hi,

Just to update this thread, we released Oxygen 21 and it now supports auto completion in IDREF elements for XML Schema.

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