From: <bob...@us...> - 2009-05-04 02:17:34
|
Revision: 8420 http://docbook.svn.sourceforge.net/docbook/?rev=8420&view=rev Author: bobstayton Date: 2009-05-04 02:17:33 +0000 (Mon, 04 May 2009) Log Message: ----------- Fix bug #2750253 wrong links in list of figures in chunk.html when target html is in a subdirectory and dbhtml filename used. Modified Paths: -------------- trunk/xsl/html/chunk-common.xsl Modified: trunk/xsl/html/chunk-common.xsl =================================================================== --- trunk/xsl/html/chunk-common.xsl 2009-04-29 20:37:52 UTC (rev 8419) +++ trunk/xsl/html/chunk-common.xsl 2009-05-04 02:17:33 UTC (rev 8420) @@ -1090,9 +1090,18 @@ </xsl:call-template> </xsl:variable> <xsl:variable name="href.from.uri"> - <xsl:call-template name="href.target.uri"> - <xsl:with-param name="object" select="$context"/> - </xsl:call-template> + <xsl:choose> + <xsl:when test="not($toc-context = .)"> + <xsl:call-template name="href.target.uri"> + <xsl:with-param name="object" select="$toc-context"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="href.target.uri"> + <xsl:with-param name="object" select="$context"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> </xsl:variable> <!-- * <xsl:message>toc-context: <xsl:value-of select="local-name($toc-context)"/></xsl:message> --> <!-- * <xsl:message>node: <xsl:value-of select="local-name(.)"/></xsl:message> --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |