FooBarWidget-mizuho 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. data/LICENSE.txt +20 -0
  2. data/README.markdown +68 -0
  3. data/Rakefile +9 -0
  4. data/asciidoc/BUGS +34 -0
  5. data/asciidoc/BUGS.txt +28 -0
  6. data/asciidoc/CHANGELOG +1585 -0
  7. data/asciidoc/CHANGELOG.txt +1595 -0
  8. data/asciidoc/COPYING +339 -0
  9. data/asciidoc/COPYRIGHT +18 -0
  10. data/asciidoc/INSTALL +82 -0
  11. data/asciidoc/INSTALL.txt +71 -0
  12. data/asciidoc/README +46 -0
  13. data/asciidoc/README.txt +36 -0
  14. data/asciidoc/a2x +641 -0
  15. data/asciidoc/asciidoc.conf +404 -0
  16. data/asciidoc/asciidoc.py +4255 -0
  17. data/asciidoc/common.aap +9 -0
  18. data/asciidoc/dblatex/asciidoc-dblatex.sty +18 -0
  19. data/asciidoc/dblatex/asciidoc-dblatex.xsl +17 -0
  20. data/asciidoc/dblatex/dblatex-readme.txt +22 -0
  21. data/asciidoc/doc/a2x.1 +246 -0
  22. data/asciidoc/doc/a2x.1.txt +195 -0
  23. data/asciidoc/doc/article.css-embedded.html +579 -0
  24. data/asciidoc/doc/article.html +62 -0
  25. data/asciidoc/doc/article.pdf +0 -0
  26. data/asciidoc/doc/article.txt +124 -0
  27. data/asciidoc/doc/asciidoc-revhistory.xml +27 -0
  28. data/asciidoc/doc/asciidoc.1 +161 -0
  29. data/asciidoc/doc/asciidoc.1.css-embedded.html +562 -0
  30. data/asciidoc/doc/asciidoc.1.css.html +212 -0
  31. data/asciidoc/doc/asciidoc.1.html +190 -0
  32. data/asciidoc/doc/asciidoc.1.txt +118 -0
  33. data/asciidoc/doc/asciidoc.conf +8 -0
  34. data/asciidoc/doc/asciidoc.css-embedded.html +7954 -0
  35. data/asciidoc/doc/asciidoc.css.html +7553 -0
  36. data/asciidoc/doc/asciidoc.dict +673 -0
  37. data/asciidoc/doc/asciidoc.html +3502 -0
  38. data/asciidoc/doc/asciidoc.txt +4757 -0
  39. data/asciidoc/doc/asciimath.txt +47 -0
  40. data/asciidoc/doc/book-multi.css-embedded.html +575 -0
  41. data/asciidoc/doc/book-multi.html +72 -0
  42. data/asciidoc/doc/book-multi.txt +159 -0
  43. data/asciidoc/doc/book.css-embedded.html +585 -0
  44. data/asciidoc/doc/book.html +60 -0
  45. data/asciidoc/doc/book.txt +133 -0
  46. data/asciidoc/doc/customers.csv +18 -0
  47. data/asciidoc/doc/faq.txt +262 -0
  48. data/asciidoc/doc/latex-backend.html +224 -0
  49. data/asciidoc/doc/latex-backend.txt +193 -0
  50. data/asciidoc/doc/latexmath.txt +35 -0
  51. data/asciidoc/doc/main.aap +293 -0
  52. data/asciidoc/doc/music-filter.html +513 -0
  53. data/asciidoc/doc/music-filter.pdf +0 -0
  54. data/asciidoc/doc/music-filter.txt +158 -0
  55. data/asciidoc/doc/source-highlight-filter.html +183 -0
  56. data/asciidoc/doc/source-highlight-filter.pdf +0 -0
  57. data/asciidoc/doc/source-highlight-filter.txt +174 -0
  58. data/asciidoc/docbook-xsl/asciidoc-docbook-xsl.txt +71 -0
  59. data/asciidoc/docbook-xsl/chunked.xsl +19 -0
  60. data/asciidoc/docbook-xsl/common.xsl +67 -0
  61. data/asciidoc/docbook-xsl/fo.xsl +117 -0
  62. data/asciidoc/docbook-xsl/htmlhelp.xsl +17 -0
  63. data/asciidoc/docbook-xsl/manpage.xsl +28 -0
  64. data/asciidoc/docbook-xsl/shaded-literallayout.patch +32 -0
  65. data/asciidoc/docbook-xsl/xhtml.xsl +14 -0
  66. data/asciidoc/docbook.conf +606 -0
  67. data/asciidoc/examples/website/CHANGELOG.html +3828 -0
  68. data/asciidoc/examples/website/INSTALL.html +163 -0
  69. data/asciidoc/examples/website/README-website.html +129 -0
  70. data/asciidoc/examples/website/README-website.txt +29 -0
  71. data/asciidoc/examples/website/README.html +125 -0
  72. data/asciidoc/examples/website/a2x.1.html +395 -0
  73. data/asciidoc/examples/website/asciidoc-docbook-xsl.html +165 -0
  74. data/asciidoc/examples/website/asciimath.html +157 -0
  75. data/asciidoc/examples/website/build-website.sh +25 -0
  76. data/asciidoc/examples/website/downloads.html +219 -0
  77. data/asciidoc/examples/website/downloads.txt +98 -0
  78. data/asciidoc/examples/website/faq.html +372 -0
  79. data/asciidoc/examples/website/index.html +398 -0
  80. data/asciidoc/examples/website/index.txt +222 -0
  81. data/asciidoc/examples/website/latex-backend.html +640 -0
  82. data/asciidoc/examples/website/latexmath.html +119 -0
  83. data/asciidoc/examples/website/layout1.conf +161 -0
  84. data/asciidoc/examples/website/layout1.css +65 -0
  85. data/asciidoc/examples/website/layout2.conf +158 -0
  86. data/asciidoc/examples/website/layout2.css +93 -0
  87. data/asciidoc/examples/website/manpage.html +266 -0
  88. data/asciidoc/examples/website/music-filter.html +242 -0
  89. data/asciidoc/examples/website/music1.abc +12 -0
  90. data/asciidoc/examples/website/music1.png +0 -0
  91. data/asciidoc/examples/website/music2.ly +9 -0
  92. data/asciidoc/examples/website/music2.png +0 -0
  93. data/asciidoc/examples/website/source-highlight-filter.html +251 -0
  94. data/asciidoc/examples/website/support.html +78 -0
  95. data/asciidoc/examples/website/support.txt +5 -0
  96. data/asciidoc/examples/website/userguide.html +7597 -0
  97. data/asciidoc/examples/website/version9.html +143 -0
  98. data/asciidoc/examples/website/version9.txt +48 -0
  99. data/asciidoc/filters/code-filter-readme.txt +37 -0
  100. data/asciidoc/filters/code-filter-test-c++.txt +7 -0
  101. data/asciidoc/filters/code-filter-test.txt +15 -0
  102. data/asciidoc/filters/code-filter.conf +8 -0
  103. data/asciidoc/filters/code-filter.py +239 -0
  104. data/asciidoc/filters/music-filter-test.txt +40 -0
  105. data/asciidoc/filters/music-filter.conf +40 -0
  106. data/asciidoc/filters/music2png.py +189 -0
  107. data/asciidoc/filters/source-highlight-filter-test.txt +19 -0
  108. data/asciidoc/filters/source-highlight-filter.conf +100 -0
  109. data/asciidoc/help.conf +213 -0
  110. data/asciidoc/html4.conf +363 -0
  111. data/asciidoc/images/highlighter.png +0 -0
  112. data/asciidoc/images/icons/README +5 -0
  113. data/asciidoc/images/icons/callouts/1.png +0 -0
  114. data/asciidoc/images/icons/callouts/10.png +0 -0
  115. data/asciidoc/images/icons/callouts/11.png +0 -0
  116. data/asciidoc/images/icons/callouts/12.png +0 -0
  117. data/asciidoc/images/icons/callouts/13.png +0 -0
  118. data/asciidoc/images/icons/callouts/14.png +0 -0
  119. data/asciidoc/images/icons/callouts/15.png +0 -0
  120. data/asciidoc/images/icons/callouts/2.png +0 -0
  121. data/asciidoc/images/icons/callouts/3.png +0 -0
  122. data/asciidoc/images/icons/callouts/4.png +0 -0
  123. data/asciidoc/images/icons/callouts/5.png +0 -0
  124. data/asciidoc/images/icons/callouts/6.png +0 -0
  125. data/asciidoc/images/icons/callouts/7.png +0 -0
  126. data/asciidoc/images/icons/callouts/8.png +0 -0
  127. data/asciidoc/images/icons/callouts/9.png +0 -0
  128. data/asciidoc/images/icons/caution.png +0 -0
  129. data/asciidoc/images/icons/example.png +0 -0
  130. data/asciidoc/images/icons/home.png +0 -0
  131. data/asciidoc/images/icons/important.png +0 -0
  132. data/asciidoc/images/icons/next.png +0 -0
  133. data/asciidoc/images/icons/note.png +0 -0
  134. data/asciidoc/images/icons/prev.png +0 -0
  135. data/asciidoc/images/icons/tip.png +0 -0
  136. data/asciidoc/images/icons/up.png +0 -0
  137. data/asciidoc/images/icons/warning.png +0 -0
  138. data/asciidoc/images/smallnew.png +0 -0
  139. data/asciidoc/images/tiger.png +0 -0
  140. data/asciidoc/install.sh +55 -0
  141. data/asciidoc/javascripts/ASCIIMathML.js +938 -0
  142. data/asciidoc/javascripts/LaTeXMathML.js +1223 -0
  143. data/asciidoc/javascripts/toc.js +69 -0
  144. data/asciidoc/lang-es.conf +15 -0
  145. data/asciidoc/latex.conf +663 -0
  146. data/asciidoc/linuxdoc.conf +285 -0
  147. data/asciidoc/math.conf +50 -0
  148. data/asciidoc/stylesheets/docbook-xsl.css +271 -0
  149. data/asciidoc/stylesheets/xhtml-deprecated-manpage.css +21 -0
  150. data/asciidoc/stylesheets/xhtml-deprecated.css +247 -0
  151. data/asciidoc/stylesheets/xhtml11-manpage.css +18 -0
  152. data/asciidoc/stylesheets/xhtml11-quirks.css +49 -0
  153. data/asciidoc/stylesheets/xhtml11.css +284 -0
  154. data/asciidoc/t.conf +20 -0
  155. data/asciidoc/text.conf +16 -0
  156. data/asciidoc/vim/ftdetect/asciidoc_filetype.vim +53 -0
  157. data/asciidoc/vim/syntax/asciidoc.vim +139 -0
  158. data/asciidoc/xhtml-deprecated-css.conf +235 -0
  159. data/asciidoc/xhtml-deprecated.conf +351 -0
  160. data/asciidoc/xhtml11-quirks.conf +57 -0
  161. data/asciidoc/xhtml11.conf +514 -0
  162. data/bin/mizuho +40 -0
  163. data/lib/mizuho/chapter.rb +54 -0
  164. data/lib/mizuho/generator.rb +106 -0
  165. data/lib/mizuho/heading.rb +46 -0
  166. data/lib/mizuho/parser.rb +99 -0
  167. data/lib/mizuho/template.rb +50 -0
  168. data/mizuho.gemspec +34 -0
  169. data/templates/asciidoc.css +358 -0
  170. data/templates/asciidoc.html.erb +86 -0
  171. data/templates/manualsonrails.css +165 -0
  172. data/templates/manualsonrails.html.erb +97 -0
  173. data/test/parser_spec.rb +190 -0
  174. data/test/spec_helper.rb +43 -0
  175. metadata +234 -0
