Current BE-LFS (but w/ GCC 3.3.3) merged -> 6.0 branch
[linux_from_scratch.git] / FAQ-OBSOLETE / lfs.xsl
blob25ac296ade25d66d7536fc380d13992729f25d33
1 <?xml version='1.0'?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 version='1.0'>
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"
10 version="4.01"
11 encoding="ISO-8859-1"
12 indent="no"/>
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']"/>
21 <xsl:if test="title">
22 <tr class="qandadiv">
23 <td align="left" valign="top" colspan="2">
24 <xsl:call-template name="anchor">
25 <xsl:with-param name="conditional" select="0"/>
26 </xsl:call-template>
27 <xsl:apply-templates select="title"/>
28 </td>
29 </tr>
30 </xsl:if>
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)"/>
35 </xsl:call-template>
36 </xsl:variable>
37 <xsl:if test="contains($toc.params, 'toc')">
38 <tr class="toc">
39 <td align="left" valign="top" colspan="2">
40 <xsl:call-template name="process.qanda.toc"/>
41 </td>
42 </tr>
43 </xsl:if>
44 <xsl:if test="$preamble">
45 <tr class="toc">
46 <td align="left" valign="top" colspan="2">
47 <xsl:apply-templates select="$preamble"/>
48 </td>
49 </tr>
50 </xsl:if>
51 <xsl:apply-templates select="qandadiv|qandaentry"/>
52 </xsl:template>
54 </xsl:stylesheet>