source: trunk/Distribution/XSL/xhtml/html.xsl@ 2

Last change on this file since 2 was 2, checked in by jkacer, 18 years ago

Added all DocBook Framework stuff:

  • DocBook DTD
  • Transformation software FOP 0.20.5 and Saxon 6
  • XSL styles
  • Rexx scripts

Also added some WarpIN-related stuff for creation of WarpIN installation packages.
This state corresponds to version 1.0.0 from November 2005, just slightly modified to carry versioning information (Rexx scripts).

File size: 4.0 KB
Line 
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">
5
6<!-- ********************************************************************
7 $Id: html.xsl,v 1.10 2005/06/24 07:20:40 xmldoc Exp $
8 ********************************************************************
9
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.
13
14 ******************************************************************** -->
15
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">
24 <xsl:if test="alt">
25 <xsl:attribute name="title">
26 <xsl:value-of select="alt"/>
27 </xsl:attribute>
28 </xsl:if>
29</xsl:template>
30
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"/>
37 </xsl:call-template>
38 </xsl:variable>
39 <xsl:if test="$conditional = 0 or $node/@id or $node/@xml:id">
40 <a id="{$id}"/>
41 </xsl:if>
42</xsl:template>
43
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"/>
50 </xsl:call-template>
51</xsl:template>
52
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"/>
59 </xsl:call-template>
60</xsl:template>
61
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"/>
66 </xsl:if>
67 <xsl:call-template name="href.target">
68 <xsl:with-param name="object" select="$object"/>
69 </xsl:call-template>
70</xsl:template>
71
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"/>
76 </xsl:call-template>
77</xsl:template>
78
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>
83 <xsl:choose>
84 <xsl:when test="$dingbat='bullet'">&#8226;</xsl:when>
85 <xsl:when test="$dingbat='copyright'">&#169;</xsl:when>
86 <xsl:when test="$dingbat='trademark'">&#8482;</xsl:when>
87 <xsl:when test="$dingbat='trade'">&#8482;</xsl:when>
88 <xsl:when test="$dingbat='registered'">&#174;</xsl:when>
89 <xsl:when test="$dingbat='service'">(SM)</xsl:when>
90 <xsl:when test="$dingbat='nbsp'">&#160;</xsl:when>
91 <xsl:when test="$dingbat='ldquo'">&#8220;</xsl:when>
92 <xsl:when test="$dingbat='rdquo'">&#8221;</xsl:when>
93 <xsl:when test="$dingbat='lsquo'">&#8216;</xsl:when>
94 <xsl:when test="$dingbat='rsquo'">&#8217;</xsl:when>
95 <xsl:when test="$dingbat='em-dash'">&#8212;</xsl:when>
96 <xsl:when test="$dingbat='mdash'">&#8212;</xsl:when>
97 <xsl:when test="$dingbat='en-dash'">&#8211;</xsl:when>
98 <xsl:when test="$dingbat='ndash'">&#8211;</xsl:when>
99 <xsl:otherwise>
100 <xsl:text>&#8226;</xsl:text>
101 </xsl:otherwise>
102 </xsl:choose>
103</xsl:template>
104
105</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.