Page 1 of 1

Autocompletion for elements with IDREF data type

Posted: Mon Aug 20, 2018 2:36 pm
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

Re: Autocompletion for elements with IDREF data type

Posted: Mon Aug 20, 2018 4:05 pm
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

Re: Autocompletion for elements with IDREF data type

Posted: Fri Feb 22, 2019 4:41 pm
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