]> granicus.if.org Git - docbook-dsssl/commitdiff
New param to control generating blank even-numbered pages.
authorBob Stayton <bobs@sagehill.net>
Sun, 2 Dec 2012 19:00:58 +0000 (19:00 +0000)
committerBob Stayton <bobs@sagehill.net>
Sun, 2 Dec 2012 19:00:58 +0000 (19:00 +0000)
xsl/params/force.blank.pages.xml [new file with mode: 0755]

diff --git a/xsl/params/force.blank.pages.xml b/xsl/params/force.blank.pages.xml
new file mode 100755 (executable)
index 0000000..6c18227
--- /dev/null
@@ -0,0 +1,44 @@
+<refentry xmlns="http://docbook.org/ns/docbook"
+          xmlns:xlink="http://www.w3.org/1999/xlink"
+          xmlns:xi="http://www.w3.org/2001/XInclude"
+          xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
+          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+          version="5.0" xml:id="force.blank.pages">
+<refmeta>
+<refentrytitle>force.blank.pages</refentrytitle>
+<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>force.blank.pages</refname>
+<refpurpose>Generate blank page to end on even page number</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment xml:id="force.blank.pages.frag">
+<xsl:param name="force.blank.pages" select="1"/>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsection><info><title>Description</title></info>
+
+<para>If non-zero (the default), then each page sequence will be forced to
+end on an even-numbered page, by inserting a blank page
+if necessary. This will force the next page sequence to start
+on an odd-numbered page, which is a standard convention
+for printed and bound books.</para>
+
+<para>If zero, then such blank pages will not be inserted.
+This is useful when publishing online where blank
+pages are not needed.
+</para>
+
+<para>This param is independent of the 
+<parameter>double.sided</parameter> parameter, which
+just triggers the use of even and odd page sequence 
+masters that differ in their header and footer placement.
+So you can combine the two params for alternating
+headers/footers and no blank pages.
+</para>
+
+</refsection>
+</refentry>