Boost logo

Boost-Commit :

From: fmhess_at_[hidden]
Date: 2007-09-24 17:14:32


Author: fmhess
Date: 2007-09-24 17:14:31 EDT (Mon, 24 Sep 2007)
New Revision: 39515
URL: http://svn.boost.org/trac/boost/changeset/39515

Log:
Fixed links to testsuite source files, by using href.link.relative
and project.root.

Text files modified:
   sandbox/boost_docs/trunk/tools/boostbook/xsl/testing/testsuite.xsl | 24 +++++++++++++++---------
   1 files changed, 15 insertions(+), 9 deletions(-)

Modified: sandbox/boost_docs/trunk/tools/boostbook/xsl/testing/testsuite.xsl
==============================================================================
--- sandbox/boost_docs/trunk/tools/boostbook/xsl/testing/testsuite.xsl (original)
+++ sandbox/boost_docs/trunk/tools/boostbook/xsl/testing/testsuite.xsl 2007-09-24 17:14:31 EDT (Mon, 24 Sep 2007)
@@ -1,13 +1,17 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
    Copyright (c) 2002 Douglas Gregor <doug.gregor -at- gmail.com>
-
+
    Distributed under the Boost Software License, Version 1.0.
    (See accompanying file LICENSE_1_0.txt or copy at
    http://www.boost.org/LICENSE_1_0.txt)
   -->
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version="1.0">
+ <xsl:import
+ href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/>
+ <xsl:import href="../relative-href.xsl"/>
+
   <xsl:template match="testsuite">
     <section>
       <xsl:choose>
@@ -51,9 +55,9 @@
               </tbody>
             </tgroup>
           </informaltable>
- </section>
+ </section>
       </xsl:if>
-
+
       <xsl:if test="compile-fail-test|link-fail-test|run-fail-test">
         <section>
           <xsl:if test="@id">
@@ -75,13 +79,13 @@
                 </row>
               </thead>
               <tbody>
- <xsl:apply-templates
+ <xsl:apply-templates
                   select="compile-fail-test|link-fail-test|run-fail-test"/>
               </tbody>
             </tgroup>
           </informaltable>
         </section>
- </xsl:if>
+ </xsl:if>
     </section>
   </xsl:template>
 
@@ -92,10 +96,12 @@
         <simpara>
           <ulink>
             <xsl:attribute name="url">
- <xsl:value-of
- select="concat('../../libs/',
- ancestor::library/attribute::dirname, '/test/',
- @filename)"/>
+ <xsl:call-template name="href.target.relative">
+ <xsl:with-param name="target"
+ select="concat($project.root, '/libs/',
+ ancestor::library/attribute::dirname, '/test/',
+ @filename)"/>
+ </xsl:call-template>
             </xsl:attribute>
             <xsl:value-of select="@filename"/>
           </ulink>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk