| |
---|
| | |
---|
| | <!-- List items for definition lists. --> |
---|
| | <template name="definition-item" match="item" mode="definition-list"> |
---|
| | <common formats="/latex/xelatex/"> |
---|
| | <xsl:apply-templates select="keyword|term|topic|DT|dt" /> |
---|
| | <xsl:apply-templates select="definition|description|discourse|DD|dd" /> |
---|
| | <xsl:apply-templates select="keyword|term|topic|DT|dt" mode="definition-list" /> |
---|
| | <xsl:apply-templates select="definition|description|discourse|DD|dd" mode="definition-list" /> |
---|
| | <xsl:call-template name="newline-internal" /> |
---|
| | </common> |
---|
| | <common formats="/html/xhtml/"> |
---|
| | <!-- |
---|
| |
---|
| | </common> |
---|
| | </template> |
---|
| | |
---|
| | <!-- |
---|
| | Need to provide some context here as, e.g., <term> is also a standalone element. |
---|
| | We need to use a mode 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"> |
---|
| | <template name="keyword" match="keyword|term|topic|DT|dt" mode="definition-list"> |
---|
| | <common formats="/latex/xelatex/"> |
---|
| | <xsl:text>\item[</xsl:text> |
---|
| | <xsl:apply-templates /> |
---|
| | <xsl:text>] </xsl:text> |
---|
| |
---|
| | |
---|
| | <!-- |
---|
| | Need to provide some context here as, e.g., <description> is also used within <image>. |
---|
| | --> |
---|
| | <template name="definition" match="item/definition|item/description|item/discourse|item/DD|item/dd"> |
---|
| | <template name="definition" match="definition|description|discourse|DD|dd" mode="definition-list"> |
---|
| | <common> |
---|
| | <xsl:apply-templates /> |
---|
| | </common> |
---|
| | </template> |
---|
|