Doc updates for version 1.8.4
[fw/altos] / doc / common.xsl
1 <!--
2   Inlcuded in xhtml.xsl, xhtml.chunked.xsl, htmlhelp.xsl.
3   Contains common XSL stylesheets parameters.
4   Output documents styled by docbook.css.
5 -->
6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
7 <xsl:param name="html.stylesheet" select="'docbook-xsl.css'"/>
8
9 <xsl:param name="htmlhelp.chm" select="'htmlhelp.chm'"/>
10 <xsl:param name="htmlhelp.hhc.section.depth" select="5"/>
11
12 <xsl:param name="section.autolabel">
13   <xsl:choose>
14     <xsl:when test="/processing-instruction('asciidoc-numbered')">1</xsl:when>
15     <xsl:otherwise>0</xsl:otherwise>
16   </xsl:choose>
17 </xsl:param>
18
19 <xsl:param name="suppress.navigation" select="0"/>
20 <xsl:param name="navig.graphics.extension" select="'.png'"/>
21 <xsl:param name="navig.graphics" select="0"/>
22 <xsl:param name="navig.graphics.path">images/icons/</xsl:param>
23 <xsl:param name="navig.showtitles">0</xsl:param>
24
25 <xsl:param name="shade.verbatim" select="0"/>
26 <xsl:attribute-set name="shade.verbatim.style">
27   <xsl:attribute name="border">0</xsl:attribute>
28   <xsl:attribute name="background-color">#E0E0E0</xsl:attribute>
29 </xsl:attribute-set>
30
31 <xsl:param name="admon.graphics" select="1"/>
32 <xsl:param name="admon.graphics.path">images/icons/</xsl:param>
33 <xsl:param name="admon.graphics.extension" select="'.png'"/>
34 <xsl:param name="admon.style">
35   <xsl:text>margin-left: 0; margin-right: 10%;</xsl:text>
36 </xsl:param>
37 <xsl:param name="admon.textlabel" select="1"/>
38
39 <xsl:param name="callout.defaultcolumn" select="'60'"/>
40 <xsl:param name="callout.graphics.extension" select="'.png'"/>
41 <xsl:param name="callout.graphics" select="'1'"/>
42 <xsl:param name="callout.graphics.number.limit" select="'10'"/>
43 <xsl:param name="callout.graphics.path" select="'images/icons/callouts/'"/>
44 <xsl:param name="callout.list.table" select="'1'"/>
45
46 <!-- This does not seem to work. -->
47 <xsl:param name="section.autolabel.max.depth" select="2"/>
48
49 <xsl:param name="chunk.first.sections" select="1"/>
50 <xsl:param name="chunk.section.depth" select="1"/>
51 <xsl:param name="chunk.quietly" select="0"/>
52 <xsl:param name="chunk.toc" select="''"/>
53 <xsl:param name="chunk.tocs.and.lots" select="0"/>
54
55 <xsl:param name="html.cellpadding" select="'4px'"/>
56 <xsl:param name="html.cellspacing" select="''"/>
57
58 <xsl:param name="table.borders.with.css" select="1"/>
59 <xsl:param name="table.cell.border.color" select="'#78079a'"/>
60 <xsl:param name="table.cell.border.style" select="'solid'"/>
61 <xsl:param name="table.cell.border.thickness" select="'1px'"/>
62 <xsl:param name="table.footnote.number.format" select="'a'"/>
63 <xsl:param name="table.footnote.number.symbols" select="''"/>
64 <xsl:param name="table.frame.border.color" select="'#78079a'"/>
65 <xsl:param name="table.frame.border.style" select="'solid'"/>
66 <xsl:param name="table.frame.border.thickness" select="'1px'"/>
67 <xsl:param name="tablecolumns.extension" select="'1'"/>
68
69 <xsl:attribute-set name="revhistory.title.properties">
70   <xsl:attribute name="font-size">12pt</xsl:attribute>
71   <xsl:attribute name="font-weight">bold</xsl:attribute>
72   <xsl:attribute name="text-align">center</xsl:attribute>
73 </xsl:attribute-set>
74
75 <xsl:attribute-set name="revhistory.table.properties">
76   <xsl:attribute name="border">0.5pt solid #78079a</xsl:attribute>
77   <xsl:attribute name="width">50%</xsl:attribute>
78 </xsl:attribute-set>
79
80 <xsl:attribute-set name="revhistory.table.cell.properties">
81   <xsl:attribute name="border">0.5pt solid #78079a</xsl:attribute>
82   <xsl:attribute name="font-size">12pt</xsl:attribute>
83   <xsl:attribute name="padding">2pt</xsl:attribute>
84 </xsl:attribute-set>
85
86 <xsl:param name="generate.revhistory.link" select="1"/>
87
88 <xsl:param name="highlight.source" select="1"/>
89
90 <xsl:param name="section.label.includes.component.label" select="1"/>
91
92 <!--
93   Table of contents inserted by <?asciidoc-toc?> processing instruction.
94 -->
95 <xsl:param name="generate.toc">
96   <xsl:choose>
97     <xsl:when test="/processing-instruction('asciidoc-toc')">
98 article toc,title
99 book    toc,title,figure,table,example,equation
100       <!-- The only way I could find that suppressed book chapter TOCs -->
101       <xsl:if test="$generate.section.toc.level != 0">
102 chapter   toc,title
103 part      toc,title
104 preface   toc,title
105 qandadiv  toc
106 qandaset  toc
107 reference toc,title
108 sect1     toc
109 sect2     toc
110 sect3     toc
111 sect4     toc
112 sect5     toc
113 section   toc
114 set       toc,title
115       </xsl:if>
116     </xsl:when>
117     <xsl:otherwise>
118 article nop
119 book    nop
120     </xsl:otherwise>
121   </xsl:choose>
122 </xsl:param>
123
124 </xsl:stylesheet>