summaryrefslogtreecommitdiff
path: root/epub3/epub3-chunk-mods.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'epub3/epub3-chunk-mods.xsl')
-rw-r--r--epub3/epub3-chunk-mods.xsl13
1 files changed, 13 insertions, 0 deletions
diff --git a/epub3/epub3-chunk-mods.xsl b/epub3/epub3-chunk-mods.xsl
index b4ea68d..7aa6901 100644
--- a/epub3/epub3-chunk-mods.xsl
+++ b/epub3/epub3-chunk-mods.xsl
@@ -28,6 +28,7 @@
<!-- EPUB3: customize to generate package files -->
<xsl:template match="*" mode="process.root" priority="2">
+ <xsl:call-template name="check.for.xalan"/>
<xsl:apply-templates select="."/>
<xsl:call-template name="generate.css.files"/>
@@ -35,4 +36,16 @@
</xsl:template>
+<xsl:template name="check.for.xalan">
+ <xsl:if test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
+ <xsl:message terminate="yes">
+ <xsl:text>&#10;</xsl:text>
+ <xsl:text>FATAL ERROR: </xsl:text>
+ <xsl:text>Xalan processor not supported by DocBook Epub3 stylesheets. </xsl:text>
+ <xsl:text>Xalan does not properly support XSL output method="text", </xsl:text>
+ <xsl:text>which is required for the various epub support files.</xsl:text>
+ </xsl:message>
+ </xsl:if>
+</xsl:template>
+
</xsl:stylesheet>