]> granicus.if.org Git - docbook-dsssl/commitdiff
Handle additional case when extension functions were not unable to load external...
authorJirka Kosek <jirka@kosek.cz>
Wed, 5 Apr 2006 09:06:37 +0000 (09:06 +0000)
committerJirka Kosek <jirka@kosek.cz>
Wed, 5 Apr 2006 09:06:37 +0000 (09:06 +0000)
xsl/common/stripns.xsl

index dd8fbbf51963325d0a0554b8bba8f1b0c8a8d018..1a764b8ffe4dae3d587061fd2bc754f3fe0d9c9b 100644 (file)
            <xsl:with-param name="systemId">
              <xsl:choose>
                <!-- file: seems to confuse some processors. -->
+               <xsl:when test="starts-with(saxon:systemId(), 'file:/') and substring(saxon:systemId(), 7, 2) != '//'">
+                 <xsl:value-of select="concat('file:///', substring-after(saxon:systemId(), 'file:/'))"/>
+               </xsl:when>
                <xsl:when test="starts-with(saxon:systemId(), 'file:')">
                  <xsl:value-of select="substring-after(saxon:systemId(),
                                                        'file:')"/>