095f4c8
diff -urNp docbook-xsl-1.76.1-orig/manpages/other.xsl docbook-xsl-1.76.1/manpages/other.xsl
095f4c8
--- docbook-xsl-1.76.1-orig/manpages/other.xsl	2010-08-27 05:14:52.000000000 +0200
095f4c8
+++ docbook-xsl-1.76.1/manpages/other.xsl	2011-09-06 17:17:07.973737258 +0200
095f4c8
@@ -595,7 +595,14 @@ manvolnum
095f4c8
           <xsl:with-param name="message-prolog">Note: </xsl:with-param>
095f4c8
           <xsl:with-param name="message-epilog"> (soelim stub)</xsl:with-param>
095f4c8
           <xsl:with-param name="content">
095f4c8
-            <xsl:value-of select="'.so '"/>
095f4c8
+            <xsl:choose>
095f4c8
+              <xsl:when test="$man.output.in.separate.dir = 0">
095f4c8
+              <xsl:value-of select="concat('.so man', $section, '/')"/>
095f4c8
+              </xsl:when>
095f4c8
+              <xsl:otherwise>
095f4c8
+              <xsl:value-of select="'.so '"/> 
095f4c8
+              </xsl:otherwise>
095f4c8
+              </xsl:choose>
4066862
             <xsl:variable name="full.filename">
4066862
               <xsl:call-template name="make.adjusted.man.filename">
4066862
                 <xsl:with-param name="name" select="$first.refname"/>