Ticket #1166: relative-href.xsl.patch
File relative-href.xsl.patch, 1.1 KB (added by , 15 years ago) |
---|
-
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="substring-before($target, '://') = 'boost'"> 55 <xsl:value-of select="$boost.root"/> 56 <xsl:text>/</xsl:text> 57 <xsl:value-of select="substring-after($target, '://')"/> 58 </xsl:when> 59 <xsl:otherwise> 60 <xsl:value-of select="$target"/> 61 </xsl:otherwise> 62 </xsl:choose> 52 63 </xsl:when> 53 64 54 65 <xsl:otherwise>