]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Add a XSL stylesheet for the XSL+FO processor.
authorPetter Reinholdtsen <pere@hungry.com>
Thu, 8 Feb 2018 13:58:35 +0000 (13:58 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Sat, 17 Feb 2018 12:03:47 +0000 (12:03 +0000)
Makefile
extra/stylesheet-fo.xsl [new file with mode: 0644]

index 4feb1a9c8b6f09927e1a131c0bb3149e177fa1f4..15294f9e96c9b0f281cd2760449a5078bc88b2d6 100644 (file)
--- 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
 
 # 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 \
 
 status:
        for LANG in $(LANGS); do \
diff --git a/extra/stylesheet-fo.xsl b/extra/stylesheet-fo.xsl
new file mode 100644 (file)
index 0000000..3ec42a9
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
+
+  <xsl:include href="pdf.xsl" />
+  <xsl:param name="fop1.extensions">1</xsl:param>
+
+</xsl:stylesheet>