]> granicus.if.org Git - docbook-dsssl/commitdiff
Attempt to deal with file:/c:/path correctly (c:/path)
authorNorman Walsh <ndw@nwalsh.com>
Fri, 21 Apr 2006 19:52:39 +0000 (19:52 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 21 Apr 2006 19:52:39 +0000 (19:52 +0000)
xsl/common/stripns.xsl

index a24d87c9e4aa2c081e132e2c7dab824ea2bf4b2c..514c7844bd2fee895a0d697aa2127210e104cb0b 100644 (file)
                  <xsl:when test="starts-with($base, 'file://')">
                    <xsl:value-of select="substring-after($base,'file:/')"/>
                  </xsl:when>
+                 <xsl:when test="starts-with($base, 'file:/')
+                                 and substring($base, 8, 1) = ':'">
+                   <!-- Stupid windows file:/c:/path... -->
+                   <xsl:value-of select="substring-after($base,'file:/')"/>
+                 </xsl:when>
                  <xsl:when test="starts-with($base, 'file:/')">
                    <xsl:value-of select="substring-after($base,'file:')"/>
                  </xsl:when>