1 | <?xml version='1.0'?>
|
---|
2 | <!DOCTYPE xsl:stylesheet [ <!ENTITY % xsldoc.ent SYSTEM "./xsldoc.ent"> %xsldoc.ent; ]>
|
---|
3 | <!--#############################################################################
|
---|
4 | | $Id: dingbat.mod.xsl,v 1.4 2004/01/02 05:11:38 j-devenish Exp $
|
---|
5 | |- #############################################################################
|
---|
6 | | $Author: j-devenish $
|
---|
7 | + ############################################################################## -->
|
---|
8 |
|
---|
9 | <xsl:stylesheet
|
---|
10 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
11 | xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
|
---|
12 | exclude-result-prefixes="doc" version='1.0'>
|
---|
13 |
|
---|
14 | <doc:reference id="dingbat" xmlns="">
|
---|
15 | <referenceinfo>
|
---|
16 | <releaseinfo role="meta">
|
---|
17 | $Id: dingbat.mod.xsl,v 1.4 2004/01/02 05:11:38 j-devenish Exp $
|
---|
18 | </releaseinfo>
|
---|
19 | <authorgroup>
|
---|
20 | &ramon;
|
---|
21 | &james;
|
---|
22 | </authorgroup>
|
---|
23 | <copyright>
|
---|
24 | <year>2000</year><year>2001</year><year>2002</year><year>2003</year><year>2004</year>
|
---|
25 | <holder>Ramon Casellas</holder>
|
---|
26 | </copyright>
|
---|
27 | <revhistory>
|
---|
28 | <doc:revision rcasver="1.4">&rev_2003_05;</doc:revision>
|
---|
29 | </revhistory>
|
---|
30 | </referenceinfo>
|
---|
31 | <title>Dingbats <filename>dingbat.mod.xsl</filename></title>
|
---|
32 | <partintro>
|
---|
33 | <para>
|
---|
34 |
|
---|
35 | Provides some named dingbats. These should probably be incorporated
|
---|
36 | into the normal localisation mechanism, in future.
|
---|
37 |
|
---|
38 | </para>
|
---|
39 | </partintro>
|
---|
40 | </doc:reference>
|
---|
41 |
|
---|
42 | <doc:template xmlns="">
|
---|
43 | <refpurpose> Generate a &LaTeX; dingbat </refpurpose>
|
---|
44 | <doc:description>
|
---|
45 | <para>
|
---|
46 |
|
---|
47 | Chooses a &LaTeX; sequence based on the requested dingbat name.
|
---|
48 |
|
---|
49 | </para>
|
---|
50 | </doc:description>
|
---|
51 | <doc:variables>
|
---|
52 | &no_var;
|
---|
53 | </doc:variables>
|
---|
54 | <doc:params>
|
---|
55 | <variablelist>
|
---|
56 | <varlistentry>
|
---|
57 | <term>dingbat</term>
|
---|
58 | <listitem><simpara>The name of the dingbat.</simpara></listitem>
|
---|
59 | </varlistentry>
|
---|
60 | </variablelist>
|
---|
61 | </doc:params>
|
---|
62 | </doc:template>
|
---|
63 | <xsl:template name="dingbat">
|
---|
64 | <xsl:param name="dingbat">bullet</xsl:param>
|
---|
65 | <xsl:choose>
|
---|
66 | <xsl:when test="$dingbat='bullet'"> $\bullet$ </xsl:when>
|
---|
67 | <xsl:when test="$dingbat='copyright'">\copyright{}</xsl:when>
|
---|
68 | <xsl:when test="$dingbat='trademark'">\texttrademark{}</xsl:when>
|
---|
69 | <xsl:when test="$dingbat='registered'">\textregistered{}</xsl:when>
|
---|
70 | <xsl:when test="$dingbat='nbsp'">~</xsl:when>
|
---|
71 | <xsl:when test="$dingbat='ldquo'">``</xsl:when>
|
---|
72 | <xsl:when test="$dingbat='rdquo'">''</xsl:when>
|
---|
73 | <xsl:when test="$dingbat='lsquo'">`</xsl:when>
|
---|
74 | <xsl:when test="$dingbat='rsquo'">'</xsl:when>
|
---|
75 | <xsl:when test="$dingbat='em-dash'">---</xsl:when>
|
---|
76 | <xsl:when test="$dingbat='mdash'">---</xsl:when>
|
---|
77 | <xsl:when test="$dingbat='en-dash'">--</xsl:when>
|
---|
78 | <xsl:when test="$dingbat='ndash'">--</xsl:when>
|
---|
79 | <xsl:otherwise>
|
---|
80 | <xsl:text> [dingbat?] </xsl:text>
|
---|
81 | </xsl:otherwise>
|
---|
82 | </xsl:choose>
|
---|
83 | </xsl:template>
|
---|
84 |
|
---|
85 | </xsl:stylesheet>
|
---|