• Moved processing of \item[] for definition lists into the keyword element.
• Added @linebreak attribute for definition list keywords.
1 parent f4259f6 commit 91771d05528785ea2ee9db7375aec2b51fd3e5d8
Nigel Stanger authored on 6 Aug 2015
Showing 1 changed file
View
20
modules/lists.xml
 
<!-- List items for definition lists. -->
<template name="definition-item" match="item" mode="definition-list">
<common formats="/latex/xelatex/">
<xsl:text>\item[</xsl:text>
<xsl:apply-templates select="keyword|term|topic|DT|dt" />
<xsl:text>] </xsl:text>
<xsl:apply-templates select="definition|description|discourse|DD|dd" />
<xsl:call-template name="newline-internal" />
</common>
<common formats="/html/xhtml/">
</template>
<!--
Need to provide some context here as, e.g., <term> is also a standalone element.
@linebreak: If "yes", insert a line break after the item label. [default "no"]
This attribute really only makes sense for the keyword elements of definition lists.
-->
<template name="keyword" match="item/keyword|item/term|item/topic|item/DT|item/dt">
<common formats="/latex/xelatex/">
<xsl:text>\item[</xsl:text>
<xsl:apply-templates />
<xsl:text>] </xsl:text>
<xsl:if test="@linebreak">
<xsl:text>\mbox{}\newline</xsl:text>
</xsl:if>
</common>
<common formats="/html/xhtml/">
<strong><xsl:apply-templates /></strong>
</common>
</template>
<xsl:if test="@linebreak">
<br />
</xsl:if>
</common>
</template>
<!--
Need to provide some context here as, e.g., <description> is also used within <image>.
-->