[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>
|
---|