]> git.evergreen-ils.org Git - working/Evergreen.git/blob - stylesheets/evergreen_docbook_files/evergreen_fo_old.xsl
fix uo my account. Remove default width setting for images in HTML.
[working/Evergreen.git] / stylesheets / evergreen_docbook_files / evergreen_fo_old.xsl
1 <?xml version='1.0'?>\r
2 <xsl:stylesheet  \r
3     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">\r
4 \r
5 <xsl:import href="docbook-xsl/fo/docbook.xsl"/>  \r
6 \r
7 <!-- main pdf stylesheet -->\r
8 <!--<xsl:import href="evergreen_titlepage.templates.xsl"/> --><!-- custom title font sizes and layout -->\r
9 <!--<xsl:import href="evergreen_titlepage.xsl"/> --> <!-- hide revisions and set section.title.levelx.properties -->\r
10 \r
11 \r
12 <!--<xsl:import href="evergreen_pagesetup.xsl"/> --><!-- custom header/footer -->\r
13 <!--<xsl:import href="docbook-xsl/fo/evergreen_inline.xsl"/> --><!-- custom inline styles (italics for giumenu, etc), must be in /fo/ to work -->\r
14 <!--<xsl:import href="evergreen_fo_graphics.xsl"/>  --><!-- customized graphics.xsl, scales pdf images to 75% unless scale="x" or scalefit="1" -->\r
15 \r
16 <xsl:param name="page.margin.inner" select="'0.75in'"/>\r
17 <xsl:param name="page.margin.outer" select="'0.75in'"/>\r
18 <xsl:param name="page.margin.top" select="'0.2in'"/>\r
19 <xsl:param name="keep.relative.image.uris" select="0"/>\r
20 <xsl:param name="admon.graphics" select="1"/> <!-- adds image for note, tip, and caution -->\r
21 <xsl:param name="admon.textlabel" select="0"/> <!-- removes title of note, tip, and caution -->\r
22 <xsl:param name="admon.graphics.path" select="'media/'"/>\r
23 <xsl:param name="use.role.for.media.object" select="1"/>\r
24 <xsl:param name="ulink.show" select="0"/>\r
25 <xsl:param name="fop1.extensions" select="1"/>\r
26 <xsl:param name="header.rule" select="0"/> <!-- remove header horizontal rule -->\r
27 <xsl:param name="body.start.indent" select="'0pt'"/> <!-- reduce left-indent to provide more content space -->\r
28 <xsl:param name="body.font.master" select="'11'"/>\r
29 <xsl:param name="glossary.sort" select="1"/> <!-- sort glossterms aphabetically regardless of order in xml docs -->\r
30 <xsl:param name="glossterm.separation" select="'0.1in'"/> <!-- vertical space between term and definition paragraph -->\r
31 <xsl:param name="hyphenate">false</xsl:param> <!-- hyphenation pattern not installed yet, turn off to avoid output error -->\r
32 <xsl:param name="footer.column.widths">8 1 1</xsl:param> <!-- set relative width of footer columns, leaving plenty of room for chapter titles -->\r
33 \r
34 \r
35  \r
36   \r
37   <!-- set some footer properties -->\r
38 <xsl:attribute-set name="footer.content.properties">\r
39   <xsl:attribute name="font-family">Helvetica</xsl:attribute>\r
40   <xsl:attribute name="font-size">9pt</xsl:attribute>\r
41   <xsl:attribute name="padding-top">5pt</xsl:attribute>\r
42 </xsl:attribute-set>\r
43 \r
44 \r
45 <!-- define empty header.content template to override default template from fo/pagesetup.xsl with no header -->\r
46 <xsl:template name="header.content">\r
47 </xsl:template>\r
48 \r
49 <!-- keep step text and images together, not split by page breaks -->\r
50   <xsl:attribute-set name="informal.object.properties">\r
51   <xsl:attribute name="keep-together.within-column">always</xsl:attribute>\r
52 </xsl:attribute-set>\r
53 \r
54 <!-- set link color/style in pdf cross references -->\r
55 <xsl:attribute-set name="xref.properties">\r
56   <xsl:attribute name="color">#304F14</xsl:attribute>\r
57   <xsl:attribute name="text-decoration">underline</xsl:attribute>  \r
58 </xsl:attribute-set>\r
59   \r
60  \r
61 <!-- set link color/style for link tag --> \r
62   <xsl:attribute-set name="link.properties">\r
63     <xsl:attribute name="color">#304F14</xsl:attribute>\r
64     <xsl:attribute name="text-decoration">underline</xsl:attribute>    \r
65   </xsl:attribute-set>\r
66   \r
67 <!-- formatting of admonitions - note, caution, tip -->\r
68   <xsl:attribute-set name="graphical.admonition.properties">\r
69     <xsl:attribute name="font-size">10pt</xsl:attribute>   \r
70     <xsl:attribute name="border">0.5pt solid #304F14</xsl:attribute> \r
71     <xsl:attribute name="padding">1pt</xsl:attribute>\r
72   </xsl:attribute-set>\r
73   \r
74   <xsl:attribute-set name="admonition.properties">\r
75     <xsl:attribute name="margin-right">0.1in</xsl:attribute>\r
76     <xsl:attribute name="margin-top">0.1in</xsl:attribute>\r
77     <xsl:attribute name="margin-bottom">0.1in</xsl:attribute>\r
78   </xsl:attribute-set>\r
79   \r
80  <!-- format pdf table of contents -->\r
81   <xsl:attribute-set name="toc.line.properties">\r
82     <xsl:attribute name="color">#304F14</xsl:attribute>\r
83     <xsl:attribute name="font-size">10pt</xsl:attribute> \r
84     <xsl:attribute name="font-family">Helvetica</xsl:attribute>\r
85     <xsl:attribute name="text-decoration">underline</xsl:attribute>  \r
86   </xsl:attribute-set>\r
87   \r
88 <!-- properties for informal tables, especially to allow breaking across pages -->\r
89   \r
90   <xsl:attribute-set name="informaltable.properties">\r
91     <xsl:attribute name="font-size">10pt</xsl:attribute>    \r
92     <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>\r
93   </xsl:attribute-set>\r
94   \r
95   \r
96 \r
97 </xsl:stylesheet>\r