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:
parent
4d7803626b
commit
3aa353c0e4
@ -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
21
docs/xslt/fo.xsl
Normal 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>
|
Loading…
Reference in New Issue
Block a user