O'Reilly logo

DITA for Print by Leigh W. White

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Format definition lists as a list instead of a table

Output definition lists (dl) in list format rather than in the default table format.

Although the element tag dl stands for "definition list," the Open Toolkit formats dl using a table. Using a table makes it easier to render the term and its definition on the same line, and a table makes it easier to align the definitions.

However, if you really want definition lists to be formatted as lists, you can make that happen.

  1. Open tables.xsl and find the section that begins with the comment <!--Definition list-->.
  2. Edit the first template in this section, the one that processes dl. Comment out the table-related code, like this:
    <xsl:template match="*[contains(@class, ' topic/dl ')]">
       <!--<fo:table ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required