<xsl:template name="processTopicrefs">
<xsl:for-each select="//*[contains(@class, ' map/topicref ')][not(@toc='no')]">
<!-- The name of the output file. -->
<xsl:variable name="outputName" select="concat(substring-before(@href,'.xml'),'.html')"/>
<!-- The full path of the output file. -->
<xsl:variable name="outputPath" select="concat(concat($WORKDIR,'/'),$outputName)"/>
<saxon:output href="{$outputPath}">
<xsl:apply-templates select="document(@href,/)"/>
</saxon:output>
</xsl:for-each>
</xsl:template> |