svn commit: samba-docs r437 - in trunk: . xslt
jelmer at samba.org
jelmer at samba.org
Sun Mar 20 19:20:20 GMT 2005
Author: jelmer
Date: 2005-03-20 19:20:20 +0000 (Sun, 20 Mar 2005)
New Revision: 437
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba-docs&rev=437
Log:
Respect paper size specification for FO generation
Added:
trunk/xslt/fo.xsl
Modified:
trunk/Makefile
Changeset:
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2005-03-20 19:09:48 UTC (rev 436)
+++ trunk/Makefile 2005-03-20 19:20:20 UTC (rev 437)
@@ -199,7 +199,7 @@
# 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
Added: trunk/xslt/fo.xsl
===================================================================
--- trunk/xslt/fo.xsl 2005-03-20 19:09:48 UTC (rev 436)
+++ trunk/xslt/fo.xsl 2005-03-20 19:20:20 UTC (rev 437)
@@ -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>
More information about the samba-cvs
mailing list