Page 1 of 1

Configuring content completion that interferes with CSS

Posted: Tue Dec 02, 2025 11:39 pm
by Vince
Hello,

Following the documentation at: https://www.oxygenxml.com/doc/versions/ ... ually.html, I define in cc_config_ext.xml :

Code: Select all

<config xmlns="http://www.oxygenxml.com/ns/ccfilter/config">
        <elementProposals path="li" rejectAttributes="class"/>
</config>
Given en existing list item :
image.png

When I insert an item :
image.png

Then the new item does not render as expected :
image.png

Looking at the CSS inspector, I see that the li element does not match the *[class~='topic/li'] selector
image.png

Expected:
image.png

I encountered thie issue in Oxygen Desktop and in Web Author.

Any workaround available ?

Thank you for your help.

Environment:
  • Oxygen XML Editor (Desktop): version 27.1
  • Oxygen XML Web Author: version 27.1
  • Custom framework

Re: Configuring content completion that interferes with CSS

Posted: Wed Dec 03, 2025 7:37 am
by Radu
Hi Vince,
The @class attribute is very important when working with DITA XML content, it usually has a default value which is used in this case to match elements in the CSS used for the Author visual editor mode.
Once you reject adding in the cc_config.xml the default @class attribute (which is not serialized in the XML) to the list item, then Oxygen stops understanding it as a DITA XML element and you get these visual rendering problems. Probably if you save and press F5 the rendering problem goes away as Oxygen reloads default @class attributes for all elements in the document.
Regards,
Radu