Hello list,
I've been looking into improving the rendered output of the User and
Developer Guide. Even though FOP has some limitation I've implemented a
few. Maybe they reflect my personal taste too much, but that is up to you
to deside.
These are the improvements made:
- create single TOC.
- don't allow section titles to be hyphenated.
- help FOP break URL's
A diff file against the customization layer is attached.
Blue skies,
Jaap
Index: custom_layer_pdf.xsl
===================================================================
--- custom_layer_pdf.xsl (revision 14800)
+++ custom_layer_pdf.xsl (working copy)
@@ -18,12 +18,23 @@
<xsl:param name="section.autolabel" select="1"/>
<xsl:param name="section.label.includes.component.label" select="1"/>
+<!-- include a single TOC -->
+<xsl:param name="generate.toc" select="'book toc'"/>
+
<!-- include page numbers in cross references -->
<!-- <xsl:param name="insert.xref.page.number" select="1"/> -->
<!-- don't show URL's, but only the text of it -->
<xsl:param name="ulink.show" select="0"/>
+<!-- hyphenate URL's after the slash -->
+<xsl:param name="ulink.hyphenate" select="'​'"></xsl:param>
+
+<!-- don't allow section titles to be hyphenated -->
+<xsl:attribute-set name="section.title.properties">
+ <xsl:attribute name="hyphenate">false</xsl:attribute>
+</xsl:attribute-set>
+
<!-- put a page break after each section -->
<xsl:attribute-set name="section.level1.properties">
<xsl:attribute name="break-after">page</xsl:attribute>