Package: w3-recs
Version: 20070917-1
Followup-For: Bug #444593

Here's a patch that implements relative links as desired.
diff -u w3-recs-20070917/xsl/gen-html-index.xsl w3-recs-20070917/xsl/gen-html-index.xsl
--- w3-recs-20070917/xsl/gen-html-index.xsl
+++ w3-recs-20070917/xsl/gen-html-index.xsl
@@ -8,8 +8,10 @@
     xmlns:org="http://www.w3.org/2001/04/roadmap/org#";
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
     xmlns:rec="http://www.w3.org/2001/02pd/rec54#";
+    xmlns:str="http://exslt.org/strings";
     xmlns="http://www.w3.org/1999/xhtml";
-    xmlns:html="http://www.w3.org/1999/xhtml";>
+    xmlns:html="http://www.w3.org/1999/xhtml";
+    exclude-result-prefixes="exslt contact dc doc mat org rdf rec str html">
 
   <xsl:import href="w3-tr-lib.xsl" />
   <xsl:output mode="xml" encoding="utf-8" />
@@ -49,12 +51,13 @@
     <xsl:variable name="docpath">
       <xsl:call-template name="path_of_tr">
         <xsl:with-param name="rec" select="." />
-        <xsl:with-param name="basepath" select="$basepath" />
+        <xsl:with-param name="basepath" select="'.'" />
       </xsl:call-template>
     </xsl:variable>
 
     <li>
-      <a href="{$docpath}index.html"> <xsl:value-of select="$title" /> </a>
+      <a href="{str:replace($docpath, './html/', '')}index.html">
+        <xsl:value-of select="$title" /> </a>
     </li>
   </xsl:template>
 

Attachment: signature.asc
Description: Digital signature



Reply via email to