summaryrefslogtreecommitdiffstats
path: root/winsup/doc/fo.xsl
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-07-20 10:44:50 +0000
committerCorinna Vinschen <corinna@vinschen.de>2013-07-20 10:44:50 +0000
commit198d56529a85f3957e798ee228635ffd8b19ac4b (patch)
tree43bea37124f0e8e13cacb1742dc0718fefb3109b /winsup/doc/fo.xsl
parentefe8407eca7a7145b6fcb53230c60e7eb41b34e1 (diff)
downloadcygnal-198d56529a85f3957e798ee228635ffd8b19ac4b.tar.gz
cygnal-198d56529a85f3957e798ee228635ffd8b19ac4b.tar.bz2
cygnal-198d56529a85f3957e798ee228635ffd8b19ac4b.zip
* Makefile.in (cygwin-ug-net/cygwin-ug-net.pdf): Process input via
xsltproc and fop. (cygwin-api/cygwin-api.pdf): Ditto. * fo.xsl: New file.
Diffstat (limited to 'winsup/doc/fo.xsl')
-rw-r--r--winsup/doc/fo.xsl32
1 files changed, 32 insertions, 0 deletions
diff --git a/winsup/doc/fo.xsl b/winsup/doc/fo.xsl
new file mode 100644
index 000000000..4bc255ce8
--- /dev/null
+++ b/winsup/doc/fo.xsl
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ version="1.0">
+
+ <!-- Import the standard DocBook stylesheet that this one is based on.
+ We use a web URL, but the local XML catalog should resolve this to
+ the local copy of the stylesheet, if it exists. -->
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
+
+ <!-- Add page breaks before each sect1 -->
+ <xsl:attribute-set name="section.level1.properties">
+ <xsl:attribute name="break-before">page</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!-- Rag-right lines -->
+ <xsl:attribute-set name="root.properties">
+ <xsl:attribute name="text-align">left</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!-- Use a smaller font for code listings to increase the chances
+ that they can fit on a single sheet, to reduce FOP complaints
+ about being forced to split a listing across pages. -->
+ <xsl:attribute-set name="monospace.verbatim.properties">
+ <xsl:attribute name="font-size">85%</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!-- Inform the DocBook stylesheets that it's safe to use FOP
+ specific extensions. -->
+ <xsl:param name="fop1.extensions" select="1"/>
+</xsl:stylesheet>