diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Makefile | 2 | ||||
-rw-r--r-- | docs/xslt/fo.xsl | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/docs/Makefile b/docs/Makefile index 7833294675..35e5f2fd87 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -199,7 +199,7 @@ xslt/figures/%.pdf: xslt/figures/%.eps # Fo $(FODIR)/%.fo: $(DOCBOOKDIR)/%.xml mkdir -p $(@D) - $(XSLTPROC) --output $@ http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl $< + $(XSLTPROC) --output $@ xslt/fo.xsl $< # PDF thru Fo $(FOPDFDIR)/%.pdf: $(FODIR)/%.fo diff --git a/docs/xslt/fo.xsl b/docs/xslt/fo.xsl new file mode 100644 index 0000000000..f9a78395da --- /dev/null +++ b/docs/xslt/fo.xsl @@ -0,0 +1,21 @@ +<?xml version='1.0'?> +<!-- vim:set sts=2 shiftwidth=2 syntax=xml: --> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version='1.0'> + +<xsl:import href="../settings.xsl"/> +<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/> + +<xsl:param name="paper.type"> + <xsl:choose> + <xsl:when test="$papersize = 'a4paper'"> + <xsl:text>A4</xsl:text> + </xsl:when> + <xsl:when test="$papersize = 'letter'"> + <xsl:text>USletter</xsl:text> + </xsl:when> + </xsl:choose> +</xsl:param> + + +</xsl:stylesheet> |