Page 1 of 1

Definition list with optional headings, <dlhead>

Posted: Fri Jun 10, 2016 10:01 am
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.

Re: Definition list with optional headings, <dlhead>

Posted: Fri Jun 10, 2016 12:20 pm
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.

Re: Definition list with optional headings, <dlhead>

Posted: Fri Jun 10, 2016 1:15 pm
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.