1<?xml version='1.0'?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                version='1.0'>
4
5<!-- ********************************************************************
6     $Id$
7     ********************************************************************
8
9     This file is part of the XSL DocBook Stylesheet distribution.
10     See /README or http://nwalsh.com/docbook/xsl/ for copyright
11     and other information.
12
13     ******************************************************************** -->
14
15<xsl:template name="dingbat">
16  <xsl:param name="dingbat">bullet</xsl:param>
17  <xsl:choose>
18    <xsl:when test="false() and $using.chunker != 0">
19      <dingbat name="{$dingbat}"/>
20    </xsl:when>
21    <xsl:otherwise>
22      <xsl:call-template name="dingbat.characters">
23        <xsl:with-param name="dingbat" select="$dingbat"/>
24      </xsl:call-template>
25    </xsl:otherwise>
26  </xsl:choose>
27</xsl:template>
28
29<xsl:template name="dingbat.characters">
30  <!-- now that I'm using the real serializer, all that dingbat malarky -->
31  <!-- isn't necessary anymore... -->
32  <xsl:param name="dingbat">bullet</xsl:param>
33  <xsl:choose>
34    <xsl:when test="$dingbat='bullet'">&#x2022;</xsl:when>
35    <xsl:when test="$dingbat='copyright'">&#x00A9;</xsl:when>
36    <xsl:when test="$dingbat='trademark'">&#x2122;</xsl:when>
37    <xsl:when test="$dingbat='trade'">&#x2122;</xsl:when>
38    <xsl:when test="$dingbat='registered'">&#x00AE;</xsl:when>
39    <xsl:when test="$dingbat='service'">(SM)</xsl:when>
40    <xsl:when test="$dingbat='nbsp'">&#x00A0;</xsl:when>
41    <xsl:when test="$dingbat='ldquo'">&#x201C;</xsl:when>
42    <xsl:when test="$dingbat='rdquo'">&#x201D;</xsl:when>
43    <xsl:when test="$dingbat='lsquo'">&#x2018;</xsl:when>
44    <xsl:when test="$dingbat='rsquo'">&#x2019;</xsl:when>
45    <xsl:when test="$dingbat='em-dash'">&#x2014;</xsl:when>
46    <xsl:when test="$dingbat='mdash'">&#x2014;</xsl:when>
47    <xsl:when test="$dingbat='en-dash'">&#x2013;</xsl:when>
48    <xsl:when test="$dingbat='ndash'">&#x2013;</xsl:when>
49    <xsl:otherwise>
50      <xsl:text>&#x2022;</xsl:text>
51    </xsl:otherwise>
52  </xsl:choose>
53</xsl:template>
54
55</xsl:stylesheet>
56
57