File docbook-xsl-stylesheets-manpages-other-r9847.patch of Package docbook-xsl-stylesheets

--- manpages/other.xsl.orig	2014-02-05 16:55:12.000000000 +0100
+++ manpages/other.xsl	2014-02-05 16:58:04.000000000 +0100
@@ -596,12 +596,22 @@
           <xsl:with-param name="message-epilog"> (soelim stub)</xsl:with-param>
           <xsl:with-param name="content">
             <xsl:value-of select="'.so '"/>
-            <xsl:call-template name="make.adjusted.man.filename">
-              <xsl:with-param name="name" select="$first.refname"/>
-              <xsl:with-param name="section" select="$section"/>
-              <xsl:with-param name="lang" select="$lang"/>
-            </xsl:call-template>
-            <xsl:text>&#10;</xsl:text>
+	    <xsl:variable name="full.filename">
+		<xsl:call-template name="make.adjusted.man.filename">
+		    <xsl:with-param name="name" select="$first.refname"/>
+		    <xsl:with-param name="section" select="$section"/>
+		    <xsl:with-param name="lang" select="$lang"/>
+		</xsl:call-template>
+	    </xsl:variable>
+	    <xsl:choose>
+		<xsl:when test="starts-with($full.filename, $man.output.base.dir)">
+		    <xsl:value-of select="substring-after($full.filename,$man.output.base.dir)"/>
+		</xsl:when>
+		<xsl:otherwise>
+		    <xsl:value-of select="$full.filename"/>
+		</xsl:otherwise>
+	    </xsl:choose>
+	    <xsl:text>&#10;</xsl:text>
           </xsl:with-param>
         </xsl:call-template>
       </xsl:if>