source: stylesheets/blfs-chunked.xsl@ eff3826

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since eff3826 was eff3826, checked in by Larry Lawrence <larry@…>, 20 years ago

Added stylesheets for xsltproc processing

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1984 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 3.0 KB
RevLine 
[eff3826]1<?xml version='1.0'?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns="http://www.w3.org/1999/xhtml"
4 version="1.0">
5
6 <!-- We use XHTML -->
7 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/>
8 <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/>
9
10 <!-- The CSS Stylesheet -->
11 <xsl:param name="html.stylesheet" select="'../stylesheets/blfs.css'"/>
12
13 <!-- Use graphics in admonitions -->
14 <xsl:param name="admon.graphics" select="1"/>
15 <xsl:param name="admon.graphics.path">../images/</xsl:param>
16 <xsl:param name="admon.graphics.extension" select="'.png'"/>
17
18 <!-- Legal Notice stuff -->
19 <xsl:param name="generate.legalnotice.link" select="1"/>
20 <xsl:template match="legalnotice" mode="titlepage.mode">
21 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
22 <xsl:choose>
23 <xsl:when test="$generate.legalnotice.link != 0">
24 <xsl:variable name="filename">
25 <xsl:call-template name="make-relative-filename">
26 <xsl:with-param name="base.dir" select="''"/>
27 <xsl:with-param name="base.name" select="concat($base.dir, 'prologue/legalnotice.html')"/>
28 </xsl:call-template>
29 </xsl:variable>
30 <xsl:variable name="title">
31 <xsl:apply-templates select="." mode="title.markup"/>
32 </xsl:variable>
33 <xsl:element name="a">
34 <xsl:attribute name="href">
35 <xsl:value-of select="'prologue/legalnotice.html'"/>
36 </xsl:attribute>
37 <xsl:copy-of select="$title"/>
38 </xsl:element>
39 <xsl:call-template name="write.chunk">
40 <xsl:with-param name="filename" select="$filename"/>
41 <xsl:with-param name="quiet" select="$chunk.quietly"/>
42 <xsl:with-param name="content">
43 <html>
44 <head>
45 <xsl:call-template name="system.head.content"/>
46 <xsl:call-template name="head.content"/>
47 <xsl:call-template name="user.head.content"/>
48 </head>
49 <body>
50 <xsl:call-template name="body.attributes"/>
51 <div class="{local-name(.)}">
52 <xsl:apply-templates mode="titlepage.mode"/>
53 </div>
54 </body>
55 </html>
56 </xsl:with-param>
57 </xsl:call-template>
58 </xsl:when>
59 <xsl:otherwise>
60 <div class="{local-name(.)}">
61 <xsl:apply-templates mode="titlepage.mode"/>
62 </div>
63 </xsl:otherwise>
64 </xsl:choose>
65 </xsl:template>
66
67 <!--TOC stuff-->
68 <xsl:param name="generate.toc">
69 appendix toc
70 book toc,title,figure,table,example,equation
71 chapter nop
72 part toc
73 preface nop
74 qandadiv nop
75 qandaset nop
76 reference nop
77 sect1 nop
78 sect2 nop
79 sect3 nop
80 sect4 nop
81 sect5 nop
82 section nop
83 set nop
84 </xsl:param>
85 <xsl:param name="toc.section.depth">1</xsl:param>
86 <xsl:param name="toc.max.depth">3</xsl:param>
87
88</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.