From c40a7a0ddbfef0c26ec72bab04261b7f9764e57d Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Mon, 6 Aug 2012 10:43:06 +0200 Subject: [PATCH] Move all XSLT parameters to separate files in data/. --- Makefile | 29 +++-------------------------- data/lulu.xsl | 17 +++++++++++++++++ data/pdf.xsl | 3 +++ data/stylesheet-fo.xsl | 9 +++++++++ data/user_param.xsl | 14 +++++++++++++- 5 files changed, 45 insertions(+), 27 deletions(-) create mode 100644 data/lulu.xsl create mode 100644 data/stylesheet-fo.xsl diff --git a/Makefile b/Makefile index f708976..cdbc9bd 100644 --- a/Makefile +++ b/Makefile @@ -45,19 +45,8 @@ html: freeculture.html freeculture.nb.html # create PDF like this. The PDF output (visual design) is better, but # the footnote handling is worse and images are missing. # xmlto --noautosize \ -# --stringparam fop1.extensions=1 \ -# --stringparam insert.xref.page.number=1 \ -# --stringparam page.width=6in \ -# --stringparam page.height=9in \ -# --stringparam page.margin.inner=1.0in \ -# --stringparam page.margin.outer=0.8in \ -# --stringparam body.start.indent=0pt \ -# --stringparam body.font.family=Times \ -# --stringparam title.font.family=Times \ -# --stringparam dingbat.font.family=Times \ -# --stringparam generate.toc='book toc title' \ -# --stringparam hyphenate=false \ - --with-fop pdf $< +# -x data/stylesheet-fo.xsl \ +# --with-fop pdf $< # Third alternative is to use xsltproc and fop directly, as # recommended by . @@ -65,19 +54,7 @@ html: freeculture.html freeculture.nb.html # broken. xsltproc \ --output myfile.fo \ - --stringparam fop1.extensions 1 \ - --stringparam insert.xref.page.number 1 \ - --stringparam page.width 6in \ - --stringparam page.height 9in \ - --stringparam page.margin.inner 1.0in \ - --stringparam page.margin.outer 0.8in \ - --stringparam body.start.indent 0pt \ - --stringparam body.font.family Times \ - --stringparam title.font.family Times \ - --stringparam dingbat.font.family Times \ - --stringparam generate.toc 'book toc title' \ - --stringparam hyphenate false \ - /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl \ + data/stylesheet-fo.xsl \ $< fop -c data/fop-params.xconf -fo myfile.fo -pdf $@ diff --git a/data/lulu.xsl b/data/lulu.xsl new file mode 100644 index 0000000..219715c --- /dev/null +++ b/data/lulu.xsl @@ -0,0 +1,17 @@ + + + + + +0 +book6x9 +6in +9in +1.0in +0.8in +0pt +Times +Times +Times + + diff --git a/data/pdf.xsl b/data/pdf.xsl index 1230668..0cd4d85 100644 --- a/data/pdf.xsl +++ b/data/pdf.xsl @@ -16,5 +16,8 @@ 0 0 +1 + + diff --git a/data/stylesheet-fo.xsl b/data/stylesheet-fo.xsl new file mode 100644 index 0000000..dcfd54f --- /dev/null +++ b/data/stylesheet-fo.xsl @@ -0,0 +1,9 @@ + + + + + + + 1 + diff --git a/data/user_param.xsl b/data/user_param.xsl index 7248736..2094c0a 100644 --- a/data/user_param.xsl +++ b/data/user_param.xsl @@ -17,5 +17,17 @@ \input{po4a/hyphenation..tex} --> - + false + book toc title + + + + + + + + + + + -- 2.47.2