Syntax #
s.dl.term
s.dl.head.term
s.dl.head.definition
s.dl.definition
Purpose #
A definition list is a list of terms and corresponding definitions.
Here is a sample set of definitions.
IO – Input Output
FIFO – First In First Out
LIFO – Last In First Out
SQL – Structured Query Language
TTY – Teletype
In this example, the terms and definitions are in the same paragraph; you can apply the annotations s.dl.term and s.dl.definition to the appropriate spans. You will also need the annotation p.dl.entry on the entire paragraph to make the set of terms and definitions into a single definition list.
This is what your rule may look like.
Your output may look like this.
<dl> <dlentry> <dt>IO</dt> <dd>Input Output</dd> </dlentry> <dlentry> <dt>FIFO</dt> <dd>First In First Out</dd> </dlentry> <dlentry> <dt>LIFO</dt> <dd>Last In First Out</dd> </dlentry> <dlentry> <dt>SQL</dt> <dd>Structured Query Language</dd> </dlentry> <dlentry> <dt>TTY</dt> <dd>Teletype</dd> </dlentry> </dl>