2 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
5 <xsl:import href=
"file:///usr/share/xsl/docbook/html/docbook.xsl"/>
7 <!-- override the xsl:output element to include a version attribute
8 so it generates a doctype declaration -->
9 <xsl:output method=
"html"
14 <!-- remove the colspan attribute from the tr elements -->
15 <xsl:template match=
"qandadiv">
16 <xsl:variable name=
"preamble" select=
"*[name(.) != 'title'
17 and name(.) != 'titleabbrev'
18 and name(.) != 'qandadiv'
19 and name(.) != 'qandaentry']"/>
23 <td align=
"left" valign=
"top" colspan=
"2">
24 <xsl:call-template name=
"anchor">
25 <xsl:with-param name=
"conditional" select=
"0"/>
27 <xsl:apply-templates select=
"title"/>
32 <xsl:variable name=
"toc.params">
33 <xsl:call-template name=
"find.path.params">
34 <xsl:with-param name=
"table" select=
"normalize-space($generate.toc)"/>
37 <xsl:if test=
"contains($toc.params, 'toc')">
39 <td align=
"left" valign=
"top" colspan=
"2">
40 <xsl:call-template name=
"process.qanda.toc"/>
44 <xsl:if test=
"$preamble">
46 <td align=
"left" valign=
"top" colspan=
"2">
47 <xsl:apply-templates select=
"$preamble"/>
51 <xsl:apply-templates select=
"qandadiv|qandaentry"/>