diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-15 11:55:59 +0100 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-15 11:55:59 +0100 |
| commit | 22083287912ebd552e33b79f7c567bc966376d43 (patch) | |
| tree | a16fa012a97a249e25a405d4092b0a89321bfaf6 /documentation/template/poky-db-pdf.xsl | |
| parent | 13a702e9e572a2dc9f6b52a1531a2237d4d98ff1 (diff) | |
| download | poky-22083287912ebd552e33b79f7c567bc966376d43.tar.gz | |
handbook: Move into documentation directory
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'documentation/template/poky-db-pdf.xsl')
| -rw-r--r-- | documentation/template/poky-db-pdf.xsl | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/documentation/template/poky-db-pdf.xsl b/documentation/template/poky-db-pdf.xsl new file mode 100644 index 0000000000..3dd065a57e --- /dev/null +++ b/documentation/template/poky-db-pdf.xsl | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | <?xml version='1.0'?> | ||
| 2 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0"> | ||
| 3 | |||
| 4 | <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl" /> | ||
| 5 | |||
| 6 | <!-- check project-plan.sh for how this is generated, needed to tweak | ||
| 7 | the cover page | ||
| 8 | --> | ||
| 9 | <xsl:include href="/tmp/titlepage.xsl"/> | ||
| 10 | |||
| 11 | <!-- To force a page break in document, i.e per section add a | ||
| 12 | <?hard-pagebreak?> tag. | ||
| 13 | --> | ||
| 14 | <xsl:template match="processing-instruction('hard-pagebreak')"> | ||
| 15 | <fo:block break-before='page' /> | ||
| 16 | </xsl:template> | ||
| 17 | |||
| 18 | <!--Fix for defualt indent getting TOC all wierd.. | ||
| 19 | See http://sources.redhat.com/ml/docbook-apps/2005-q1/msg00455.html | ||
| 20 | FIXME: must be a better fix | ||
| 21 | --> | ||
| 22 | <xsl:param name="body.start.indent" select="'0'"/> | ||
| 23 | <!--<xsl:param name="title.margin.left" select="'0'"/>--> | ||
| 24 | |||
| 25 | <!-- stop long-ish header titles getting wrapped --> | ||
| 26 | <xsl:param name="header.column.widths">1 10 1</xsl:param> | ||
| 27 | |||
| 28 | <!-- customise headers and footers a little --> | ||
| 29 | |||
| 30 | <xsl:template name="head.sep.rule"> | ||
| 31 | <xsl:if test="$header.rule != 0"> | ||
| 32 | <xsl:attribute name="border-bottom-width">0.5pt</xsl:attribute> | ||
| 33 | <xsl:attribute name="border-bottom-style">solid</xsl:attribute> | ||
| 34 | <xsl:attribute name="border-bottom-color">#cccccc</xsl:attribute> | ||
| 35 | </xsl:if> | ||
| 36 | </xsl:template> | ||
| 37 | |||
| 38 | <xsl:template name="foot.sep.rule"> | ||
| 39 | <xsl:if test="$footer.rule != 0"> | ||
| 40 | <xsl:attribute name="border-top-width">0.5pt</xsl:attribute> | ||
| 41 | <xsl:attribute name="border-top-style">solid</xsl:attribute> | ||
| 42 | <xsl:attribute name="border-top-color">#cccccc</xsl:attribute> | ||
| 43 | </xsl:if> | ||
| 44 | </xsl:template> | ||
| 45 | |||
| 46 | <xsl:attribute-set name="header.content.properties"> | ||
| 47 | <xsl:attribute name="color">#cccccc</xsl:attribute> | ||
| 48 | </xsl:attribute-set> | ||
| 49 | |||
| 50 | <xsl:attribute-set name="footer.content.properties"> | ||
| 51 | <xsl:attribute name="color">#cccccc</xsl:attribute> | ||
| 52 | </xsl:attribute-set> | ||
| 53 | |||
| 54 | |||
| 55 | <!-- general settings --> | ||
| 56 | |||
| 57 | <xsl:param name="fop1.extensions" select="1"></xsl:param> | ||
| 58 | <xsl:param name="paper.type" select="'A4'"></xsl:param> | ||
| 59 | <xsl:param name="section.autolabel" select="1"></xsl:param> | ||
| 60 | <xsl:param name="body.font.family" select="'verasans'"></xsl:param> | ||
| 61 | <xsl:param name="title.font.family" select="'verasans'"></xsl:param> | ||
| 62 | <xsl:param name="monospace.font.family" select="'veramono'"></xsl:param> | ||
| 63 | |||
| 64 | </xsl:stylesheet> | ||
