dl dt tags to be rendered as table in webhelp output

Post here questions and problems related to editing and publishing DITA content.
ejsumi
Posts: 11
Joined: Wed Dec 18, 2019 9:20 am

dl dt tags to be rendered as table in webhelp output

Post by ejsumi »

Hi,

We have a set of dl dt elements, which we want to render as a table in Webhelp (Oxygen 23) output. How can we achieve the same?

Thanks,
Sumi
alin
Site Admin
Posts: 268
Joined: Thu Dec 24, 2009 11:21 am

Re: dl dt tags to be rendered as table in webhelp output

Post by alin »

Hello,

You can change the HTML content generated for a DITA definition list using a custom XSLT Extension.
I have created a sample Publishing Template that exemplifies this scenario.
Note: This example assumes that the all dlentries in a dl have the same number of dds and dts. This is required in order to generate a balanced table that has the same number of cells on all rows.
You can find the Publishing Template here: https://github.com/oxygenxml/oxygen-pub ... l-as-table

Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
chrispitude
Posts: 907
Joined: Thu May 02, 2019 2:32 pm

Re: dl dt tags to be rendered as table in webhelp output

Post by chrispitude »

Hi Alin,

This is pretty cool! Thank you for sharing it.

We would probably tie the conversion to some @outputclass value in the DITA so it can be selectively used.
Post Reply