$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: daniel_james_at_[hidden]
Date: 2008-05-14 16:36:12
Author: danieljames
Date: 2008-05-14 16:36:12 EDT (Wed, 14 May 2008)
New Revision: 45363
URL: http://svn.boost.org/trac/boost/changeset/45363
Log:
Implement links from root in boostbook.
Text files modified: 
   branches/doc/tools/boostbook/xsl/relative-href.xsl |    13 ++++++++++++-                           
   1 files changed, 12 insertions(+), 1 deletions(-)
Modified: branches/doc/tools/boostbook/xsl/relative-href.xsl
==============================================================================
--- branches/doc/tools/boostbook/xsl/relative-href.xsl	(original)
+++ branches/doc/tools/boostbook/xsl/relative-href.xsl	2008-05-14 16:36:12 EDT (Wed, 14 May 2008)
@@ -52,7 +52,18 @@
         </xsl:when>
 
         <xsl:otherwise>
-            <xsl:variable name="href.to.uri" select="$target"/>
+            <xsl:variable name="href.to.uri">
+                <xsl:choose>
+                    <xsl:when test="starts-with($target, '/')">
+                        <xsl:value-of select="concat($boost.root,
+                            substring($target, 1))"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:value-of select="$target"/>
+                    </xsl:otherwise>
+                </xsl:choose>
+            </xsl:variable>
+
             <xsl:variable name="href.from.uri">
                 <xsl:call-template name="href.target.uri">
                     <xsl:with-param name="object" select="$context"/>