@@ -0,0 +1,71 @@
1
+ AsciiDoc DocBook XSL Stylesheets Notes
2
+ ======================================
3
+
4
+ PDF generation from AsciiDoc generated DocBook using FOP plus DocBook XSL
5
+ Stylesheets.
6
+
7
+ - FOP 0.95beta.
8
+ - DocBook XSL Stylesheets version 1.72.0.
9
+
10
+ Output file customisation is achieved by tweaking the DocBook XSL
11
+ stylesheets. I've tried to keep customization to a minimum and
12
+ confine it to the separate XSL driver files in the distribution
13
+ `./docbook-xsl/` directory (see the User Guide for details).
14
+
15
+ To polish some rough edges I've written some patches for the DocBook
16
+ XSL stylesheets -- you don't need them but they're documented below
17
+ and included in the distribution `./docbook-xsl/` directory.
18
+
19
+
20
+ Manually upgrading Debian to the latest DocBook XSL stylesheets
21
+ ---------------------------------------------------------------
22
+ The DocBook XSL Stylesheets distribution is just a directory full of
23
+ text files and you can switch between releases by changing the
24
+ directory name in the system XML catalog.
25
+
26
+ To upgrade to the latest docbook-xsl stylesheets without having to
27
+ wait for the Debian `docbook-xsl` package:
28
+
29
+ - Download the latest docbook-xsl tarball from
30
+ http://sourceforge.net/projects/docbook/.
31
+
32
+ - Unzip the tarball to `/usr/share/xml/docbook/stylesheet/`:
33
+
34
+ $ cd /usr/share/xml/docbook/stylesheet
35
+ $ sudo tar -xzf /tmp/docbook-xsl-1.72.0.tar.gz
36
+
37
+ - Edit `/etc/xml/docbook-xsl.xml` catalog and replace occurences of
38
+ the current stylesheets directory with the new one (in our example
39
+ it would be `/usr/share/xml/docbook/stylesheet/docbook-xsl-1.72.0`.
40
+
41
+ $ cd /etc/xml/
42
+ $ sudo cp -p docbook-xsl.xml docbook-xsl.xml.ORIG
43
+ $ sudo vi docbook-xsl.xml
44
+
45
+ - Apply optional patches (see below).
46
+
47
+
48
+ Patches to DocBook XSL Stylesheets
49
+ ----------------------------------
50
+ NOTE: You'll find the patch files in the AsciiDoc distribution archive
51
+ `./docbook-xsl/` directory.
52
+
53
+ Shade Literal Block Patch
54
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
55
+ The processing expectation for AsciiDoc LiteralBlocks and
56
+ LiteralParagraphs is that they are not shaded. The
57
+ `shaded-literallayout.patch` was devised to allow AciiDoc Listing
58
+ blocks to be shaded while leaving Literal paragraphs and Literal
59
+ blocks unshaded (the default DocBook XSL Stylesheets behavior is to
60
+ shade all verbatim elements).
61
+
62
+ The patch implements a `shade.literallayout` XSL parameter so that
63
+ shading in literal elements could be disabled while other verbatim
64
+ elements are left shaded (by setting the XSL `shade.verbatim`
65
+ parameter).
66
+
67
+ The relevant patch file is `shaded-literallayout.patch` and it can be
68
+ applied from the DocBook XSL Stylesheets directory:
69
+
70
+ $ cd /usr/share/xml/docbook/stylesheet/docbook-xsl-1.72.0
71
+ $ sudo patch -p0 < /tmp/shaded-literallayout.patch
@@ -0,0 +1,19 @@
1
+ <!--
2
+ Generates chunked XHTML documents from DocBook XML source using DocBook XSL
3
+ stylesheets.
4
+
5
+ NOTE: The URL reference to the current DocBook XSL stylesheets is
6
+ rewritten to point to the copy on the local disk drive by the XML catalog
7
+ rewrite directives so it doesn't need to go out to the Internet for the
8
+ stylesheets. This means you don't need to edit the <xsl:import> elements on
9
+ a machine by machine basis.
10
+ -->
11
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
12
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/>
13
+ <xsl:import href="common.xsl"/>
14
+ <xsl:param name="base.dir" select="'./chunked/'"/>
15
+ <xsl:param name="html.stylesheet" select="'./docbook-xsl.css'"/>
16
+ <xsl:param name="navig.graphics.path">../images/icons/</xsl:param>
17
+ <xsl:param name="admon.graphics.path">../images/icons/</xsl:param>
18
+ <xsl:param name="callout.graphics.path" select="'../images/icons/callouts/'"/>
19
+ </xsl:stylesheet>
@@ -0,0 +1,67 @@
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" select="1"/>
13
+
14
+ <xsl:param name="suppress.navigation" select="0"/>
15
+ <xsl:param name="navig.graphics.extension" select="'.png'"/>
16
+ <xsl:param name="navig.graphics" select="0"/>
17
+ <xsl:param name="navig.graphics.path">./images/icons/</xsl:param>
18
+ <xsl:param name="navig.showtitles">0</xsl:param>
19
+
20
+ <xsl:param name="shade.verbatim" select="0"/>
21
+ <xsl:attribute-set name="shade.verbatim.style">
22
+ <xsl:attribute name="border">0</xsl:attribute>
23
+ <xsl:attribute name="background-color">#E0E0E0</xsl:attribute>
24
+ </xsl:attribute-set>
25
+
26
+ <xsl:param name="admon.graphics" select="1"/>
27
+ <xsl:param name="admon.graphics.path">./images/icons/</xsl:param>
28
+ <xsl:param name="admon.graphics.extension" select="'.png'"/>
29
+ <xsl:param name="admon.style">
30
+ <xsl:text>margin-left: 0; margin-right: 10%;</xsl:text>
31
+ </xsl:param>
32
+ <xsl:param name="admon.textlabel" select="1"/>
33
+
34
+ <xsl:param name="callout.defaultcolumn" select="'60'"/>
35
+ <xsl:param name="callout.graphics.extension" select="'.png'"/>
36
+ <xsl:param name="callout.graphics" select="'1'"/>
37
+ <xsl:param name="callout.graphics.number.limit" select="'10'"/>
38
+ <xsl:param name="callout.graphics.path" select="'./images/icons/callouts/'"/>
39
+ <xsl:param name="callout.list.table" select="'1'"/>
40
+
41
+ <xsl:param name="base.dir" select="'./xhtml/'"/>
42
+ <xsl:param name="chunk.first.sections" select="0"/>
43
+ <xsl:param name="chunk.quietly" select="0"/>
44
+ <xsl:param name="chunk.section.depth" select="1"/>
45
+ <xsl:param name="chunk.toc" select="''"/>
46
+ <xsl:param name="chunk.tocs.and.lots" select="0"/>
47
+
48
+ <xsl:param name="html.cellpadding" select="'4px'"/>
49
+ <xsl:param name="html.cellspacing" select="''"/>
50
+
51
+ <xsl:param name="table.borders.with.css" select="1"/>
52
+ <xsl:param name="table.cell.border.color" select="''"/>
53
+
54
+ <xsl:param name="table.cell.border.style" select="'solid'"/>
55
+ <xsl:param name="table.cell.border.thickness" select="'1px'"/>
56
+ <xsl:param name="table.footnote.number.format" select="'a'"/>
57
+ <xsl:param name="table.footnote.number.symbols" select="''"/>
58
+ <xsl:param name="table.frame.border.color" select="'#527bbd'"/>
59
+ <xsl:param name="table.frame.border.style" select="'solid'"/>
60
+ <xsl:param name="table.frame.border.thickness" select="'2px'"/>
61
+ <xsl:param name="tablecolumns.extension" select="'1'"/>
62
+
63
+ <xsl:param name="highlight.source" select="1"/>
64
+
65
+ <xsl:param name="section.label.includes.component.label" select="1"/>
66
+
67
+ </xsl:stylesheet>
@@ -0,0 +1,117 @@
1
+ <!--
2
+ Generates single FO document from DocBook XML source using DocBook XSL
3
+ stylesheets.
4
+
5
+ See xsl-stylesheets/fo/param.xsl for all parameters.
6
+
7
+ NOTE: The URL reference to the current DocBook XSL stylesheets is
8
+ rewritten to point to the copy on the local disk drive by the XML catalog
9
+ rewrite directives so it doesn't need to go out to the Internet for the
10
+ stylesheets. This means you don't need to edit the <xsl:import> elements on
11
+ a machine by machine basis.
12
+ -->
13
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
14
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
15
+ <xsl:import href="common.xsl"/>
16
+
17
+ <xsl:param name="fop1.extensions" select="1" />
18
+ <xsl:param name="variablelist.as.blocks" select="1" />
19
+
20
+ <xsl:param name="paper.type" select="'A4'"/>
21
+ <!--
22
+ <xsl:param name="paper.type" select="'USletter'"/>
23
+ -->
24
+ <xsl:param name="hyphenate">false</xsl:param>
25
+ <!-- justify, left or right -->
26
+ <xsl:param name="alignment">left</xsl:param>
27
+
28
+ <xsl:param name="body.font.family" select="'serif'"/>
29
+ <xsl:param name="body.font.master">12</xsl:param>
30
+ <xsl:param name="body.font.size">
31
+ <xsl:value-of select="$body.font.master"/><xsl:text>pt</xsl:text>
32
+ </xsl:param>
33
+
34
+ <xsl:param name="body.margin.bottom" select="'0.5in'"/>
35
+ <xsl:param name="body.margin.top" select="'0.5in'"/>
36
+ <xsl:param name="bridgehead.in.toc" select="0"/>
37
+
38
+ <!-- Default fetches image from Internet (long timeouts) -->
39
+ <xsl:param name="draft.watermark.image" select="''"/>
40
+
41
+ <!-- Sets title to body text indent -->
42
+ <xsl:param name="body.start.indent">
43
+ <xsl:choose>
44
+ <xsl:when test="$fop.extensions != 0">0pt</xsl:when>
45
+ <xsl:when test="$passivetex.extensions != 0">0pt</xsl:when>
46
+ <xsl:otherwise>1pc</xsl:otherwise>
47
+ </xsl:choose>
48
+ </xsl:param>
49
+ <xsl:param name="title.margin.left">
50
+ <xsl:choose>
51
+ <xsl:when test="$fop.extensions != 0">-1pc</xsl:when>
52
+ <xsl:when test="$passivetex.extensions != 0">0pt</xsl:when>
53
+ <xsl:otherwise>0pt</xsl:otherwise>
54
+ </xsl:choose>
55
+ </xsl:param>
56
+ <xsl:param name="page.margin.bottom" select="'0.25in'"/>
57
+ <xsl:param name="page.margin.inner">
58
+ <xsl:choose>
59
+ <xsl:when test="$double.sided != 0">0.75in</xsl:when>
60
+ <xsl:otherwise>0.75in</xsl:otherwise>
61
+ </xsl:choose>
62
+ </xsl:param>
63
+ <xsl:param name="page.margin.outer">
64
+ <xsl:choose>
65
+ <xsl:when test="$double.sided != 0">0.5in</xsl:when>
66
+ <xsl:otherwise>0.5in</xsl:otherwise>
67
+ </xsl:choose>
68
+ </xsl:param>
69
+
70
+ <xsl:param name="page.margin.top" select="'0.5in'"/>
71
+ <xsl:param name="page.orientation" select="'portrait'"/>
72
+ <xsl:param name="page.width">
73
+ <xsl:choose>
74
+ <xsl:when test="$page.orientation = 'portrait'">
75
+ <xsl:value-of select="$page.width.portrait"/>
76
+ </xsl:when>
77
+ <xsl:otherwise>
78
+ <xsl:value-of select="$page.height.portrait"/>
79
+ </xsl:otherwise>
80
+ </xsl:choose>
81
+ </xsl:param>
82
+
83
+ <xsl:attribute-set name="monospace.properties">
84
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
85
+ </xsl:attribute-set>
86
+
87
+ <xsl:attribute-set name="admonition.title.properties">
88
+ <xsl:attribute name="font-size">14pt</xsl:attribute>
89
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
90
+ <xsl:attribute name="hyphenate">false</xsl:attribute>
91
+ <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
92
+ </xsl:attribute-set>
93
+
94
+ <xsl:attribute-set name="sidebar.properties" use-attribute-sets="formal.object.properties">
95
+ <xsl:attribute name="border-style">solid</xsl:attribute>
96
+ <xsl:attribute name="border-width">1pt</xsl:attribute>
97
+ <xsl:attribute name="border-color">silver</xsl:attribute>
98
+ <xsl:attribute name="background-color">#ffffee</xsl:attribute>
99
+ <xsl:attribute name="padding-left">12pt</xsl:attribute>
100
+ <xsl:attribute name="padding-right">12pt</xsl:attribute>
101
+ <xsl:attribute name="padding-top">6pt</xsl:attribute>
102
+ <xsl:attribute name="padding-bottom">6pt</xsl:attribute>
103
+ <xsl:attribute name="margin-left">0pt</xsl:attribute>
104
+ <xsl:attribute name="margin-right">12pt</xsl:attribute>
105
+ <xsl:attribute name="margin-top">6pt</xsl:attribute>
106
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
107
+ </xsl:attribute-set>
108
+
109
+ <xsl:param name="callout.graphics" select="'1'"/>
110
+
111
+ <xsl:param name="shade.literallayout" select="0"/>
112
+ <xsl:param name="shade.verbatim" select="1"/>
113
+ <xsl:attribute-set name="shade.verbatim.style">
114
+ <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
115
+ </xsl:attribute-set>
116
+
117
+ </xsl:stylesheet>
@@ -0,0 +1,17 @@
1
+ <!--
2
+ Generates chunked HTML Help HTML documents from DocBook XML source using
3
+ DocBook XSL stylesheets.
4
+
5
+ NOTE: The URL reference to the current DocBook XSL stylesheets is
6
+ rewritten to point to the copy on the local disk drive by the XML catalog
7
+ rewrite directives so it doesn't need to go out to the Internet for the
8
+ stylesheets. This means you don't need to edit the <xsl:import> elements on
9
+ a machine by machine basis.
10
+ -->
11
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
12
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl"/>
13
+ <xsl:import href="common.xsl"/>
14
+ <xsl:param name="base.dir" select="'./htmlhelp/'"/>
15
+ <xsl:param name="htmlhelp.hhp" select="'asciidoc.hhp'"/>
16
+ <xsl:param name="suppress.navigation" select="1"/>
17
+ </xsl:stylesheet>
@@ -0,0 +1,28 @@
1
+ <!--
2
+ Generates single roff manpage document from DocBook XML source using DocBook
3
+ XSL stylesheets.
4
+
5
+ NOTE: The URL reference to the current DocBook XSL stylesheets is
6
+ rewritten to point to the copy on the local disk drive by the XML catalog
7
+ rewrite directives so it doesn't need to go out to the Internet for the
8
+ stylesheets. This means you don't need to edit the <xsl:import> elements on
9
+ a machine by machine basis.
10
+ -->
11
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
12
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"/>
13
+ <xsl:import href="common.xsl"/>
14
+
15
+ <!-- Only render the link text -->
16
+ <xsl:template match="ulink">
17
+ <xsl:variable name="content">
18
+ <xsl:apply-templates/>
19
+ </xsl:variable>
20
+ <xsl:value-of select="$content"/>
21
+ </xsl:template>
22
+
23
+ <!-- Don't automatically generate the REFERENCES section -->
24
+ <xsl:template name="format.links.list">
25
+ </xsl:template>
26
+
27
+ </xsl:stylesheet>
28
+
@@ -0,0 +1,32 @@
1
+ diff -u fo.ORIG/param.xsl fo/param.xsl
2
+ --- fo.ORIG/param.xsl 2005-11-30 19:22:15.992409173 +1300
3
+ +++ fo/param.xsl 2005-11-30 11:25:40.000000000 +1300
4
+ @@ -669,6 +669,7 @@
5
+ </xsl:attribute-set>
6
+ <xsl:param name="segmentedlist.as.table" select="0"/>
7
+ <xsl:param name="shade.verbatim" select="0"/>
8
+ +<xsl:param name="shade.literallayout" select="0"/>
9
+
10
+ <xsl:attribute-set name="shade.verbatim.style">
11
+ <xsl:attribute name="background-color">#E0E0E0</xsl:attribute>
12
+ diff -u fo.ORIG/verbatim.xsl fo/verbatim.xsl
13
+ --- fo.ORIG/verbatim.xsl 2005-11-30 19:22:15.944415115 +1300
14
+ +++ fo/verbatim.xsl 2005-11-30 11:26:12.000000000 +1300
15
+ @@ -105,7 +105,7 @@
16
+ <xsl:choose>
17
+ <xsl:when test="@class='monospaced'">
18
+ <xsl:choose>
19
+ - <xsl:when test="$shade.verbatim != 0">
20
+ + <xsl:when test="$shade.literallayout != 0">
21
+ <fo:block id="{$id}"
22
+ white-space-collapse='false'
23
+ white-space-treatment='preserve'
24
+ @@ -128,7 +128,7 @@
25
+ </xsl:when>
26
+ <xsl:otherwise>
27
+ <xsl:choose>
28
+ - <xsl:when test="$shade.verbatim != 0">
29
+ + <xsl:when test="$shade.literallayout != 0">
30
+ <fo:block id="{$id}"
31
+ wrap-option='no-wrap'
32
+ white-space-collapse='false'
@@ -0,0 +1,14 @@
1
+ <!--
2
+ Generates single XHTML document from DocBook XML source using DocBook XSL
3
+ stylesheets.
4
+
5
+ NOTE: The URL reference to the current DocBook XSL stylesheets is
6
+ rewritten to point to the copy on the local disk drive by the XML catalog
7
+ rewrite directives so it doesn't need to go out to the Internet for the
8
+ stylesheets. This means you don't need to edit the <xsl:import> elements on
9
+ a machine by machine basis.
10
+ -->
11
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
12
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
13
+ <xsl:import href="common.xsl"/>
14
+ </xsl:stylesheet>
@@ -0,0 +1,606 @@
1
+ #
2
+ # docbook.conf
3
+ #
4
+ # Asciidoc configuration file.
5
+ # Default docbook backend.
6
+ #
7
+
8
+ [miscellaneous]
9
+ outfilesuffix=.xml
10
+ # Printable page width in pts.
11
+ pagewidth=380
12
+ pageunits=pt
13
+
14
+ [attributes]
15
+ basebackend=docbook
16
+ basebackend-docbook=
17
+
18
+ [replacements]
19
+ # Line break markup is dropped (there is no DocBook line break tag).
20
+ (?m)^(.*)\s\+$=\1
21
+ ifdef::asciidoc7compatible[]
22
+ # Superscripts.
23
+ \^(.+?)\^=<superscript>\1</superscript>
24
+ # Subscripts.
25
+ ~(.+?)~=<subscript>\1</subscript>
26
+ endif::asciidoc7compatible[]
27
+
28
+ [ruler-blockmacro]
29
+ # Only applies to HTML so don't output anything.
30
+
31
+ [image-inlinemacro]
32
+ <inlinemediaobject>
33
+ <imageobject>
34
+ <imagedata fileref="{imagesdir=}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}/>
35
+ </imageobject>
36
+ <textobject><phrase>{1={target}}</phrase></textobject>
37
+ </inlinemediaobject>
38
+
39
+ [image-blockmacro]
40
+ <figure{id? id="{id}"}><title>{title}</title>
41
+ {title%}<informalfigure{id? id="{id}"}>
42
+ <mediaobject>
43
+ <imageobject>
44
+ <imagedata fileref="{imagesdir=}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}{scaledwidth? width="{scaledwidth}" scalefit="1"}{align? align="{align}"}/>
45
+ </imageobject>
46
+ <textobject><phrase>{1={target}}</phrase></textobject>
47
+ </mediaobject>
48
+ {title#}</figure>
49
+ {title%}</informalfigure>
50
+
51
+ [indexterm-inlinemacro]
52
+ # Inline index term.
53
+ # Generate separate index entries for primary, secondary and tertiary
54
+ # descriptions.
55
+ # Primary only.
56
+ {2%}<indexterm>
57
+ {2%} <primary>{1}</primary>
58
+ {2%}</indexterm>
59
+ # Primary and secondary.
60
+ {2#}{3%}<indexterm>
61
+ {2#}{3%} <primary>{1}</primary><secondary>{2}</secondary>
62
+ {2#}{3%}</indexterm>
63
+ {2#}{3%}<indexterm>
64
+ {2#}{3%} <primary>{2}</primary>
65
+ {2#}{3%}</indexterm>
66
+ # Primary, secondary and tertiary.
67
+ {3#}<indexterm>
68
+ <primary>{1}</primary><secondary>{2}</secondary><tertiary>{3}</tertiary>
69
+ {3#}</indexterm>
70
+ {3#}<indexterm>
71
+ <primary>{2}</primary><secondary>{3}</secondary>
72
+ {3#}</indexterm>
73
+ {3#}<indexterm>
74
+ <primary>{3}</primary>
75
+ {3#}</indexterm>
76
+
77
+ [indexterm2-inlinemacro]
78
+ # Inline index term.
79
+ # Single entry index term that is visible in the primary text flow.
80
+ <indexterm>
81
+ <primary>{1}</primary>
82
+ </indexterm>
83
+ {1}
84
+
85
+ [footnote-inlinemacro]
86
+ # Inline footnote.
87
+ <footnote><simpara>{0}</simpara></footnote>
88
+
89
+ [callout-inlinemacro]
90
+ # Inline callout.
91
+ <co id="{coid}"/>
92
+
93
+ [tags]
94
+ # Bulleted, numbered and labeled list tags.
95
+ ilist=<itemizedlist{id? id="{id}"}>{title?<title>{title}</title>}|</itemizedlist>
96
+ ilistitem=<listitem>|</listitem>
97
+ ilisttext=<simpara>|</simpara>
98
+ olist=<orderedlist{id? id="{id}"}>{title?<title>{title}</title>}|</orderedlist>
99
+ olist2=<orderedlist{id? id="{id}"} numeration="loweralpha">|</orderedlist>
100
+ olistitem=<listitem>|</listitem>
101
+ olisttext=<simpara>|</simpara>
102
+ vlist=<variablelist{id? id="{id}"}>{title?<title>{title}</title>}|</variablelist>
103
+ vlistentry=<varlistentry>|</varlistentry>
104
+ vlistterm=<term>|</term>
105
+ vlisttext=<simpara>|</simpara>
106
+ vlistitem=<listitem>|</listitem>
107
+ # Horizontal labeled list (implemented with two column table).
108
+ # Hardwired column widths to 30%,70% because the current crop of PDF
109
+ # generators do not auto calculate column widths.
110
+ hlist=<{title?table}{title!informaltable}{id? id="{id}"} tabstyle="{style=hlabeledlist}" pgwide="0" frame="none" colsep="0" rowsep="0">{title?<title>{title}</title>}<tgroup cols="2"><colspec colwidth="{1=3}*"/><colspec colwidth="{2=7}*"/><tbody valign="top">|</tbody></tgroup><{title?/table}{title!/informaltable}>
111
+ hlistentry=<row>|</row>
112
+ hlisttext=<simpara>|</simpara>
113
+ hlistterm=<entry><simpara>|</simpara></entry>
114
+ hlistitem=<entry>|</entry>
115
+
116
+ # Question and Answer list.
117
+ qlist=<qandaset{id? id="{id}"}>{title?<title>{title}</title>}|</qandaset>
118
+ qlistentry=<qandaentry>|</qandaentry>
119
+ qlistterm=<question><simpara>|</simpara></question>
120
+ qlistitem=<answer>|</answer>
121
+ qlisttext=<simpara>|</simpara>
122
+ # Bibliography list.
123
+ blist=|
124
+ blistitem=<bibliomixed>|</bibliomixed>
125
+ blisttext=<bibliomisc>|</bibliomisc>
126
+ # Glossary list.
127
+ glist=|
128
+ glistentry=<glossentry>|</glossentry>
129
+ glistterm=<glossterm>|</glossterm>
130
+ glistitem=<glossdef>|</glossdef>
131
+ glisttext=<simpara>|</simpara>
132
+ # Callout list.
133
+ colist=<calloutlist{id? id="{id}"}>{title?<title>{title}</title>}|</calloutlist>
134
+ colistitem=<callout arearefs="{coids}">|</callout>
135
+ colisttext=<simpara>|</simpara>
136
+
137
+ # Quoted text
138
+ emphasis=<emphasis>|</emphasis>
139
+ strong=<emphasis role="strong">|</emphasis>
140
+ monospaced=<literal>|</literal>
141
+ quoted={amp}#8220;|{amp}#8221;
142
+ unquoted=|
143
+ subscript=<subscript>|</subscript>
144
+ superscript=<superscript>|</superscript>
145
+
146
+ # $$ inline passthrough.
147
+ $$passthrough=|
148
+
149
+ # Inline macros
150
+ [http-inlinemacro]
151
+ <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
152
+ [https-inlinemacro]
153
+ <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
154
+ [ftp-inlinemacro]
155
+ <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
156
+ [file-inlinemacro]
157
+ <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
158
+ [mailto-inlinemacro]
159
+ <ulink url="mailto:{target}">{0={target}}</ulink>
160
+ [callto-inlinemacro]
161
+ <ulink url="{name}:{target}">{0={target}}</ulink>
162
+ [link-inlinemacro]
163
+ <ulink url="{target}">{0={target}}</ulink>
164
+ # anchor:id[text]
165
+ [anchor-inlinemacro]
166
+ <anchor id="{target}" xreflabel="{0=[{target}]}"/>
167
+ # [[id,text]]
168
+ [anchor2-inlinemacro]
169
+ <anchor id="{1}" xreflabel="{2=[{1}]}"/>
170
+ # [[[id]]]
171
+ [anchor3-inlinemacro]
172
+ <anchor id="{1}" xreflabel="[{1}]"/>[{1}]
173
+ # xref:id[text]
174
+ [xref-inlinemacro]
175
+ <link linkend="{target}">{0}</link>
176
+ {2%}<xref linkend="{target}"/>
177
+ # <<id,text>>
178
+ [xref2-inlinemacro]
179
+ <link linkend="{1}">{2}</link>
180
+ {2%}<xref linkend="{1}"/>
181
+
182
+
183
+ # Special word macros
184
+ [emphasizedwords]
185
+ <emphasis>{words}</emphasis>
186
+ [monospacedwords]
187
+ <literal>{words}</literal>
188
+ [strongwords]
189
+ <emphasis role="strong">{words}</emphasis>
190
+
191
+ # Paragraph substitution.
192
+ [paragraph]
193
+ <formalpara{id? id="{id}"}><title>{title}</title><para>
194
+ {title%}<simpara{id? id="{id}"}>
195
+ |
196
+ {title%}</simpara>
197
+ {title#}</para></formalpara>
198
+ {empty}
199
+
200
+ [admonitionparagraph]
201
+ <{name}{id? id="{id}"}><simpara>|</simpara></{name}>
202
+
203
+ [literalparagraph]
204
+ # The literal block employs the same markup.
205
+ template::[literalblock]
206
+
207
+ [verseparagraph]
208
+ template::[verseblock]
209
+
210
+ # Delimited blocks.
211
+ [literalblock]
212
+ <example><title>{title}</title>
213
+ <literallayout{id? id="{id}"} class="{font=monospaced}">
214
+ |
215
+ </literallayout>
216
+ {title#}</example>
217
+
218
+ [listingblock]
219
+ <example><title>{title}</title>
220
+ <screen>
221
+ |
222
+ </screen>
223
+ {title#}</example>
224
+
225
+ [sidebarblock]
226
+ <sidebar{id? id="{id}"}>
227
+ <title>{title}</title>
228
+ |
229
+ </sidebar>
230
+
231
+ [passthroughblock]
232
+ |
233
+
234
+ [quoteblock]
235
+ <blockquote{id? id="{id}"}>
236
+ <title>{title}</title>
237
+ # Include attribution only if either {attribution} or {citetitle} are defined.
238
+ {attribution#}<attribution>
239
+ {attribution%}{citetitle#}<attribution>
240
+ {attribution}
241
+ <citetitle>{citetitle}</citetitle>
242
+ {attribution#}</attribution>
243
+ {attribution%}{citetitle#}</attribution>
244
+ |
245
+ </blockquote>
246
+
247
+ [verseblock]
248
+ <blockquote{id? id="{id}"}>
249
+ <title>{title}</title>
250
+ # Include attribution only if either {attribution} or {citetitle} are defined.
251
+ {attribution#}<attribution>
252
+ {attribution%}{citetitle#}<attribution>
253
+ {attribution}
254
+ <citetitle>{citetitle}</citetitle>
255
+ {attribution#}</attribution>
256
+ {attribution%}{citetitle#}</attribution>
257
+ <literallayout>
258
+ |
259
+ </literallayout>
260
+ </blockquote>
261
+
262
+ [exampleblock]
263
+ <{title?example}{title!informalexample}{id? id="{id}"}>
264
+ <title>{title}</title>
265
+ |
266
+ </{title?example}{title!informalexample}>
267
+
268
+ [admonitionblock]
269
+ <{name}{id? id="{id}"}>
270
+ <title>{title}</title>
271
+ |
272
+ </{name}>
273
+
274
+ # Tables.
275
+ [tabledef-default]
276
+ template=table
277
+ colspec=<colspec colwidth="{colwidth}{pageunits}" align="{colalign}"/>
278
+ bodyrow=<row>|</row>
279
+ bodydata=<entry>|</entry>
280
+
281
+ [table]
282
+ <{title?table}{title!informaltable}{id? id="{id}"} pgwide="0"
283
+ frame="{frame=topbot}"
284
+ {grid%rowsep="0" colsep="0"}
285
+ rowsep="{grid@none|cols:0:1}" colsep="{grid@none|rows:0:1}"
286
+ >
287
+ <title>{title}</title>
288
+ <tgroup cols="{cols}">
289
+ {colspecs}
290
+ {headrows#}<thead>
291
+ {headrows}
292
+ {headrows#}</thead>
293
+ {footrows#}<tfoot>
294
+ {footrows}
295
+ {footrows#}</tfoot>
296
+ <tbody>
297
+ {bodyrows}
298
+ </tbody>
299
+ </tgroup>
300
+ </{title?table}{title!informaltable}>
301
+
302
+ [specialsections]
303
+ ifdef::doctype-article[]
304
+ ^Abstract$=sect-abstract
305
+ endif::doctype-article[]
306
+
307
+ ifdef::doctype-book[]
308
+ ^Colophon$=sect-colophon
309
+ ^Dedication$=sect-dedication
310
+ ^Preface$=sect-preface
311
+ endif::doctype-book[]
312
+
313
+ ^Index$=sect-index
314
+ ^(Bibliography|References)$=sect-bibliography
315
+ ^Glossary$=sect-glossary
316
+ ^Appendix [A-Z][:.](?P<title>.*)$=sect-appendix
317
+
318
+ # Special sections.
319
+ [sect-preface]
320
+ <preface{id? id="{id}"}>
321
+ <title>{title}</title>
322
+ |
323
+ </preface>
324
+
325
+ [sect-index]
326
+ <index{id? id="{id}"}>
327
+ <title>{title}</title>
328
+ |
329
+ </index>
330
+
331
+ [sect-bibliography]
332
+ <bibliography{id? id="{id}"}>
333
+ <title>{title}</title>
334
+ |
335
+ </bibliography>
336
+
337
+ [sect-glossary]
338
+ <glossary{id? id="{id}"}>
339
+ <title>{title}</title>
340
+ |
341
+ </glossary>
342
+
343
+ [sect-appendix]
344
+ <appendix{id? id="{id}"}>
345
+ <title>{title}</title>
346
+ |
347
+ </appendix>
348
+
349
+
350
+ [header-declarations]
351
+ <?xml version="1.0" encoding="{encoding}"?>
352
+ <!DOCTYPE {doctype-article?article}{doctype-book?book}{doctype-manpage?refentry} PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
353
+
354
+ #-------------------------
355
+ # article document type
356
+ #-------------------------
357
+ ifdef::doctype-article[]
358
+
359
+ [header]
360
+ template::[header-declarations]
361
+
362
+ <article lang="{lang=en}">
363
+ {doctitle#}<articleinfo>
364
+ <title>{doctitle}</title>
365
+ <date>{date}</date>
366
+ {authored#}<author>
367
+ <firstname>{firstname}</firstname>
368
+ <othername>{middlename}</othername>
369
+ <surname>{lastname}</surname>
370
+ <affiliation><address><email>{email}</email></address></affiliation>
371
+ {authored#}</author>
372
+ <authorinitials>{authorinitials}</authorinitials>
373
+
374
+ # If file named like source document with -revhistory.xml suffix exists
375
+ # include it as the document history, otherwise use current revision.
376
+ {revisionhistory#}{include:{docdir}/{docname}-revhistory.xml}
377
+ {revisionhistory%}<revhistory><revision><revnumber>{revision}</revnumber><date>{date}</date>{authorinitials?<authorinitials>{authorinitials}</authorinitials>}{revremark?<revremark>{revremark}</revremark>}</revision></revhistory>
378
+
379
+ <corpname>{companyname}</corpname>
380
+ {doctitle#}</articleinfo>
381
+
382
+ [footer]
383
+ </article>
384
+
385
+ [preamble]
386
+ # Untitled elements between header and first section title.
387
+ |
388
+
389
+ [sect-abstract]
390
+ <abstract{id? id="{id}"}>
391
+ |
392
+ </abstract>
393
+
394
+ [sect1]
395
+ <section{id? id="{id}"}>
396
+ <title>{title}</title>
397
+ |
398
+ </section>
399
+
400
+ [sect2]
401
+ <section{id? id="{id}"}>
402
+ <title>{title}</title>
403
+ |
404
+ </section>
405
+
406
+ [sect3]
407
+ <section{id? id="{id}"}>
408
+ <title>{title}</title>
409
+ |
410
+ </section>
411
+
412
+ [sect4]
413
+ <section{id? id="{id}"}>
414
+ <title>{title}</title>
415
+ |
416
+ </section>
417
+
418
+ endif::doctype-article[]
419
+
420
+ #-------------------------
421
+ # manpage document type
422
+ #-------------------------
423
+ ifdef::doctype-manpage[]
424
+
425
+ [replacements]
426
+ # The roff format does not substitute special characters so just print them as
427
+ # text.
428
+ \(C\)=(C)
429
+ \(TM\)=(TM)
430
+
431
+ [header]
432
+ template::[header-declarations]
433
+ <refentry lang="{lang=en}">
434
+ <refmeta>
435
+ <refentrytitle>{mantitle}</refentrytitle>
436
+ <manvolnum>{manvolnum}</manvolnum>
437
+ <refmiscinfo class="source">{mansource}</refmiscinfo>
438
+ <refmiscinfo class="version">{manversion}</refmiscinfo>
439
+ <refmiscinfo class="manual">{manmanual}</refmiscinfo>
440
+ </refmeta>
441
+ <refnamediv>
442
+ <refname>{manname}</refname>
443
+ <refpurpose>{manpurpose}</refpurpose>
444
+ </refnamediv>
445
+
446
+ [footer]
447
+ </refentry>
448
+
449
+ # Section macros
450
+ [sect-synopsis]
451
+ <refsynopsisdiv{id? id="{id}"}>
452
+ |
453
+ </refsynopsisdiv>
454
+
455
+ [sect1]
456
+ <refsect1{id? id="{id}"}>
457
+ <title>{title}</title>
458
+ |
459
+ </refsect1>
460
+
461
+ [sect2]
462
+ <refsect2{id? id="{id}"}>
463
+ <title>{title}</title>
464
+ |
465
+ </refsect2>
466
+
467
+ [sect3]
468
+ <refsect3{id? id="{id}"}>
469
+ <title>{title}</title>
470
+ |
471
+ </refsect3>
472
+
473
+ endif::doctype-manpage[]
474
+
475
+ #-------------------------
476
+ # book document type
477
+ #-------------------------
478
+ ifdef::doctype-book[]
479
+
480
+ [header]
481
+ template::[header-declarations]
482
+
483
+ <book lang="{lang=en}">
484
+ {doctitle#}<bookinfo>
485
+ <title>{doctitle}</title>
486
+ <date>{date}</date>
487
+ {authored#}<author>
488
+ <firstname>{firstname}</firstname>
489
+ <othername>{middlename}</othername>
490
+ <surname>{lastname}</surname>
491
+ <affiliation><address><email>{email}</email></address></affiliation>
492
+ {authored#}</author>
493
+ <authorinitials>{authorinitials}</authorinitials>
494
+
495
+ # If file named like source document with -revhistory.xml suffix exists
496
+ # include it as the document history, otherwise use current revision.
497
+ {revisionhistory#}{include:{docdir}/{docname}-revhistory.xml}
498
+ {revisionhistory%}<revhistory><revision><revnumber>{revision}</revnumber><date>{date}</date>{authorinitials?<authorinitials>{authorinitials}</authorinitials>}{revremark?<revremark>{revremark}</revremark>}</revision></revhistory>
499
+
500
+ <corpname>{companyname}</corpname>
501
+ {doctitle#}</bookinfo>
502
+
503
+ [footer]
504
+ </book>
505
+
506
+ [preamble]
507
+ # Preamble is not allowed in DocBook book so wrap it in a preface.
508
+ <preface{id? id="{id}"}>
509
+ <title>Preface</title>
510
+ |
511
+ </preface>
512
+
513
+ [sect-dedication]
514
+ <dedication{id? id="{id}"}>
515
+ |
516
+ </dedication>
517
+
518
+ [sect-colophon]
519
+ <colophon{id? id="{id}"}>
520
+ |
521
+ </colophon>
522
+
523
+ [sect0]
524
+ <part{id? id="{id}"}>
525
+ <title>{title}</title>
526
+ |
527
+ </part>
528
+
529
+ [sect1]
530
+ <chapter{id? id="{id}"}>
531
+ <title>{title}</title>
532
+ |
533
+ </chapter>
534
+
535
+ [sect2]
536
+ <section{id? id="{id}"}>
537
+ <title>{title}</title>
538
+ |
539
+ </section>
540
+
541
+ [sect3]
542
+ <section{id? id="{id}"}>
543
+ <title>{title}</title>
544
+ |
545
+ </section>
546
+
547
+ [sect4]
548
+ <section{id? id="{id}"}>
549
+ <title>{title}</title>
550
+ |
551
+ </section>
552
+
553
+ endif::doctype-book[]
554
+
555
+ ifdef::sgml[]
556
+ #
557
+ # Optional DocBook SGML.
558
+ #
559
+ # Most of the differences between DocBook XML and DocBook SGML boils
560
+ # down to the empty element syntax: SGML does not like the XML empty
561
+ # element <.../> syntax, use <...> instead.
562
+ #
563
+ [miscellaneous]
564
+ outfilesuffix=.sgml
565
+
566
+ [header-declarations]
567
+ <!DOCTYPE {doctype-article?article}{doctype-book?book}{doctype-manpage?refentry} PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
568
+
569
+ [tabledef-default]
570
+ colspec=<colspec colwidth="{colwidth}{pageunits}" align="{colalign}">
571
+
572
+ [image-inlinemacro]
573
+ <inlinemediaobject>
574
+ <imageobject>
575
+ <imagedata fileref="{imagesdir=}{target}"{width? width="{width}"}{height? depth="{height}"}>
576
+ </imageobject>
577
+ <textobject><phrase>{1={target}}</phrase></textobject>
578
+ </inlinemediaobject>
579
+
580
+ [image-blockmacro]
581
+ <figure><title>{title}</title>
582
+ {title%}<informalfigure>
583
+ <mediaobject>
584
+ <imageobject>
585
+ <imagedata fileref="{imagesdir=}{target}"{width? width="{width}"}{height? depth="{height}"}>
586
+ </imageobject>
587
+ <textobject><phrase>{1={target}}</phrase></textobject>
588
+ </mediaobject>
589
+ {title#}</figure>
590
+ {title%}</informalfigure>
591
+
592
+ # Inline macros
593
+ [xref-inlinemacro]
594
+ <link linkend="{target}">{0}</link>
595
+ {2%}<xref linkend="{target}">
596
+ [xref2-inlinemacro]
597
+ # <<id,text>>
598
+ <link linkend="{1}">{2}</link>
599
+ {2%}<xref linkend="{1}">
600
+ [anchor-inlinemacro]
601
+ <anchor id="{target}" xreflabel="{0=[{target}]}">
602
+ [anchor2-inlinemacro]
603
+ # [[id,text]]
604
+ <anchor id="{1}" xreflabel="{2=[{1}]}">
605
+
606
+ endif::sgml[]