]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix bug in base.dir handling.
authorBob Stayton <bobs@sagehill.net>
Thu, 11 Apr 2013 22:21:37 +0000 (22:21 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 11 Apr 2013 22:21:37 +0000 (22:21 +0000)
xsl/epub3/epub3-element-mods.xsl

index 65b44c3ca1acdbc8177f10a44988184edba1e845..ad7792d63987bb4f0abb96ef2fb978f48bc50f87 100644 (file)
@@ -52,7 +52,7 @@ article  toc,title,figure,table,example,equation
 
 <!-- HTML chunk output goes to $base.dir/OEPBS -->
 <xsl:variable name="chunk.base.dir">
-  <xsl:if test="contains($base.dir, $epub.oebps.dir)">
+  <xsl:if test="$base.dir != '' and contains($base.dir, $epub.oebps.dir)">
     <xsl:message terminate="yes">
       <xsl:text>ERROR: the $base.dir param must not include the </xsl:text>
       <xsl:value-of select="$epub.oebps.dir"/>