Page 1 of 1
dl dt tags to be rendered as table in webhelp output
Posted: Thu Jan 19, 2023 7:03 am
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
Re: dl dt tags to be rendered as table in webhelp output
Posted: Fri Jan 20, 2023 1:38 pm
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
Re: dl dt tags to be rendered as table in webhelp output
Posted: Fri Jan 20, 2023 2:52 pm
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.