Use document() function and apply-templates to navigate the hierarchy. This should work for you:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/map">
<xsl:apply-templates select="mapref"/>
</xsl:template>
<xsl:template match="mapref">
<xsl:apply-templates select="document(@href)/map/topicref"/>
</xsl:template>
<xsl:template match="topicref">
<xsl:apply-templates select="document(@href)/topic"/>
<xsl:apply-templates select="topicref"/>
</xsl:template>
<xsl:template match="topic">
<xsl:message>
<xsl:value-of select="title"/>
</xsl:message>
</xsl:template>
</xsl:stylesheet>