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.
-
- 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?
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?
-
- Posts: 9528
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Content Completion - Multi Values Select for Allowed Values to an Attribute
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
Radu
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service