1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Respect paper size specification for FO generation

This commit is contained in:
Jelmer Vernooij 2005-03-20 19:20:20 +00:00 committed by Gerald W. Carter
parent 4d7803626b
commit 3aa353c0e4
2 changed files with 22 additions and 1 deletions

View File

@ -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

21
docs/xslt/fo.xsl Normal file
View File

@ -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>