From 7d02443e21b178d12bdc41c9e132b68a0ecef11a Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Thu, 8 Feb 2018 13:58:35 +0000 Subject: [PATCH] Add a XSL stylesheet for the XSL+FO processor. --- Makefile | 5 +++-- extra/stylesheet-fo.xsl | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 extra/stylesheet-fo.xsl diff --git a/Makefile b/Makefile index 4feb1a9..15294f9 100644 --- a/Makefile +++ b/Makefile @@ -120,8 +120,9 @@ lint-nb: $(SOURCE).nb.xml # Experimental build rule to test Docbook XSL + FOP processor xsl-fo-%.pdf: %.xml - xsltproc /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl $^ > $@.fo - fop $@.fo $@ + xsltproc --output $(subst .pdf,.fo,$@) \ + extra/stylesheet-fo.xsl $^; \ + fop -fo $(subst .pdf,.fo,$@) -pdf $@ status: for LANG in $(LANGS); do \ diff --git a/extra/stylesheet-fo.xsl b/extra/stylesheet-fo.xsl new file mode 100644 index 0000000..3ec42a9 --- /dev/null +++ b/extra/stylesheet-fo.xsl @@ -0,0 +1,9 @@ + + + + + + + 1 + + -- 2.47.2