summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2010-03-07 20:11:26 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2010-03-07 20:11:26 +0000
commit0d34b3ab6beb645de2c511ddbe6f929045a664c0 (patch)
treefca111e8be982c18fd6eeb5c6c74f73f3657cf95
parent756a995e939aa56d5efad4515ef64fb0d78adff2 (diff)
downloadxine-lib-0d34b3ab6beb645de2c511ddbe6f929045a664c0.tar.gz
xine-lib-0d34b3ab6beb645de2c511ddbe6f929045a664c0.tar.bz2
Suppress double ToC.
-rw-r--r--doc/faq/Makefile.am11
-rw-r--r--doc/faq/faq.xsl4
2 files changed, 9 insertions, 6 deletions
diff --git a/doc/faq/Makefile.am b/doc/faq/Makefile.am
index cbaceb68e..dd3d92c38 100644
--- a/doc/faq/Makefile.am
+++ b/doc/faq/Makefile.am
@@ -3,7 +3,7 @@ include $(top_srcdir)/misc/Makefile.common
doc_DATA = faq.txt
html_DATA = faq.html
-EXTRA_DIST = README faq.docbook $(doc_DATA) $(html_DATA)
+EXTRA_DIST = README faq.docbook faq.xsl $(doc_DATA) $(html_DATA)
DISTCLEANFILES = $(doc_DATA) $(html_DATA)
@@ -22,11 +22,10 @@ dist-hook:
distclean-local: clean-docs
if HAVE_XMLTO
-faq.html: faq.docbook
- xmlto xhtml-nochunks $^
-
-faq.txt: faq.docbook
- xmlto txt $^
+faq.html: faq.docbook faq.xsl
+ xmlto -m faq.xsl xhtml-nochunks $<
+faq.txt: faq.docbook faq.xsl
+ xmlto -m faq.xsl txt $<
else
faq.html faq.txt: faq.docbook
if test x"$(fail_if_missing)" = x"yes"; then \
diff --git a/doc/faq/faq.xsl b/doc/faq/faq.xsl
new file mode 100644
index 000000000..524600be1
--- /dev/null
+++ b/doc/faq/faq.xsl
@@ -0,0 +1,4 @@
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl" />
+<xsl:param name="generate.toc" select="'article toc'" />
+</xsl:stylesheet>