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'">•</xsl:when> 35 <xsl:when test="$dingbat='copyright'">©</xsl:when> 36 <xsl:when test="$dingbat='trademark'">™</xsl:when> 37 <xsl:when test="$dingbat='trade'">™</xsl:when> 38 <xsl:when test="$dingbat='registered'">®</xsl:when> 39 <xsl:when test="$dingbat='service'">(SM)</xsl:when> 40 <xsl:when test="$dingbat='nbsp'"> </xsl:when> 41 <xsl:when test="$dingbat='ldquo'">“</xsl:when> 42 <xsl:when test="$dingbat='rdquo'">”</xsl:when> 43 <xsl:when test="$dingbat='lsquo'">‘</xsl:when> 44 <xsl:when test="$dingbat='rsquo'">’</xsl:when> 45 <xsl:when test="$dingbat='em-dash'">—</xsl:when> 46 <xsl:when test="$dingbat='mdash'">—</xsl:when> 47 <xsl:when test="$dingbat='en-dash'">–</xsl:when> 48 <xsl:when test="$dingbat='ndash'">–</xsl:when> 49 <xsl:otherwise> 50 <xsl:text>•</xsl:text> 51 </xsl:otherwise> 52 </xsl:choose> 53</xsl:template> 54 55</xsl:stylesheet> 56 57