]> git.lyx.org Git - lyx.git/blob - lib/docbook/epub3/epub3-chunk-mods.xsl
Fix bug #11410.
[lyx.git] / lib / docbook / epub3 / epub3-chunk-mods.xsl
1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet 
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"
16   version="1.0">
17
18 <xsl:include href="../xhtml5/html5-chunk-mods.xsl"/>
19
20 <!--==============================================================-->
21 <!--  DocBook XSL Parameter settings                              -->
22 <!--==============================================================-->
23
24 <!--==============================================================-->
25 <!--  Template customizations                                     -->
26 <!--==============================================================-->
27
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"/>
33
34   <xsl:call-template name="generate.epub.files"/>
35
36 </xsl:template>
37
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>&#10;</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>
46     </xsl:message>
47   </xsl:if>
48 </xsl:template>
49
50 </xsl:stylesheet>