1<?xml version='1.0'?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" 4 exclude-result-prefixes="doc" 5 version='1.0'> 6 7<xsl:output method="html" 8 encoding="ISO-8859-1" 9 indent="no"/> 10 11<!-- ******************************************************************** 12 $Id$ 13 ******************************************************************** 14 15 This file is part of the XSL DocBook Stylesheet distribution. 16 See /README or http://nwalsh.com/docbook/xsl/ for copyright 17 and other information. 18 19 ******************************************************************** --> 20 21<!-- ==================================================================== --> 22 23<xsl:include href="/VERSION"/> 24<xsl:include href="param.xsl"/> 25<xsl:include href="/lib/lib.xsl"/> 26<xsl:include href="/common/l10n.xsl"/> 27<xsl:include href="/common/common.xsl"/> 28<xsl:include href="/common/labels.xsl"/> 29<xsl:include href="/common/titles.xsl"/> 30<xsl:include href="/common/subtitles.xsl"/> 31<xsl:include href="/common/gentext.xsl"/> 32<xsl:include href="autotoc.xsl"/> 33<xsl:include href="lists.xsl"/> 34<xsl:include href="callout.xsl"/> 35<xsl:include href="verbatim.xsl"/> 36<xsl:include href="graphics.xsl"/> 37<xsl:include href="xref.xsl"/> 38<xsl:include href="formal.xsl"/> 39<xsl:include href="table.xsl"/> 40<xsl:include href="sections.xsl"/> 41<xsl:include href="inline.xsl"/> 42<xsl:include href="footnote.xsl"/> 43<xsl:include href="html.xsl"/> 44<xsl:include href="info.xsl"/> 45<xsl:include href="keywords.xsl"/> 46<xsl:include href="division.xsl"/> 47<xsl:include href="toc.xsl"/> 48<xsl:include href="index.xsl"/> 49<xsl:include href="refentry.xsl"/> 50<xsl:include href="math.xsl"/> 51<xsl:include href="admon.xsl"/> 52<xsl:include href="component.xsl"/> 53<xsl:include href="biblio.xsl"/> 54<xsl:include href="glossary.xsl"/> 55<xsl:include href="block.xsl"/> 56<xsl:include href="qandaset.xsl"/> 57<xsl:include href="synop.xsl"/> 58<xsl:include href="titlepage.xsl"/> 59<xsl:include href="titlepage.templates.xsl"/> 60<xsl:include href="pi.xsl"/> 61 62<!-- ==================================================================== --> 63 64<xsl:template match="*"> 65 <xsl:message> 66 <xsl:text>No template matches </xsl:text> 67 <xsl:value-of select="name(.)"/> 68 <xsl:text>.</xsl:text> 69 </xsl:message> 70 71 <font color="red"> 72 <xsl:text><</xsl:text> 73 <xsl:value-of select="name(.)"/> 74 <xsl:text>></xsl:text> 75 <xsl:apply-templates/> 76 <xsl:text></</xsl:text> 77 <xsl:value-of select="name(.)"/> 78 <xsl:text>></xsl:text> 79 </font> 80</xsl:template> 81 82<xsl:template match="text()"> 83 <xsl:value-of select="."/> 84</xsl:template> 85 86<xsl:template name="head.content"> 87 <xsl:param name="node" select="."/> 88 89 <title> 90 <xsl:apply-templates select="$node" mode="object.title.markup.textonly"/> 91 </title> 92 93 <xsl:if test="$html.stylesheet"> 94 <link rel="stylesheet" 95 href="{$html.stylesheet}" 96 type="{$html.stylesheet.type}"/> 97 </xsl:if> 98 99 <xsl:if test="$link.mailto.url != ''"> 100 <link rev="made" 101 href="{$link.mailto.url}"/> 102 </xsl:if> 103 104 <xsl:if test="$html.base != ''"> 105 <base href="{$html.base}"/> 106 </xsl:if> 107 108 <meta name="generator" content="DocBook XSL Stylesheets V{$VERSION}"/> 109 110 <xsl:apply-templates select="." mode="head.keywords.content"/> 111</xsl:template> 112 113<!-- ============================================================ --> 114 115<xsl:template match="*" mode="head.keywords.content"> 116 <xsl:apply-templates select="chapterinfo/keywordset" mode="html.header"/> 117 <xsl:apply-templates select="appendixinfo/keywordset" mode="html.header"/> 118 <xsl:apply-templates select="prefaceinfo/keywordset" mode="html.header"/> 119 <xsl:apply-templates select="bookinfo/keywordset" mode="html.header"/> 120 <xsl:apply-templates select="setinfo/keywordset" mode="html.header"/> 121 <xsl:apply-templates select="articleinfo/keywordset" mode="html.header"/> 122 <xsl:apply-templates select="artheader/keywordset" mode="html.header"/> 123 <xsl:apply-templates select="sect1info/keywordset" mode="html.header"/> 124 <xsl:apply-templates select="sect2info/keywordset" mode="html.header"/> 125 <xsl:apply-templates select="sect3info/keywordset" mode="html.header"/> 126 <xsl:apply-templates select="sect4info/keywordset" mode="html.header"/> 127 <xsl:apply-templates select="sect5info/keywordset" mode="html.header"/> 128 <xsl:apply-templates select="refsect1info/keywordset" mode="html.header"/> 129 <xsl:apply-templates select="refsect2info/keywordset" mode="html.header"/> 130 <xsl:apply-templates select="refsect3info/keywordset" mode="html.header"/> 131 <xsl:apply-templates select="bibliographyinfo/keywordset" mode="html.header"/> 132 <xsl:apply-templates select="glossaryinfo/keywordset" mode="html.header"/> 133 <xsl:apply-templates select="indexinfo/keywordset" mode="html.header"/> 134 <xsl:apply-templates select="refentryinfo/keywordset" mode="html.header"/> 135 <xsl:apply-templates select="partinfo/keywordset" mode="html.header"/> 136 <xsl:apply-templates select="referenceinfo/keywordset" mode="html.header"/> 137 <xsl:apply-templates select="docinfo/keywordset" mode="html.header"/> 138 139 <xsl:if test="$inherit.keywords != 0 140 and parent::*"> 141 <xsl:apply-templates select="parent::*" mode="head.keywords.content"/> 142 </xsl:if> 143</xsl:template> 144 145<!-- ============================================================ --> 146 147<xsl:template name="user.head.content"> 148 <xsl:param name="node" select="."/> 149</xsl:template> 150 151<xsl:template name="user.header.navigation"> 152 <xsl:param name="node" select="."/> 153</xsl:template> 154 155<xsl:template name="user.header.content"> 156 <xsl:param name="node" select="."/> 157</xsl:template> 158 159<xsl:template name="user.footer.content"> 160 <xsl:param name="node" select="."/> 161</xsl:template> 162 163<xsl:template name="user.footer.navigation"> 164 <xsl:param name="node" select="."/> 165</xsl:template> 166 167<xsl:template match="/"> 168 <xsl:choose> 169 <xsl:when test="$rootid != ''"> 170 <xsl:choose> 171 <xsl:when test="count(id($rootid)) = 0"> 172 <xsl:message terminate="yes"> 173 <xsl:text>ID '</xsl:text> 174 <xsl:value-of select="$rootid"/> 175 <xsl:text>' not found in document.</xsl:text> 176 </xsl:message> 177 </xsl:when> 178 <xsl:otherwise> 179 <xsl:apply-templates select="id($rootid)" mode="process.root"/> 180 </xsl:otherwise> 181 </xsl:choose> 182 </xsl:when> 183 <xsl:otherwise> 184 <xsl:apply-templates select="/" mode="process.root"/> 185 </xsl:otherwise> 186 </xsl:choose> 187</xsl:template> 188 189<xsl:template match="*" mode="process.root"> 190 <xsl:variable name="doc" select="self::*"/> 191 <html> 192 <head> 193 <xsl:call-template name="head.content"> 194 <xsl:with-param name="node" select="$doc"/> 195 </xsl:call-template> 196 <xsl:call-template name="user.head.content"> 197 <xsl:with-param name="node" select="$doc"/> 198 </xsl:call-template> 199 </head> 200 <body xsl:use-attribute-sets="body.attrs"> 201 <xsl:call-template name="user.header.content"> 202 <xsl:with-param name="node" select="$doc"/> 203 </xsl:call-template> 204 <xsl:apply-templates select="."/> 205 <xsl:call-template name="user.footer.content"> 206 <xsl:with-param name="node" select="$doc"/> 207 </xsl:call-template> 208 </body> 209 </html> 210</xsl:template> 211 212<!-- ==================================================================== --> 213 214</xsl:stylesheet> 215