doc: Update micropeak docs to include lots of pictures
[fw/altos] / doc / xorg-fo.xsl
index 896fcb6c4a508f72f6e2b63b632ad165639e6d86..4b8c619fd8e30ed624ad528b1ee921a4eab059f7 100644 (file)
@@ -7,13 +7,18 @@
        http://docbook.sourceforge.net/release/xsl/current/doc/fo/
 -->
 
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
-<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
+<xsl:stylesheet
+    version='1.0'
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+    xmlns:fo="http://www.w3.org/1999/XSL/Format" 
+    >
+<xsl:import href="file:///usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl"/>
+<xsl:include href="titlepage.templates.xsl"/>
 
 
                        <!-- Reference Pages HTML/FO Parameters -->
 
-  <!-- The formatting of a function element will include generated parentheses -->
+
   <xsl:param name="function.parens" select="1"/>
 
   <!-- ANSI-style function synopses are generated for a funcsynopsis element -->
   <xsl:param name="body.font.family">DejaVu Serif</xsl:param>
   <xsl:param name="symbol.font.family">serif,Symbol,AR PL UMing CN,AR PL ShanHeiSun Uni,GNU Unifont</xsl:param>
 
+                       <!-- Paragraph template bits -->
+
+  <!--  make it possible to turn off hyphenation when it's giving us probs -->
+  <xsl:template match="para[@hyphenate='false']">
+    <fo:block hyphenate="false" xsl:use-attribute-sets="normal.para.spacing">
+      <xsl:call-template name="anchor"/>
+      <xsl:apply-templates/>
+    </fo:block>
+  </xsl:template>
+
+  <!-- force line break -->
+  <xsl:template match="processing-instruction('linebreak')">
+    <fo:block/>
+  </xsl:template>
+
+  <xsl:attribute-set name="informalfigure.properties">
+    <xsl:attribute name="text-align">center</xsl:attribute>
+  </xsl:attribute-set>
+
 </xsl:stylesheet>