-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfop.xsl
More file actions
84 lines (83 loc) · 3.64 KB
/
fop.xsl
File metadata and controls
84 lines (83 loc) · 3.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version='1.0'?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:d="http://docbook.org/ns/docbook">
<!--xsl:import href="/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/fo/docbook.xsl"/-->
<xsl:import href="/opt/local/share/xsl/docbook-xsl-ns/fo/docbook.xsl" />
<xsl:param name="paper.type" select="'A4'"/>
<xsl:param name="double.sided" select="1"/>
<xsl:param name="page.margin.bottom">2in</xsl:param>
<xsl:param name="page.margin.inner">1.25in</xsl:param>
<xsl:param name="page.margin.outer">1.25in</xsl:param>
<xsl:param name="page.margin.top">1in</xsl:param>
<xsl:param name="fop1.extensions" select="1"/>
<xsl:attribute-set name="section.title.level4.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.1"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="section.title.level3.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.21"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="section.title.level2.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.33"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="section.title.level1.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.5"></xsl:value-of>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="body.start.indent">
<xsl:choose>
<xsl:when test="$fop1.extensions != 0">0pt</xsl:when>
<xsl:otherwise>4pc</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:attribute-set name="monospace.properties">
<xsl:attribute name="font-size">9pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="monospace.verbatim.properties" use-attribute-sets="verbatim.properties monospace.properties">
<xsl:attribute name="font-size">9pt</xsl:attribute>
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
<xsl:attribute name="hyphenation-character">►</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="shade.verbatim.style">
<xsl:attribute name="border">"thin black solid"</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="bookmarks.collapse" select="0"></xsl:param>
<xsl:attribute-set name="verbatim.properties">
<xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-width">1pt</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute>
<xsl:attribute name="padding">3pt</xsl:attribute>
</xsl:attribute-set>
<!--xsl:template match="d:programlisting[@role='CLexer']">
<xsl:copy>
<xsl:attribute name="language">CLexer</xsl:attribute>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="d:programlisting[@role='MakefileLexer']">
<xsl:copy>
<xsl:attribute name="language">MakefileLexer</xsl:attribute>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template-->
<!--xsl:template match="d:para[@role='indent']">
<xsl:copy>
<xsl:attribute name="text-indent">0.5em</xsl:attribute>
<xsl:message>indent para matched</xsl:message>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template-->
<xsl:param name="highlight.source" select="1"></xsl:param>
<xsl:param name="highlight.xslthl.config">/Users/gannu/Downloads/xslthl-2.1.3/highlighters/xslthl-config.xml</xsl:param>
</xsl:stylesheet>