this patch allows cross-referencing to a specific refname. I
need this since I'm documenting several different (but related)
functions per refentry, and want to cross-reference them individually,
rather than just by the title used for the refentry as a whole.
</xsl:call-template>
</xsl:when>
+ <xsl:when test="$type='refname'">
+ <xsl:call-template name="do-citerefentry">
+ <xsl:with-param name="refentrytitle" select="$target"/>
+ <xsl:with-param name="manvolnum"
+ select="$target/../../refmeta/manvolnum"/>
+ </xsl:call-template>
+ </xsl:when>
+
<xsl:otherwise>
<xsl:text>[xref to </xsl:text>
<xsl:value-of select="$type"/>