]> granicus.if.org Git - docbook-dsssl/commitdiff
Exit when detects Xalan processor because it does not properly
authorBob Stayton <bobs@sagehill.net>
Mon, 22 Oct 2012 21:14:23 +0000 (21:14 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 22 Oct 2012 21:14:23 +0000 (21:14 +0000)
support output method="text" which is needed for generating
the mime-type and other support files.

xsl/epub3/epub3-chunk-mods.xsl

index b4ea68d66dc6cab355c9a96c7e307e8b82a70d7c..7aa69012281a0f7cc4ad9fab3fd9686026ae3f6b 100644 (file)
@@ -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"/>
 
 
 </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>