| 192 |
- |
1 |
#
|
|
|
2 |
# docbook45.conf
|
|
|
3 |
#
|
|
|
4 |
# Asciidoc DocBook 4.5 configuration file.
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
[miscellaneous]
|
|
|
8 |
outfilesuffix=.xml
|
|
|
9 |
# Printable page width and units.
|
|
|
10 |
# Used to calculate DocBook CALS tables absolute column and table widths.
|
|
|
11 |
pagewidth=425
|
|
|
12 |
pageunits=*
|
|
|
13 |
|
|
|
14 |
[attributes]
|
|
|
15 |
basebackend=docbook
|
|
|
16 |
basebackend-docbook=
|
|
|
17 |
basebackend-docbook45=
|
|
|
18 |
# For backward compatibility (docbook backend was renamed to docbook45 at 8.6.2)
|
|
|
19 |
backend-docbook=
|
|
|
20 |
# toc and numbered are set to maintain original default behavior.
|
|
|
21 |
toc=
|
|
|
22 |
numbered=
|
|
|
23 |
|
|
|
24 |
[replacements2]
|
|
|
25 |
# Line break markup. Custom processing instruction in fo.xsl.
|
|
|
26 |
(?m)^(.*)\s\+$=\1<?asciidoc-br?>
|
|
|
27 |
|
|
|
28 |
[replacements]
|
|
|
29 |
ifdef::asciidoc7compatible[]
|
|
|
30 |
# Superscripts.
|
|
|
31 |
\^(.+?)\^=<superscript>\1</superscript>
|
|
|
32 |
# Subscripts.
|
|
|
33 |
~(.+?)~=<subscript>\1</subscript>
|
|
|
34 |
endif::asciidoc7compatible[]
|
|
|
35 |
|
|
|
36 |
[ruler-blockmacro]
|
|
|
37 |
# Uses custom processing instructions in fo.xsl and asciidoc-dblatex.xsl.
|
|
|
38 |
<simpara><?asciidoc-hr?></simpara>
|
|
|
39 |
|
|
|
40 |
[pagebreak-blockmacro]
|
|
|
41 |
# Uses custom processing instructions in fo.xsl and asciidoc-dblatex.xsl.
|
|
|
42 |
<simpara><?asciidoc-pagebreak?></simpara>
|
|
|
43 |
|
|
|
44 |
[blockdef-pass]
|
|
|
45 |
latexmath-style=template="latexmathblock",subs=(),posattrs=(),filter="unwraplatex.py"
|
|
|
46 |
|
|
|
47 |
[macros]
|
|
|
48 |
# math macros.
|
|
|
49 |
(?su)[\\]?(?P<name>latexmath):(?P<subslist>\S*?)\[(?:\$\s*)?(?P<passtext>.*?)(?:\s*\$)?(?<!\\)\]=[]
|
|
|
50 |
^(?P<name>latexmath)::(?P<subslist>\S*?)(\[(?:\\\[\s*)?(?P<passtext>.*?)(?:\s*\\\])?\])$=#[]
|
|
|
51 |
|
|
|
52 |
[latexmath-inlinemacro]
|
|
|
53 |
<inlineequation>
|
|
|
54 |
<alt><![CDATA[${passtext}$]]></alt>
|
|
|
55 |
<inlinemediaobject><textobject><phrase></phrase></textobject></inlinemediaobject>
|
|
|
56 |
</inlineequation>
|
|
|
57 |
|
|
|
58 |
[latexmath-blockmacro]
|
|
|
59 |
<informalequation>
|
|
|
60 |
<alt><![CDATA[{backslash}[{passtext}{backslash}]]]></alt>
|
|
|
61 |
<mediaobject><textobject><phrase></phrase></textobject></mediaobject>
|
|
|
62 |
</informalequation>
|
|
|
63 |
|
|
|
64 |
[latexmathblock]
|
|
|
65 |
<equation{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><title>{title}</title>
|
|
|
66 |
{title%}<informalequation{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
67 |
<alt><![CDATA[\[|\]]]></alt>
|
|
|
68 |
<mediaobject><textobject><phrase></phrase></textobject></mediaobject>
|
|
|
69 |
{title#}</equation>
|
|
|
70 |
{title%}</informalequation>
|
|
|
71 |
|
|
|
72 |
[image-inlinemacro]
|
|
|
73 |
<inlinemediaobject>
|
|
|
74 |
<imageobject>
|
|
|
75 |
<imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}{scale? scale="{scale}"}/>
|
|
|
76 |
</imageobject>
|
|
|
77 |
<textobject><phrase>{alt={target}}</phrase></textobject>
|
|
|
78 |
</inlinemediaobject>
|
|
|
79 |
|
|
|
80 |
[image-blockmacro]
|
|
|
81 |
<figure{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{pgwide-option? pgwide="1"}><title>{title}</title>
|
|
|
82 |
{title%}<informalfigure{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{pgwide-option?<?dbfo pgwide="1"?>}
|
|
|
83 |
# DocBook XSL Stylesheets custom processing instructions.
|
|
|
84 |
<?dbfo keep-together="{breakable-option#auto}"?>
|
|
|
85 |
<?dbfo keep-together="{unbreakable-option#always}"?>
|
|
|
86 |
<mediaobject>
|
|
|
87 |
<imageobject>
|
|
|
88 |
<imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? contentwidth="{width}"}{height? contentdepth="{height}"}{scale? scale="{scale}"}{scaledwidth? width="{scaledwidth}" scalefit="1"}{align? align="{align}"}/>
|
|
|
89 |
</imageobject>
|
|
|
90 |
<textobject><phrase>{alt={target}}</phrase></textobject>
|
|
|
91 |
</mediaobject>
|
|
|
92 |
{title#}</figure>
|
|
|
93 |
{title%}</informalfigure>
|
|
|
94 |
|
|
|
95 |
[indexterm-inlinemacro]
|
|
|
96 |
# Index term.
|
|
|
97 |
# Generate separate index entries for primary, secondary and tertiary
|
|
|
98 |
# descriptions.
|
|
|
99 |
# Primary only.
|
|
|
100 |
{2%}<indexterm>
|
|
|
101 |
{2%} <primary>{1}</primary>
|
|
|
102 |
{2%}</indexterm>
|
|
|
103 |
# Primary and secondary.
|
|
|
104 |
{2#}{3%}<indexterm>
|
|
|
105 |
{2#}{3%} <primary>{1}</primary><secondary>{2}</secondary>
|
|
|
106 |
{2#}{3%}</indexterm>
|
|
|
107 |
{2#}{3%}<indexterm>
|
|
|
108 |
{2#}{3%} <primary>{2}</primary>
|
|
|
109 |
{2#}{3%}</indexterm>
|
|
|
110 |
# Primary, secondary and tertiary.
|
|
|
111 |
{3#}<indexterm>
|
|
|
112 |
<primary>{1}</primary><secondary>{2}</secondary><tertiary>{3}</tertiary>
|
|
|
113 |
{3#}</indexterm>
|
|
|
114 |
{3#}<indexterm>
|
|
|
115 |
<primary>{2}</primary><secondary>{3}</secondary>
|
|
|
116 |
{3#}</indexterm>
|
|
|
117 |
{3#}<indexterm>
|
|
|
118 |
<primary>{3}</primary>
|
|
|
119 |
{3#}</indexterm>
|
|
|
120 |
|
|
|
121 |
[indexterm2-inlinemacro]
|
|
|
122 |
# Index term.
|
|
|
123 |
# Single entry index term that is visible in the primary text flow.
|
|
|
124 |
<indexterm><primary>{1}</primary></indexterm>{1}
|
|
|
125 |
|
|
|
126 |
[footnote-inlinemacro]
|
|
|
127 |
# Footnote.
|
|
|
128 |
<footnote><simpara>{0}</simpara></footnote>
|
|
|
129 |
|
|
|
130 |
[footnoteref-inlinemacro]
|
|
|
131 |
# Footnote reference.
|
|
|
132 |
{2#}<footnote id="{1}"><simpara>{2}</simpara></footnote>
|
|
|
133 |
{2%}<footnoteref linkend="{1}" />
|
|
|
134 |
|
|
|
135 |
[callout-inlinemacro]
|
|
|
136 |
# Callout.
|
|
|
137 |
<co id="{coid}"/>
|
|
|
138 |
|
|
|
139 |
# List tags.
|
|
|
140 |
[listtags-bulleted]
|
|
|
141 |
list=<itemizedlist{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{compact-option? spacing="compact"}>{unbreakable-option? <?dbfo keep-together="always"?>}{title?<title>{title}</title>}|</itemizedlist>
|
|
|
142 |
item=<listitem>|</listitem>
|
|
|
143 |
text=<simpara>|</simpara>
|
|
|
144 |
|
|
|
145 |
[listtags-numbered]
|
|
|
146 |
list=<orderedlist{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"} numeration="{style}"{compact-option? spacing="compact"}>{unbreakable-option? <?dbfo keep-together="always"?>}{title?<title>{title}</title>}{start?<?dbfo start="{start}"?><?dbhtml start="{start}"?>}|</orderedlist>
|
|
|
147 |
item=<listitem>|</listitem>
|
|
|
148 |
text=<simpara>|</simpara>
|
|
|
149 |
|
|
|
150 |
[listtags-labeled]
|
|
|
151 |
list=<variablelist{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{title?<title>{title}</title>}|</variablelist>
|
|
|
152 |
entry=<varlistentry>|</varlistentry>
|
|
|
153 |
label=
|
|
|
154 |
term=<term>|</term>
|
|
|
155 |
item=<listitem>|</listitem>
|
|
|
156 |
text=<simpara>|</simpara>
|
|
|
157 |
|
|
|
158 |
[listtags-horizontal]
|
|
|
159 |
# Horizontal labeled list (implemented with two column table).
|
|
|
160 |
# Hardwired column widths to 30%,70% because the current crop of PDF
|
|
|
161 |
# generators do not auto calculate column widths.
|
|
|
162 |
list=<{title?table}{title!informaltable}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{style? tabstyle="{style}"}{pgwide-option? pgwide="1"} frame="none" colsep="0" rowsep="0">{title?<title>{title}</title>}<tgroup cols="2"><colspec colwidth="{labelwidth=15}*"/><colspec colwidth="{itemwidth=85}*"/><tbody valign="top">|</tbody></tgroup><{title?/table}{title!/informaltable}>
|
|
|
163 |
entry=<row>|</row>
|
|
|
164 |
label=<entry>|</entry>
|
|
|
165 |
term=<simpara>|</simpara>
|
|
|
166 |
item=<entry>|</entry>
|
|
|
167 |
text=<simpara>|</simpara>
|
|
|
168 |
|
|
|
169 |
[listtags-callout]
|
|
|
170 |
list=<calloutlist{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{title?<title>{title}</title>}|</calloutlist>
|
|
|
171 |
item=<callout arearefs="{coids}">|</callout>
|
|
|
172 |
text=<para>|</para>
|
|
|
173 |
|
|
|
174 |
[listtags-qanda]
|
|
|
175 |
list=<qandaset{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{title?<title>{title}</title>}|</qandaset>
|
|
|
176 |
entry=<qandaentry>|</qandaentry>
|
|
|
177 |
label=<question>|</question>
|
|
|
178 |
term=<simpara>|</simpara>
|
|
|
179 |
item=<answer>|</answer>
|
|
|
180 |
text=<simpara>|</simpara>
|
|
|
181 |
|
|
|
182 |
[listtags-bibliography]
|
|
|
183 |
list=<bibliodiv{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>{title?<title>{title}</title>}|</bibliodiv>
|
|
|
184 |
item=<bibliomixed>|</bibliomixed>
|
|
|
185 |
text=<bibliomisc>|</bibliomisc>
|
|
|
186 |
|
|
|
187 |
[listtags-glossary]
|
|
|
188 |
list=
|
|
|
189 |
entry=<glossentry>|</glossentry>
|
|
|
190 |
label=
|
|
|
191 |
term=<glossterm>|</glossterm>
|
|
|
192 |
item=<glossdef>|</glossdef>
|
|
|
193 |
text=<simpara>|</simpara>
|
|
|
194 |
|
|
|
195 |
[tags]
|
|
|
196 |
# Quoted text
|
|
|
197 |
emphasis=<emphasis>{1?<phrase role="{1}">}|{1?</phrase>}</emphasis>
|
|
|
198 |
strong=<emphasis role="strong">{1?<phrase role="{1}">}|{1?</phrase>}</emphasis>
|
|
|
199 |
monospaced=<literal>{1?<phrase role="{1}">}|{1?</phrase>}</literal>
|
|
|
200 |
singlequoted={lsquo}{1?<phrase role="{1}">}|{1?</phrase>}{rsquo}
|
|
|
201 |
doublequoted={ldquo}{1?<phrase role="{1}">}|{1?</phrase>}{rdquo}
|
|
|
202 |
unquoted={1?<phrase role="{1}">}|{1?</phrase>}
|
|
|
203 |
subscript=<subscript>{1?<phrase role="{1}">}|{1?</phrase>}</subscript>
|
|
|
204 |
superscript=<superscript>{1?<phrase role="{1}">}|{1?</phrase>}</superscript>
|
|
|
205 |
|
|
|
206 |
ifdef::deprecated-quotes[]
|
|
|
207 |
# Override with deprecated quote attributes.
|
|
|
208 |
emphasis={role?<phrase role="{role}">}<emphasis>|</emphasis>{role?</phrase>}
|
|
|
209 |
strong={role?<phrase role="{role}">}<emphasis role="strong">|</emphasis>{role?</phrase>}
|
|
|
210 |
monospaced={role?<phrase role="{role}">}<literal>|</literal>{role?</phrase>}
|
|
|
211 |
singlequoted={role?<phrase role="{role}">}{amp}#8216;|{amp}#8217;{role?</phrase>}
|
|
|
212 |
doublequoted={role?<phrase role="{role}">}{amp}#8220;|{amp}#8221;{role?</phrase>}
|
|
|
213 |
unquoted={role?<phrase role="{role}">}|{role?</phrase>}
|
|
|
214 |
subscript={role?<phrase role="{role}">}<subscript>|</subscript>{role?</phrase>}
|
|
|
215 |
superscript={role?<phrase role="{role}">}<superscript>|</superscript>{role?</phrase>}
|
|
|
216 |
endif::deprecated-quotes[]
|
|
|
217 |
|
|
|
218 |
# Inline macros
|
|
|
219 |
[http-inlinemacro]
|
|
|
220 |
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
|
|
221 |
[https-inlinemacro]
|
|
|
222 |
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
|
|
223 |
[ftp-inlinemacro]
|
|
|
224 |
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
|
|
225 |
[file-inlinemacro]
|
|
|
226 |
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
|
|
227 |
[irc-inlinemacro]
|
|
|
228 |
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
|
|
|
229 |
[mailto-inlinemacro]
|
|
|
230 |
<ulink url="mailto:{target}">{0={target}}</ulink>
|
|
|
231 |
[callto-inlinemacro]
|
|
|
232 |
<ulink url="{name}:{target}">{0={target}}</ulink>
|
|
|
233 |
[link-inlinemacro]
|
|
|
234 |
<ulink url="{target}">{0={target}}</ulink>
|
|
|
235 |
# anchor:id[text]
|
|
|
236 |
[anchor-inlinemacro]
|
|
|
237 |
<anchor id="{target}" xreflabel="{0=[{target}]}"/>
|
|
|
238 |
# [[id,text]]
|
|
|
239 |
[anchor2-inlinemacro]
|
|
|
240 |
<anchor id="{1}" xreflabel="{2=[{1}]}"/>
|
|
|
241 |
# [[[id]]]
|
|
|
242 |
[anchor3-inlinemacro]
|
|
|
243 |
<anchor id="{1}" xreflabel="[{1}]"/>[{1}]
|
|
|
244 |
# xref:id[text]
|
|
|
245 |
[xref-inlinemacro]
|
|
|
246 |
<link linkend="{target}">{0}</link>
|
|
|
247 |
{0%}<xref linkend="{target}"/>
|
|
|
248 |
# <<id,text>>
|
|
|
249 |
[xref2-inlinemacro]
|
|
|
250 |
<link linkend="{1}">{2}</link>
|
|
|
251 |
{2%}<xref linkend="{1}"/>
|
|
|
252 |
# // comment line
|
|
|
253 |
[comment-inlinemacro]
|
|
|
254 |
{showcomments#}<remark>{passtext}</remark>
|
|
|
255 |
|
|
|
256 |
[comment-blockmacro]
|
|
|
257 |
{showcomments#}<remark>{passtext}</remark>
|
|
|
258 |
|
|
|
259 |
[literal-inlinemacro]
|
|
|
260 |
# Inline literal.
|
|
|
261 |
<literal>{passtext}</literal>
|
|
|
262 |
|
|
|
263 |
# Special word macros
|
|
|
264 |
[emphasizedwords]
|
|
|
265 |
<emphasis>{words}</emphasis>
|
|
|
266 |
[monospacedwords]
|
|
|
267 |
<literal>{words}</literal>
|
|
|
268 |
[strongwords]
|
|
|
269 |
<emphasis role="strong">{words}</emphasis>
|
|
|
270 |
|
|
|
271 |
# Paragraph substitution.
|
|
|
272 |
[paragraph]
|
|
|
273 |
<formalpara{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><title>{title}</title><para>
|
|
|
274 |
{title%}<simpara{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
275 |
|
|
|
|
276 |
{title%}</simpara>
|
|
|
277 |
{title#}</para></formalpara>
|
|
|
278 |
{empty}
|
|
|
279 |
|
|
|
280 |
[admonitionparagraph]
|
|
|
281 |
<{name}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><simpara>|</simpara></{name}>
|
|
|
282 |
|
|
|
283 |
# Delimited blocks.
|
|
|
284 |
[literalblock]
|
|
|
285 |
<formalpara{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><title>{title}</title><para>
|
|
|
286 |
{title#}<literallayout class="monospaced">
|
|
|
287 |
{title%}<literallayout{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"} class="monospaced">
|
|
|
288 |
|
|
|
|
289 |
</literallayout>
|
|
|
290 |
{title#}</para></formalpara>
|
|
|
291 |
|
|
|
292 |
[listingblock]
|
|
|
293 |
<formalpara{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}><title>{title}</title><para>
|
|
|
294 |
{title#}<screen>
|
|
|
295 |
{title%}<screen{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
296 |
|
|
|
|
297 |
</screen>
|
|
|
298 |
{title#}</para></formalpara>
|
|
|
299 |
|
|
|
300 |
[sidebarblock-open]
|
|
|
301 |
<sidebar{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
302 |
<title>{title}</title>
|
|
|
303 |
|
|
|
304 |
[sidebarblock-close]
|
|
|
305 |
</sidebar>
|
|
|
306 |
|
|
|
307 |
[sidebarblock]
|
|
|
308 |
template::[sidebarblock-open]
|
|
|
309 |
|
|
|
|
310 |
template::[sidebarblock-close]
|
|
|
311 |
|
|
|
312 |
[sidebarparagraph]
|
|
|
313 |
template::[sidebarblock-open]
|
|
|
314 |
<simpara>|</simpara>
|
|
|
315 |
template::[sidebarblock-close]
|
|
|
316 |
|
|
|
317 |
[abstractblock-open]
|
|
|
318 |
<abstract{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
319 |
<title>{title}</title>
|
|
|
320 |
|
|
|
321 |
[abstractblock-close]
|
|
|
322 |
</abstract>
|
|
|
323 |
|
|
|
324 |
[abstractblock]
|
|
|
325 |
template::[abstractblock-open]
|
|
|
326 |
|
|
|
|
327 |
template::[abstractblock-close]
|
|
|
328 |
|
|
|
329 |
[abstractparagraph]
|
|
|
330 |
template::[abstractblock-open]
|
|
|
331 |
<simpara>|</simpara>
|
|
|
332 |
template::[abstractblock-close]
|
|
|
333 |
|
|
|
334 |
[openblock]
|
|
|
335 |
|
|
|
|
336 |
|
|
|
337 |
[partintroblock-open]
|
|
|
338 |
<partintro{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
339 |
<title>{title}</title>
|
|
|
340 |
|
|
|
341 |
[partintroblock-close]
|
|
|
342 |
</partintro>
|
|
|
343 |
|
|
|
344 |
[partintroblock]
|
|
|
345 |
template::[partintroblock-open]
|
|
|
346 |
|
|
|
|
347 |
template::[partintroblock-close]
|
|
|
348 |
|
|
|
349 |
[partintroparagraph]
|
|
|
350 |
template::[partintroblock-open]
|
|
|
351 |
<simpara>|</simpara>
|
|
|
352 |
template::[partintroblock-close]
|
|
|
353 |
|
|
|
354 |
[quote-open]
|
|
|
355 |
# Common quote and verse element template.
|
|
|
356 |
<blockquote{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
357 |
<title>{title}</title>
|
|
|
358 |
# Include attribution only if either {attribution} or {citetitle} is defined.
|
|
|
359 |
{attribution#}<attribution>
|
|
|
360 |
{attribution%}{citetitle#}<attribution>
|
|
|
361 |
{attribution}
|
|
|
362 |
<citetitle>{citetitle}</citetitle>
|
|
|
363 |
{attribution#}</attribution>
|
|
|
364 |
{attribution%}{citetitle#}</attribution>
|
|
|
365 |
|
|
|
366 |
[quote-close]
|
|
|
367 |
</blockquote>
|
|
|
368 |
|
|
|
369 |
[quoteblock]
|
|
|
370 |
template::[quote-open]
|
|
|
371 |
|
|
|
|
372 |
template::[quote-close]
|
|
|
373 |
|
|
|
374 |
[verseblock]
|
|
|
375 |
template::[quote-open]
|
|
|
376 |
<literallayout>|</literallayout>
|
|
|
377 |
template::[quote-close]
|
|
|
378 |
|
|
|
379 |
[quoteparagraph]
|
|
|
380 |
template::[quote-open]
|
|
|
381 |
<simpara>|</simpara>
|
|
|
382 |
template::[quote-close]
|
|
|
383 |
|
|
|
384 |
[exampleblock-open]
|
|
|
385 |
<{title?example}{title!informalexample}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
386 |
# DocBook XSL Stylesheets custom processing instructions.
|
|
|
387 |
<?dbfo keep-together="{breakable-option#auto}"?>
|
|
|
388 |
<?dbfo keep-together="{unbreakable-option#always}"?>
|
|
|
389 |
<title>{title}</title>
|
|
|
390 |
|
|
|
391 |
[exampleblock-close]
|
|
|
392 |
</{title?example}{title!informalexample}>
|
|
|
393 |
|
|
|
394 |
[exampleblock]
|
|
|
395 |
template::[exampleblock-open]
|
|
|
396 |
|
|
|
|
397 |
template::[exampleblock-close]
|
|
|
398 |
|
|
|
399 |
[exampleparagraph]
|
|
|
400 |
template::[exampleblock-open]
|
|
|
401 |
<simpara>|</simpara>
|
|
|
402 |
template::[exampleblock-close]
|
|
|
403 |
|
|
|
404 |
[admonitionblock]
|
|
|
405 |
<{name}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
406 |
<title>{title}</title>
|
|
|
407 |
|
|
|
|
408 |
</{name}>
|
|
|
409 |
|
|
|
410 |
# Tables.
|
|
|
411 |
[tabletags-default]
|
|
|
412 |
colspec=<colspec colname="col_{colnumber}" colwidth="{width!{colpcwidth}*}{width?{colabswidth}{pageunits}}"/>
|
|
|
413 |
bodyrow=<row>|</row>
|
|
|
414 |
headdata=<entry align="{halign}" valign="{valign}"{colspan@1:: namest="col_{colstart}" nameend="col_{colend}"}{morerows@0:: morerows="{morerows}"}>|</entry>
|
|
|
415 |
bodydata=<entry align="{halign}" valign="{valign}"{colspan@1:: namest="col_{colstart}" nameend="col_{colend}"}{morerows@0:: morerows="{morerows}"}>|</entry>
|
|
|
416 |
paragraph=<simpara>|</simpara>
|
|
|
417 |
|
|
|
418 |
[tabletags-emphasis]
|
|
|
419 |
paragraph=<simpara><emphasis>|</emphasis></simpara>
|
|
|
420 |
|
|
|
421 |
[tabletags-header]
|
|
|
422 |
paragraph=<simpara><emphasis role="strong">|</emphasis></simpara>
|
|
|
423 |
|
|
|
424 |
[tabletags-strong]
|
|
|
425 |
paragraph=<simpara><emphasis role="strong">|</emphasis></simpara>
|
|
|
426 |
|
|
|
427 |
[tabletags-monospaced]
|
|
|
428 |
paragraph=<simpara><literal>|</literal></simpara>
|
|
|
429 |
|
|
|
430 |
[tabletags-verse]
|
|
|
431 |
bodydata=<entry align="{halign}" valign="{valign}"{colspan@1:: namest="col_{colstart}" nameend="col_{colend}"}{morerows@0:: morerows="{morerows}"}><literallayout>|</literallayout></entry>
|
|
|
432 |
paragraph=
|
|
|
433 |
|
|
|
434 |
[tabletags-literal]
|
|
|
435 |
bodydata=<entry align="{halign}" valign="{valign}"{colspan@1:: namest="col_{colstart}" nameend="col_{colend}"}{morerows@0:: morerows="{morerows}"}><literallayout class="monospaced">|</literallayout></entry>
|
|
|
436 |
paragraph=
|
|
|
437 |
|
|
|
438 |
[tabletags-asciidoc]
|
|
|
439 |
paragraph=
|
|
|
440 |
|
|
|
441 |
[table]
|
|
|
442 |
<{title?table}{title!informaltable}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}{pgwide-option? pgwide="1"}
|
|
|
443 |
frame="{frame=all}"
|
|
|
444 |
{grid%rowsep="1" colsep="1"}
|
|
|
445 |
rowsep="{grid@none|cols:0:1}" colsep="{grid@none|rows:0:1}"
|
|
|
446 |
>
|
|
|
447 |
<title>{title}</title>
|
|
|
448 |
# DocBook XSL Stylesheets custom processing instructions.
|
|
|
449 |
<?dbhtml table-width="{width}"?>
|
|
|
450 |
<?dbfo table-width="{width}"?>
|
|
|
451 |
<?dblatex table-width="{width}"?>
|
|
|
452 |
<?dbfo keep-together="{breakable-option#auto}"?>
|
|
|
453 |
<?dbfo keep-together="{unbreakable-option#always}"?>
|
|
|
454 |
<tgroup cols="{colcount}">
|
|
|
455 |
{colspecs}
|
|
|
456 |
{headrows#}<thead>
|
|
|
457 |
{headrows}
|
|
|
458 |
{headrows#}</thead>
|
|
|
459 |
{footrows#}<tfoot>
|
|
|
460 |
{footrows}
|
|
|
461 |
{footrows#}</tfoot>
|
|
|
462 |
<tbody>
|
|
|
463 |
{bodyrows}
|
|
|
464 |
</tbody>
|
|
|
465 |
</tgroup>
|
|
|
466 |
</{title?table}{title!informaltable}>
|
|
|
467 |
|
|
|
468 |
#--------------------------------------------------------------------
|
|
|
469 |
# Deprecated old table definitions.
|
|
|
470 |
#
|
|
|
471 |
|
|
|
472 |
[old_tabledef-default]
|
|
|
473 |
template=old_table
|
|
|
474 |
colspec=<colspec colwidth="{colwidth}{pageunits}" align="{colalign}"/>
|
|
|
475 |
bodyrow=<row>|</row>
|
|
|
476 |
bodydata=<entry>|</entry>
|
|
|
477 |
|
|
|
478 |
[old_table]
|
|
|
479 |
<{title?table}{title!informaltable}{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"} pgwide="0"
|
|
|
480 |
frame="{frame=topbot}"
|
|
|
481 |
{grid%rowsep="0" colsep="0"}
|
|
|
482 |
rowsep="{grid@none|cols:0:1}" colsep="{grid@none|rows:0:1}"
|
|
|
483 |
>
|
|
|
484 |
<title>{title}</title>
|
|
|
485 |
<tgroup cols="{cols}">
|
|
|
486 |
{colspecs}
|
|
|
487 |
{headrows#}<thead>
|
|
|
488 |
{headrows}
|
|
|
489 |
{headrows#}</thead>
|
|
|
490 |
{footrows#}<tfoot>
|
|
|
491 |
{footrows}
|
|
|
492 |
{footrows#}</tfoot>
|
|
|
493 |
<tbody>
|
|
|
494 |
{bodyrows}
|
|
|
495 |
</tbody>
|
|
|
496 |
</tgroup>
|
|
|
497 |
</{title?table}{title!informaltable}>
|
|
|
498 |
|
|
|
499 |
# End of deprecated old table definitions.
|
|
|
500 |
#--------------------------------------------------------------------
|
|
|
501 |
|
|
|
502 |
# Special sections.
|
|
|
503 |
[preface]
|
|
|
504 |
<preface{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
505 |
<title>{title=}</title>
|
|
|
506 |
|
|
|
|
507 |
</preface>
|
|
|
508 |
|
|
|
509 |
[index]
|
|
|
510 |
<index{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
511 |
<title>{title}</title>
|
|
|
512 |
|
|
|
|
513 |
</index>
|
|
|
514 |
|
|
|
515 |
[bibliography]
|
|
|
516 |
<bibliography{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
517 |
<title>{title}</title>
|
|
|
518 |
|
|
|
|
519 |
</bibliography>
|
|
|
520 |
|
|
|
521 |
[glossary]
|
|
|
522 |
<glossary{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
523 |
<title>{title}</title>
|
|
|
524 |
|
|
|
|
525 |
</glossary>
|
|
|
526 |
|
|
|
527 |
[appendix]
|
|
|
528 |
<appendix{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
529 |
<title>{title}</title>
|
|
|
530 |
|
|
|
|
531 |
</appendix>
|
|
|
532 |
|
|
|
533 |
[floatingtitle]
|
|
|
534 |
<bridgehead{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"} renderas="sect{level}">{title}</bridgehead>
|
|
|
535 |
|
|
|
536 |
|
|
|
537 |
[header-declarations]
|
|
|
538 |
<?xml version="1.0" encoding="{encoding}"?>
|
|
|
539 |
<!DOCTYPE {doctype-article?article}{doctype-book?book}{doctype-manpage?refentry} PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
|
|
|
540 |
{toc#}<?asciidoc-toc?>
|
|
|
541 |
{numbered#}<?asciidoc-numbered?>
|
|
|
542 |
|
|
|
543 |
[+docinfo]
|
|
|
544 |
{notitle%} <title>{doctitle}</title>
|
|
|
545 |
<date>{revdate}</date>
|
|
|
546 |
# To ensure valid articleinfo/bookinfo when there is no AsciiDoc header.
|
|
|
547 |
{doctitle%}{revdate%}<date>{docdate}</date>
|
|
|
548 |
{authored#}<author>
|
|
|
549 |
<firstname>{firstname}</firstname>
|
|
|
550 |
<othername>{middlename}</othername>
|
|
|
551 |
<surname>{lastname}</surname>
|
|
|
552 |
<email>{email}</email>
|
|
|
553 |
{authored#}</author>
|
|
|
554 |
<authorinitials>{authorinitials}</authorinitials>
|
|
|
555 |
<revhistory><revision>{revnumber?<revnumber>{revnumber}</revnumber>}<date>{revdate}</date>{authorinitials?<authorinitials>{authorinitials}</authorinitials>}{revremark?<revremark>{revremark}</revremark>}</revision></revhistory>
|
|
|
556 |
{docinfo1,docinfo2#}{include:{docdir}/docinfo.xml}
|
|
|
557 |
{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.xml}
|
|
|
558 |
# DEPRECATED: Use docinfo.
|
|
|
559 |
{revisionhistory#}{include:{docdir}/{docname}-revhistory.xml}
|
|
|
560 |
# DEPRECATED: Use orgname in preference to companyname.
|
|
|
561 |
<orgname>{companyname}</orgname>
|
|
|
562 |
# DEPRECATED: Use orgname in preference to corpname.
|
|
|
563 |
<orgname>{corpname}</orgname>
|
|
|
564 |
<orgname>{orgname}</orgname>
|
|
|
565 |
|
|
|
566 |
#-------------------------
|
|
|
567 |
# article document type
|
|
|
568 |
#-------------------------
|
|
|
569 |
ifdef::doctype-article[]
|
|
|
570 |
|
|
|
571 |
[header]
|
|
|
572 |
template::[header-declarations]
|
|
|
573 |
|
|
|
574 |
<article lang="{lang=en}">
|
|
|
575 |
<articleinfo>
|
|
|
576 |
template::[docinfo]
|
|
|
577 |
</articleinfo>
|
|
|
578 |
|
|
|
579 |
[footer]
|
|
|
580 |
</article>
|
|
|
581 |
|
|
|
582 |
[preamble]
|
|
|
583 |
# Untitled elements between header and first section title.
|
|
|
584 |
|
|
|
|
585 |
|
|
|
586 |
[abstract]
|
|
|
587 |
<abstract{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
588 |
|
|
|
|
589 |
</abstract>
|
|
|
590 |
|
|
|
591 |
[sect1]
|
|
|
592 |
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
593 |
<title>{title}</title>
|
|
|
594 |
|
|
|
|
595 |
</section>
|
|
|
596 |
|
|
|
597 |
[sect2]
|
|
|
598 |
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
599 |
<title>{title}</title>
|
|
|
600 |
|
|
|
|
601 |
</section>
|
|
|
602 |
|
|
|
603 |
[sect3]
|
|
|
604 |
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
605 |
<title>{title}</title>
|
|
|
606 |
|
|
|
|
607 |
</section>
|
|
|
608 |
|
|
|
609 |
[sect4]
|
|
|
610 |
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
611 |
<title>{title}</title>
|
|
|
612 |
|
|
|
|
613 |
</section>
|
|
|
614 |
|
|
|
615 |
endif::doctype-article[]
|
|
|
616 |
|
|
|
617 |
#-------------------------
|
|
|
618 |
# manpage document type
|
|
|
619 |
#-------------------------
|
|
|
620 |
ifdef::doctype-manpage[]
|
|
|
621 |
|
|
|
622 |
[replacements]
|
|
|
623 |
# The roff format does not substitute special characters so just print them as
|
|
|
624 |
# text.
|
|
|
625 |
\(C\)=(C)
|
|
|
626 |
\(TM\)=(TM)
|
|
|
627 |
|
|
|
628 |
[header]
|
|
|
629 |
template::[header-declarations]
|
|
|
630 |
<refentry lang="{lang=en}">
|
|
|
631 |
<refentryinfo>
|
|
|
632 |
template::[docinfo]
|
|
|
633 |
</refentryinfo>
|
|
|
634 |
<refmeta>
|
|
|
635 |
<refentrytitle>{mantitle}</refentrytitle>
|
|
|
636 |
<manvolnum>{manvolnum}</manvolnum>
|
|
|
637 |
# Default source and manual to suppress DocBook XSL warnings.
|
|
|
638 |
<refmiscinfo class="source">{mansource= }</refmiscinfo>
|
|
|
639 |
<refmiscinfo class="manual">{manmanual= }</refmiscinfo>
|
|
|
640 |
<refmiscinfo class="version">{manversion={revnumber}}</refmiscinfo>
|
|
|
641 |
</refmeta>
|
|
|
642 |
<refnamediv>
|
|
|
643 |
<refname>{manname1}</refname>
|
|
|
644 |
<refname>{manname2}</refname>
|
|
|
645 |
<refname>{manname3}</refname>
|
|
|
646 |
<refname>{manname4}</refname>
|
|
|
647 |
<refname>{manname5}</refname>
|
|
|
648 |
<refname>{manname6}</refname>
|
|
|
649 |
<refname>{manname7}</refname>
|
|
|
650 |
<refname>{manname8}</refname>
|
|
|
651 |
<refname>{manname9}</refname>
|
|
|
652 |
<refpurpose>{manpurpose}</refpurpose>
|
|
|
653 |
</refnamediv>
|
|
|
654 |
|
|
|
655 |
[footer]
|
|
|
656 |
</refentry>
|
|
|
657 |
|
|
|
658 |
# Section macros
|
|
|
659 |
[synopsis]
|
|
|
660 |
<refsynopsisdiv{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
661 |
|
|
|
|
662 |
</refsynopsisdiv>
|
|
|
663 |
|
|
|
664 |
[sect1]
|
|
|
665 |
<refsect1{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
666 |
<title>{title}</title>
|
|
|
667 |
|
|
|
|
668 |
</refsect1>
|
|
|
669 |
|
|
|
670 |
[sect2]
|
|
|
671 |
<refsect2{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
672 |
<title>{title}</title>
|
|
|
673 |
|
|
|
|
674 |
</refsect2>
|
|
|
675 |
|
|
|
676 |
[sect3]
|
|
|
677 |
<refsect3{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
678 |
<title>{title}</title>
|
|
|
679 |
|
|
|
|
680 |
</refsect3>
|
|
|
681 |
|
|
|
682 |
endif::doctype-manpage[]
|
|
|
683 |
|
|
|
684 |
#-------------------------
|
|
|
685 |
# book document type
|
|
|
686 |
#-------------------------
|
|
|
687 |
ifdef::doctype-book[]
|
|
|
688 |
|
|
|
689 |
[header]
|
|
|
690 |
template::[header-declarations]
|
|
|
691 |
|
|
|
692 |
<book lang="{lang=en}">
|
|
|
693 |
<bookinfo>
|
|
|
694 |
template::[docinfo]
|
|
|
695 |
</bookinfo>
|
|
|
696 |
|
|
|
697 |
[footer]
|
|
|
698 |
</book>
|
|
|
699 |
|
|
|
700 |
[preamble]
|
|
|
701 |
# Preamble is not allowed in DocBook book so wrap it in a preface.
|
|
|
702 |
<preface{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
703 |
<title>{title=}</title>
|
|
|
704 |
|
|
|
|
705 |
</preface>
|
|
|
706 |
|
|
|
707 |
[dedication]
|
|
|
708 |
<dedication{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
709 |
<title>{title}</title>
|
|
|
710 |
|
|
|
|
711 |
</dedication>
|
|
|
712 |
|
|
|
713 |
[colophon]
|
|
|
714 |
<colophon{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
715 |
<title>{title}</title>
|
|
|
716 |
|
|
|
|
717 |
</colophon>
|
|
|
718 |
|
|
|
719 |
[sect0]
|
|
|
720 |
<part{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
721 |
<title>{title}</title>
|
|
|
722 |
|
|
|
|
723 |
</part>
|
|
|
724 |
|
|
|
725 |
[sect1]
|
|
|
726 |
<chapter{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
727 |
<title>{title}</title>
|
|
|
728 |
|
|
|
|
729 |
</chapter>
|
|
|
730 |
|
|
|
731 |
[sect2]
|
|
|
732 |
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
733 |
<title>{title}</title>
|
|
|
734 |
|
|
|
|
735 |
</section>
|
|
|
736 |
|
|
|
737 |
[sect3]
|
|
|
738 |
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
739 |
<title>{title}</title>
|
|
|
740 |
|
|
|
|
741 |
</section>
|
|
|
742 |
|
|
|
743 |
[sect4]
|
|
|
744 |
<section{id? id="{id}"}{role? role="{role}"}{reftext? xreflabel="{reftext}"}>
|
|
|
745 |
<title>{title}</title>
|
|
|
746 |
|
|
|
|
747 |
</section>
|
|
|
748 |
|
|
|
749 |
endif::doctype-book[]
|
|
|
750 |
|
|
|
751 |
ifdef::sgml[]
|
|
|
752 |
#
|
|
|
753 |
# Optional DocBook SGML.
|
|
|
754 |
#
|
|
|
755 |
# Most of the differences between DocBook XML and DocBook SGML boils
|
|
|
756 |
# down to the empty element syntax: SGML does not like the XML empty
|
|
|
757 |
# element <.../> syntax, use <...> instead.
|
|
|
758 |
#
|
|
|
759 |
[miscellaneous]
|
|
|
760 |
outfilesuffix=.sgml
|
|
|
761 |
|
|
|
762 |
[header-declarations]
|
|
|
763 |
<!DOCTYPE {doctype-article?article}{doctype-book?book}{doctype-manpage?refentry} PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
|
|
|
764 |
|
|
|
765 |
[tabledef-default]
|
|
|
766 |
colspec=<colspec colwidth="{colabswidth}{pageunits}" align="{colalign}">
|
|
|
767 |
|
|
|
768 |
[image-inlinemacro]
|
|
|
769 |
<inlinemediaobject>
|
|
|
770 |
<imageobject>
|
|
|
771 |
<imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? width="{width}"}{height? depth="{height}"}>
|
|
|
772 |
</imageobject>
|
|
|
773 |
<textobject><phrase>{alt={target}}</phrase></textobject>
|
|
|
774 |
</inlinemediaobject>
|
|
|
775 |
|
|
|
776 |
[image-blockmacro]
|
|
|
777 |
<figure><title>{title}</title>
|
|
|
778 |
{title%}<informalfigure>
|
|
|
779 |
<mediaobject>
|
|
|
780 |
<imageobject>
|
|
|
781 |
<imagedata fileref="{imagesdir=}{imagesdir?/}{target}"{width? width="{width}"}{height? depth="{height}"}>
|
|
|
782 |
</imageobject>
|
|
|
783 |
<textobject><phrase>{alt={target}}</phrase></textobject>
|
|
|
784 |
</mediaobject>
|
|
|
785 |
{title#}</figure>
|
|
|
786 |
{title%}</informalfigure>
|
|
|
787 |
|
|
|
788 |
# Inline macros
|
|
|
789 |
[xref-inlinemacro]
|
|
|
790 |
<link linkend="{target}">{0}</link>
|
|
|
791 |
{2%}<xref linkend="{target}">
|
|
|
792 |
[xref2-inlinemacro]
|
|
|
793 |
# <<id,text>>
|
|
|
794 |
<link linkend="{1}">{2}</link>
|
|
|
795 |
{2%}<xref linkend="{1}">
|
|
|
796 |
[anchor-inlinemacro]
|
|
|
797 |
<anchor id="{target}" xreflabel="{0=[{target}]}">
|
|
|
798 |
[anchor2-inlinemacro]
|
|
|
799 |
# [[id,text]]
|
|
|
800 |
<anchor id="{1}" xreflabel="{2=[{1}]}">
|
|
|
801 |
|
|
|
802 |
endif::sgml[]
|