2013-01-30 19:59:41 +01:00
|
|
|
<?xml version='1.0'?>
|
|
|
|
|
|
|
|
<!-- $FreeBSD$ -->
|
|
|
|
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
2013-08-15 00:29:07 +02:00
|
|
|
xmlns:str="http://exslt.org/strings"
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
exclude-result-prefixes="db str"
|
|
|
|
extension-element-prefixes="str"
|
2013-06-30 11:58:03 +02:00
|
|
|
version='1.0'>
|
2013-01-30 19:59:41 +01:00
|
|
|
|
|
|
|
<!-- Pull in the base stylesheets -->
|
2013-08-15 00:29:07 +02:00
|
|
|
<xsl:import href="/usr/local/share/xsl/docbook-ns/epub3/chunk.xsl"/>
|
2013-01-30 19:59:41 +01:00
|
|
|
|
|
|
|
<!-- Pull in common XHTML customizations -->
|
2013-08-15 00:29:07 +02:00
|
|
|
<xsl:import href="freebsd-xhtml-common.xsl"/>
|
2013-01-30 19:59:41 +01:00
|
|
|
|
|
|
|
<xsl:param name="generate.legalnotice.link" select="'1'"/>
|
2013-08-15 00:29:07 +02:00
|
|
|
|
|
|
|
<xsl:param name="docbook.css.source">../xml/docbook-epub.css.xml</xsl:param>
|
|
|
|
<xsl:param name="formal.title.placement">
|
|
|
|
figure after
|
|
|
|
example before
|
|
|
|
equation after
|
|
|
|
table before
|
|
|
|
procedure before
|
|
|
|
</xsl:param>
|
|
|
|
<xsl:param name="variablelist.term.break.after" select="1"/>
|
|
|
|
<xsl:param name="variablelist.term.separator"/>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
XXX: $docbook.css.source source is interpreted as a relative path
|
|
|
|
when referenced from a template and it should be relative to
|
|
|
|
this stylesheets and not the stock one, so xopy this file here.
|
|
|
|
-->
|
|
|
|
<xsl:template name="generate.default.css.file">
|
|
|
|
<xsl:if test="$make.clean.html != 0 and
|
|
|
|
$generate.css.header = 0 and
|
|
|
|
$docbook.css.source != ''">
|
|
|
|
<!-- Select default file relative to stylesheet -->
|
|
|
|
<xsl:variable name="css.node" select="document($docbook.css.source)/*[1]"/>
|
|
|
|
<xsl:variable name="fname" select="str:tokenize($docbook.css.source, '/')[last()]"/>
|
|
|
|
|
|
|
|
<xsl:call-template name="generate.css.file">
|
|
|
|
<xsl:with-param name="src" select="$fname"/>
|
|
|
|
<xsl:with-param name="css.node" select="$css.node"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="make.css.link">
|
|
|
|
<xsl:param name="css.filename" select="''"/>
|
|
|
|
|
|
|
|
<xsl:variable name="href" select="substring-before(str:tokenize($docbook.css.source, '/')[last()], '.xml')"/>
|
|
|
|
|
|
|
|
<xsl:if test="string-length($css.filename) != 0">
|
|
|
|
<link rel="stylesheet" type="text/css" href="{$href}"/>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="user.footer.navigation"/>
|
2013-01-30 19:59:41 +01:00
|
|
|
</xsl:stylesheet>
|
|
|
|
|