1 <?xml version="1.0" encoding="utf-8"?>
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:d="http://docbook.org/ns/docbook"
5 xmlns:exsl="http://exslt.org/common"
6 xmlns:epub="http://www.idpf.org/2007/ops"
7 xmlns:dc="http://purl.org/dc/elements/1.1/"
8 xmlns:ncx="http://www.daisy.org/z3986/2005/ncx/"
9 xmlns:db="http://docbook.org/ns/docbook"
10 xmlns:opf="http://www.idpf.org/2007/opf"
11 xmlns:stext="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.TextFactory"
12 xmlns:str="http://exslt.org/strings"
13 xmlns:xtext="xalan://com.nwalsh.xalan.Text"
14 extension-element-prefixes="stext xtext"
15 exclude-result-prefixes="exsl dc ncx opf stext str xtext d"
18 <xsl:include href="../xhtml5/html5-chunk-mods.xsl"/>
20 <!--==============================================================-->
21 <!-- DocBook XSL Parameter settings -->
22 <!--==============================================================-->
24 <!--==============================================================-->
25 <!-- Template customizations -->
26 <!--==============================================================-->
28 <!-- EPUB3: customize to generate package files -->
29 <xsl:template match="*" mode="process.root" priority="2">
30 <xsl:call-template name="check.for.xalan"/>
31 <xsl:apply-templates select="."/>
32 <xsl:call-template name="generate.css.files"/>
34 <xsl:call-template name="generate.epub.files"/>
38 <xsl:template name="check.for.xalan">
39 <xsl:if test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
40 <xsl:message terminate="yes">
41 <xsl:text> </xsl:text>
42 <xsl:text>FATAL ERROR: </xsl:text>
43 <xsl:text>Xalan processor not supported by DocBook Epub3 stylesheets. </xsl:text>
44 <xsl:text>Xalan does not properly support XSL output method="text", </xsl:text>
45 <xsl:text>which is required for the various epub support files.</xsl:text>