Definition list with optional headings, <dlhead>

Post here questions and problems related to editing and publishing DITA content.
Jeet
Posts: 2
Joined: Fri Jun 10, 2016 9:42 am

Definition list with optional headings, <dlhead>

Post by Jeet »

I am trying to add headings on my <dl>, but I'm not getting the results by using <dlhead>. dthd & ddhd.
Im using FOP.
Code for example :

Code: Select all

<dl><dlhead><dthd>Types</dthd>
<ddhd>Views</ddhd> </dlhead>
<dlentry><dt>Type 1 </dt>
<dd>Definition Definition Definition Definition Definition Definition Definition Definition Definition Definition Definition Definition Definition Definition Definition </dd></dlentry>
<dlentry><dt>Type 2 </dt>
<dd>Definition Definition Definition Definition Definition Definition Definition Definition Definition Definition Definition Definition Definition Definition Definition </dd></dlentry>
I need "Types" and "Views" as the heading of the lists.

Little help please?

Thank you.
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Definition list with optional headings, <dlhead>

Post by radu_pisoi »

Hi,

Starting with DITA-OT 2.x, the definition list element (dl) are rendered as a table. So, the <dthd> elements will be used to generate the table headers.

If you are using oXygen 17.1 or oXygen 18.0 you can change the DITA-OT version used in publishing from Prefrences -> DITA -> DITA Open Toolkit.

If not, you can download a DITA-OT 2.x version from http://www.dita-ot.org/download and configure oXygen to use it.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jeet
Posts: 2
Joined: Fri Jun 10, 2016 9:42 am

Re: Definition list with optional headings, <dlhead>

Post by Jeet »

radu_pisoi wrote:Hi,

Starting with DITA-OT 2.x, the definition list element (dl) are rendered as a table. So, the <dthd> elements will be used to generate the table headers.

If you are using oXygen 17.1 or oXygen 18.0 you can change the DITA-OT version used in publishing from Prefrences -> DITA -> DITA Open Toolkit.

If not, you can download a DITA-OT 2.x version from http://www.dita-ot.org/download and configure oXygen to use it.

I followed your instructions and it worked.

Thank you radu_pisoi.
Post Reply