diff --git a/docs/Makefile.am b/docs/Makefile.am
index 5c76891ba4..2a104bc837 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -293,6 +293,7 @@ EXTRA_DIST += \
style=subsite.xsl; \
fi; \
$(XSLTPROC) --stringparam pagename $$name \
+ --stringparam builddir '$(abs_top_builddir)' \
--stringparam timestamp $(timestamp) --nonet \
$(top_srcdir)/docs/$$style $< > $@ \
|| { rm $@ && exit 1; }
diff --git a/docs/newapi.xsl b/docs/newapi.xsl
index dd6169397b..670879dc48 100644
--- a/docs/newapi.xsl
+++ b/docs/newapi.xsl
@@ -22,7 +22,6 @@
-
diff --git a/docs/page.xsl b/docs/page.xsl
index 65ddeb2bb7..6f429ae087 100644
--- a/docs/page.xsl
+++ b/docs/page.xsl
@@ -7,6 +7,8 @@
exclude-result-prefixes="xsl exsl html"
version="1.0">
+
+
@@ -168,7 +170,7 @@
-
+