1 <?xml version="1.0" encoding="US-ASCII"?>
2 <!--This file was created automatically by html2xhtml-->
3 <!--from the HTML stylesheets. Do not edit this file.-->
4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
6 <!-- ********************************************************************
8 ********************************************************************
10 This file is part of the XSL DocBook Stylesheet distribution.
11 See ../README or http://nwalsh.com/docbook/xsl/ for copyright
12 and other information.
14 ******************************************************************** -->
16 <!-- The generate.html.title template is currently used for generating HTML -->
17 <!-- "title" attributes for some inline elements only, but not for any -->
18 <!-- block elements. It is called in eleven places in the inline.xsl -->
19 <!-- file. But it's called by all the inline.* templates (e.g., -->
20 <!-- inline.boldseq), which in turn are called by other (element) -->
21 <!-- templates, so it results, currently, in supporting generation of the -->
22 <!-- HTML "title" attribute for a total of about 92 elements. -->
23 <xsl:template name="generate.html.title">
25 <xsl:attribute name="title">
26 <xsl:value-of select="alt"/>
31 <xsl:template name="anchor">
32 <xsl:param name="node" select="."/>
33 <xsl:param name="conditional" select="1"/>
34 <xsl:variable name="id">
35 <xsl:call-template name="object.id">
36 <xsl:with-param name="object" select="$node"/>
39 <xsl:if test="$conditional = 0 or $node/@id or $node/@xml:id">
44 <xsl:template name="href.target.uri">
45 <xsl:param name="context" select="."/>
46 <xsl:param name="object" select="."/>
47 <xsl:text>#</xsl:text>
48 <xsl:call-template name="object.id">
49 <xsl:with-param name="object" select="$object"/>
53 <xsl:template name="href.target">
54 <xsl:param name="context" select="."/>
55 <xsl:param name="object" select="."/>
56 <xsl:text>#</xsl:text>
57 <xsl:call-template name="object.id">
58 <xsl:with-param name="object" select="$object"/>
62 <xsl:template name="href.target.with.base.dir">
63 <xsl:param name="object" select="."/>
64 <xsl:if test="$manifest.in.base.dir = 0">
65 <xsl:value-of select="$base.dir"/>
67 <xsl:call-template name="href.target">
68 <xsl:with-param name="object" select="$object"/>
72 <xsl:template name="dingbat">
73 <xsl:param name="dingbat">bullet</xsl:param>
74 <xsl:call-template name="dingbat.characters">
75 <xsl:with-param name="dingbat" select="$dingbat"/>
79 <xsl:template name="dingbat.characters">
80 <!-- now that I'm using the real serializer, all that dingbat malarky -->
81 <!-- isn't necessary anymore... -->
82 <xsl:param name="dingbat">bullet</xsl:param>
84 <xsl:when test="$dingbat='bullet'">•</xsl:when>
85 <xsl:when test="$dingbat='copyright'">©</xsl:when>
86 <xsl:when test="$dingbat='trademark'">™</xsl:when>
87 <xsl:when test="$dingbat='trade'">™</xsl:when>
88 <xsl:when test="$dingbat='registered'">®</xsl:when>
89 <xsl:when test="$dingbat='service'">(SM)</xsl:when>
90 <xsl:when test="$dingbat='nbsp'"> </xsl:when>
91 <xsl:when test="$dingbat='ldquo'">“</xsl:when>
92 <xsl:when test="$dingbat='rdquo'">”</xsl:when>
93 <xsl:when test="$dingbat='lsquo'">‘</xsl:when>
94 <xsl:when test="$dingbat='rsquo'">’</xsl:when>
95 <xsl:when test="$dingbat='em-dash'">—</xsl:when>
96 <xsl:when test="$dingbat='mdash'">—</xsl:when>
97 <xsl:when test="$dingbat='en-dash'">–</xsl:when>
98 <xsl:when test="$dingbat='ndash'">–</xsl:when>
100 <xsl:text>•</xsl:text>