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