Content Completion - Multi Values Select for Allowed Values to an Attribute

Questions about XML that are not covered by the other forums should go here.
janani_kalyan
Posts: 1
Joined: Wed Sep 24, 2025 11:16 pm

Content Completion - Multi Values Select for Allowed Values to an Attribute

Post by janani_kalyan »

Hi,

Following the instructions in this article - https://www.oxygenxml.com/doc/versions/ ... osals.html

<valueProposals path="@type" editable="onlyAllowedItems">
<items>
<item value="stanza" listValue="true"/>
<item value="refrain" listValue="true"/>
</items>
</valueProposals>

Per the article, The <item> element can have a @listValue attribute, which can be set to true if you want those items to be part of a list attribute value (such as attr="item1 item2").
The content completion works as expected in text, but in author mode attributes window/popup, it allows only single select of the value. How can I have content completion where in the Author mode, I can have a controlled list, but it allows multi-selection of values with space as delimiter?
Radu
Posts: 9528
Joined: Fri Jul 09, 2004 5:18 pm

Re: Content Completion - Multi Values Select for Allowed Values to an Attribute

Post by Radu »

Hi,

This is quite tricky to get right, what we do when you start editing the value of the attribute in the Attributes view is that instead of choosing a value from the combo box list which shows up you can press Ctrl-Space and have another content completion list show up, choose from that, then again Ctrl-Space and choose a second value and so on.
Some people who want to make the editing of certain attributes more straight forward in the Author mode modify the CSS used for visual editing and include form controls like "multipleCheckBox":
https://www.oxygenxml.com/doc/versions/ ... ditor.html
or pop-up form control:
https://www.oxygenxml.com/doc/versions/ ... ditor.html

The popup form control looks visually like my attached screenshot
Screenshot 2025-09-25 at 08.21.16.png
Regards,
Radu
You do not have the required permissions to view the files attached to this post.
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply