summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/xml-to-html.xsl8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/xml-to-html.xsl b/tools/xml-to-html.xsl
index 1b92318..5d88077 100644
--- a/tools/xml-to-html.xsl
+++ b/tools/xml-to-html.xsl
@@ -97,13 +97,17 @@
<xsl:variable name="number" select="@number" />
<dl>
<xsl:apply-templates mode="note-index"
- select="$notes/notes/note[$number=0 or position()&lt;=$number]" />
+ select="$notes/notes/note[$number=0 or position()&lt;=$number]">
+ <xsl:with-param name="prefix"
+ select="@prefix" />
+ </xsl:apply-templates>
</dl>
</xsl:template>
<xsl:template mode="note-index" match="note">
+ <xsl:param name="prefix" />
<dt>
- <a href="{@src}">
+ <a href="{$prefix}/{@src}">
<xsl:value-of select="document/@title" />
</a>
</dt>