summaryrefslogtreecommitdiff
path: root/docs/xslt
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-03-20 19:20:20 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:46:22 -0500
commit995aeb00afcc37f2b42fc41f7998264664c3c1c7 (patch)
tree0e7d9b451715d88aaa3c661e4aee03332ebd5c56 /docs/xslt
parenteacbb262965ddb6d0dbc1d688f23fedb6983f8de (diff)
downloadsamba-995aeb00afcc37f2b42fc41f7998264664c3c1c7.tar.gz
samba-995aeb00afcc37f2b42fc41f7998264664c3c1c7.tar.bz2
samba-995aeb00afcc37f2b42fc41f7998264664c3c1c7.zip
Respect paper size specification for FO generation
(This used to be commit 3aa353c0e4b2b0220419b8623464317b71f9f34b)
Diffstat (limited to 'docs/xslt')
-rw-r--r--docs/xslt/fo.xsl21
1 files changed, 21 insertions, 0 deletions
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>