]> granicus.if.org Git - docbook-dsssl/commitdiff
Only set target.database.filename if target.database.document is set
authorDavid Cramer <david@thingbag.net>
Thu, 24 Aug 2017 21:16:03 +0000 (16:16 -0500)
committerbobstayton <bobs@sagehill.net>
Thu, 7 Jun 2018 18:53:07 +0000 (11:53 -0700)
Addressing https://github.com/docbook/xslt10-stylesheets/issues/47 by checking to see if target.database.document is set.

xsl/common/olink.xsl

index 786f842e4696d1e81a7b91470ed6b317102c8129..ea954b8fc1f67987ce57c0be19052bcb926bcf4e 100644 (file)
@@ -63,6 +63,7 @@
   <xsl:variable name="target.database.filename">
     <xsl:choose>
       <xsl:when test="$xml.base != '' and
+                   not($target.database.document = '') and
                    not(starts-with($target.database.document, 'file:/')) and
                    not(starts-with($target.database.document, '/'))">
         <xsl:call-template name="systemIdToBaseURI">