editing definition list (dl) in a table-like way in Author Mode?

Post here questions and problems related to editing and publishing DITA content.
katriel
Posts: 4
Joined: Wed Oct 05, 2016 1:07 pm
Contact:

editing definition list (dl) in a table-like way in Author Mode?

Post by katriel »

Hi All,
For a project, we will be rendering the definition list element (dl) as a table.

We want to allow the authors (who are used to editing the content in Excel) to create and edit content for the definition list in a table-like way.
The authors will be working in Author Mode.

Bottom line: We want the semantic benefit of definition list, without losing the columns/rows paradigm that the authors are used to.

Can you point me to sample code or examples?
Much thanks,
Katriel
MethodM.com
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: editing definition list (dl) in a table-like way in Author Mode?

Post by Radu »

Hi Katriel,

Oxygen uses CSS to render DITA XML content in the Author visual editing mode.
So you would need to customize the CSSs used for editing DITA to contain the following CSS selectors:

Code: Select all

dl{
display:table !important;
}

dlentry{
display:table-row !important;
}

dt, dd {
display:table-cell !important;
border: 1px solid black;
padding: 2px;
}
Besides modifying the existing CSSs one way to customize the CSSs is to add an alternate CSS:

https://www.oxygenxml.com/doc/versions/ ... t-CSS.html

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