Ticket #1166: links.patch
File links.patch, 2.1 KB (added by , 15 years ago) |
---|
-
tools/boostbook/xsl/relative-href.xsl
11 11 12 12 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/lib/lib.xsl"/> 13 13 14 <xsl:param name="boost.root" select="../.."/> 15 14 16 <!-- ==================================================================== --> 15 17 16 18 <!-- Check if path is absolute … … 48 50 49 51 <xsl:choose> 50 52 <xsl:when test="$isabsoluteuri='1'"> 51 <xsl:value-of select="$target"/> 53 <xsl:choose> 54 <xsl:when test="starts-with($target, 'boost:/')"> 55 <xsl:call-template name="href.target.relative"> 56 <xsl:with-param name="target" select="concat($boost.root, substring-after($target, 'boost:'))"/> 57 </xsl:call-template> 58 </xsl:when> 59 <xsl:when test="starts-with($target, 'boost:')"> 60 <xsl:call-template name="href.target.relative"> 61 <xsl:with-param name="target" select="concat($boost.root, concat('/', substring-after($target, 'boost:')))"/> 62 </xsl:call-template> 63 </xsl:when> 64 <xsl:otherwise> 65 <xsl:value-of select="$target"/> 66 </xsl:otherwise> 67 </xsl:choose> 52 68 </xsl:when> 53 69 54 70 <xsl:otherwise> -
tools/boostbook/xsl/xref.xsl
20 20 <xsl:param name="target"/> 21 21 <xsl:param name="context" select="."/> 22 22 23 <xsl:choose>24 <xsl:when test="contains($target, ':')">25 <xsl:value-of select="$target"/>26 </xsl:when>27 <xsl:otherwise>28 23 <xsl:call-template name="href.target.relative"> 29 24 <xsl:with-param name="target" select="$target"/> 30 25 </xsl:call-template> 31 </xsl:otherwise>32 </xsl:choose>33 26 34 27 </xsl:template> 35 28