| 1 |
<?xml version='1.0'?> |
| 2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> |
| 3 |
|
| 4 |
<!--############################################################################ |
| 5 |
XSLT Stylesheet DocBook -> LaTeX |
| 6 |
############################################################################ --> |
| 7 |
|
| 8 |
<xsl:template name="dingbat"> |
| 9 |
<xsl:param name="dingbat">bullet</xsl:param> |
| 10 |
<xsl:call-template name="dingbat.characters"> |
| 11 |
<xsl:with-param name="dingbat" select="$dingbat"/> |
| 12 |
</xsl:call-template> |
| 13 |
</xsl:template> |
| 14 |
|
| 15 |
<xsl:template name="dingbat.characters"> |
| 16 |
<xsl:param name="dingbat">bullet</xsl:param> |
| 17 |
<xsl:choose> |
| 18 |
<xsl:when test="$dingbat='bullet'"> $\bullet$ </xsl:when> |
| 19 |
<!-- \textnormal to prevent from latex/3420 bug in bold environment --> |
| 20 |
<xsl:when test="$dingbat='copyright'">\textnormal{\copyright}</xsl:when> |
| 21 |
<xsl:when test="$dingbat='registered'">\textnormal{\textregistered}</xsl:when> |
| 22 |
<xsl:when test="$dingbat='trademark'">\texttrademark{}</xsl:when> |
| 23 |
<xsl:when test="$dingbat='nbsp'"> </xsl:when> |
| 24 |
<xsl:when test="$dingbat='ldquo'">"</xsl:when> |
| 25 |
<xsl:when test="$dingbat='rdquo'">"</xsl:when> |
| 26 |
<xsl:when test="$dingbat='lsquo'">'</xsl:when> |
| 27 |
<xsl:when test="$dingbat='rsquo'">'</xsl:when> |
| 28 |
<xsl:when test="$dingbat='em-dash'">—</xsl:when> |
| 29 |
<xsl:when test="$dingbat='mdash'">—</xsl:when> |
| 30 |
<xsl:when test="$dingbat='en-dash'">–</xsl:when> |
| 31 |
<xsl:when test="$dingbat='ndash'">–</xsl:when> |
| 32 |
<xsl:otherwise> |
| 33 |
<xsl:text> [dingbat?] </xsl:text> |
| 34 |
</xsl:otherwise> |
| 35 |
</xsl:choose> |
| 36 |
</xsl:template> |
| 37 |
|
| 38 |
</xsl:stylesheet> |