pi.xsl 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098
  1. <?xml version='1.0'?>
  2. <xsl:stylesheet
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4. xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
  5. xmlns:fo="http://www.w3.org/1999/XSL/Format"
  6. xmlns:xlink="http://www.w3.org/1999/xlink"
  7. exclude-result-prefixes="doc xlink"
  8. version='1.0'>
  9. <!-- ********************************************************************
  10. $Id: pi.xsl 9267 2012-04-03 20:23:45Z bobstayton $
  11. ********************************************************************
  12. This file is part of the XSL DocBook Stylesheet distribution.
  13. See ../README or http://docbook.sf.net/release/xsl/current/ for
  14. copyright and other information.
  15. ******************************************************************** -->
  16. <doc:reference xmlns=""><info><title>FO Processing Instruction Reference</title>
  17. <releaseinfo role="meta">
  18. $Id: pi.xsl 9267 2012-04-03 20:23:45Z bobstayton $
  19. </releaseinfo>
  20. </info>
  21. <partintro id="partintro">
  22. <title>Introduction</title>
  23. <para>This is generated reference documentation for all
  24. user-specifiable processing instructions (PIs) in the DocBook
  25. XSL stylesheets for FO output.
  26. <note>
  27. <para>You add these PIs at particular points in a document to
  28. cause specific “exceptions” to formatting/output behavior. To
  29. make global changes in formatting/output behavior across an
  30. entire document, it’s better to do it by setting an
  31. appropriate stylesheet parameter (if there is one).</para>
  32. </note>
  33. </para>
  34. </partintro>
  35. </doc:reference>
  36. <!-- ==================================================================== -->
  37. <doc:pi name="dbfo_background-color" xmlns="">
  38. <refpurpose>Sets background color for an image</refpurpose>
  39. <refdescription>
  40. <para>Use the <tag class="xmlpi">dbfo background-color</tag> PI before or
  41. after an image (<tag>graphic</tag>, <tag>inlinegraphic</tag>,
  42. <tag>imagedata</tag>, or <tag>videodata</tag> element) as a
  43. sibling to the element, to set a background color for the
  44. image.</para>
  45. </refdescription>
  46. <refsynopsisdiv>
  47. <synopsis><tag class="xmlpi">dbfo background-color="<replaceable>color</replaceable>"</tag></synopsis>
  48. </refsynopsisdiv>
  49. <refparameter>
  50. <variablelist>
  51. <varlistentry><term>background-color="<replaceable>color</replaceable>"</term>
  52. <listitem>
  53. <para>An HTML color value</para>
  54. </listitem>
  55. </varlistentry>
  56. </variablelist>
  57. </refparameter>
  58. <refsee role="tcg">
  59. <para><link role="tcg"
  60. xlink:href="BGcolor.html"
  61. >Background color</link></para>
  62. </refsee>
  63. </doc:pi>
  64. <xsl:template name="pi.dbfo_background-color">
  65. <xsl:param name="node" select="."/>
  66. <xsl:call-template name="dbfo-attribute">
  67. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  68. <xsl:with-param name="attribute" select="'background-color'"/>
  69. </xsl:call-template>
  70. </xsl:template>
  71. <doc:pi name="dbfo_bgcolor" xmlns="">
  72. <refpurpose>Sets background color on a table row or table cell</refpurpose>
  73. <refdescription>
  74. <para>Use the <tag class="xmlpi">dbfo bgcolor</tag> PI as child of a table row
  75. or cell to set a background color for that table row or cell.</para>
  76. <para>This PI works for both CALS and HTML tables.</para>
  77. </refdescription>
  78. <refsynopsisdiv>
  79. <synopsis><tag class="xmlpi">dbfo bgcolor="<replaceable>color</replaceable>"</tag></synopsis>
  80. </refsynopsisdiv>
  81. <refparameter>
  82. <variablelist>
  83. <varlistentry><term>bgcolor="<replaceable>color</replaceable>"</term>
  84. <listitem>
  85. <para>An HTML color value</para>
  86. </listitem>
  87. </varlistentry>
  88. </variablelist>
  89. </refparameter>
  90. <refsee role="tcg">
  91. <para><link role="tcg"
  92. xlink:href="BGtableColor.html#CellBGColor"
  93. >Cell background color</link></para>
  94. </refsee>
  95. </doc:pi>
  96. <xsl:template name="pi.dbfo_bgcolor">
  97. <xsl:param name="node" select="."/>
  98. <xsl:call-template name="dbfo-attribute">
  99. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  100. <xsl:with-param name="attribute" select="'bgcolor'"/>
  101. </xsl:call-template>
  102. </xsl:template>
  103. <doc:pi name="dbfo_float-type" xmlns="">
  104. <refpurpose>Specifies float behavior for a sidebar</refpurpose>
  105. <refdescription>
  106. <para>Use the <tag class="xmlpi">dbfo float-type</tag> PI to specify the float
  107. behavior for a <tag>sidebar</tag> (to cause the sidebar to be
  108. displayed as a marginal note).</para>
  109. </refdescription>
  110. <refsynopsisdiv>
  111. <synopsis><tag class="xmlpi">dbfo float-type="margin.note"</tag></synopsis>
  112. </refsynopsisdiv>
  113. <refparameter>
  114. <variablelist>
  115. <varlistentry><term>float-type="margin.note"</term>
  116. <listitem>
  117. <para>Specifies that the <tag>sidebar</tag> should be
  118. displayed as a marginal note.</para>
  119. </listitem>
  120. </varlistentry>
  121. </variablelist>
  122. </refparameter>
  123. <refsee role="params">
  124. <para><parameter>sidebar.float.type</parameter> (parameter),
  125. <parameter>sidebar.float.width</parameter> (parameter),
  126. <parameter>sidebar.properties</parameter> (attribute-set),
  127. <parameter>sidebar.title.properties</parameter> (attribute-set)
  128. </para>
  129. </refsee>
  130. <refsee role="tcg">
  131. <para><link role="tcg" xlink:href="SideFloats.html#SidebarFloats" >A sidebar as
  132. side float</link></para>
  133. </refsee>
  134. </doc:pi>
  135. <xsl:template name="pi.dbfo_float-type">
  136. <xsl:param name="node" select="."/>
  137. <xsl:call-template name="dbfo-attribute">
  138. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  139. <xsl:with-param name="attribute" select="'float-type'"/>
  140. </xsl:call-template>
  141. </xsl:template>
  142. <doc:pi name="dbfo_funcsynopsis-style" xmlns="">
  143. <refpurpose>Specifies presentation style for a funcsynopsis</refpurpose>
  144. <refdescription>
  145. <para>Use the <tag class="xmlpi">dbfo funcsynopsis-style</tag> PI as a child of
  146. a <tag>funcsynopsis</tag> or anywhere within a funcsynopsis
  147. to control the presentation style for output of all
  148. <tag>funcprototype</tag> instances within that funcsynopsis.</para>
  149. </refdescription>
  150. <refsynopsisdiv>
  151. <synopsis><tag class="xmlpi">dbfo funcsynopsis-style="kr"|"ansi"</tag></synopsis>
  152. </refsynopsisdiv>
  153. <refparameter>
  154. <variablelist>
  155. <varlistentry><term>funcsynopsis-style="kr"</term>
  156. <listitem>
  157. <para>Displays <tag>funcprototype</tag> output in K&amp;R style</para>
  158. </listitem>
  159. </varlistentry>
  160. <varlistentry><term>funcsynopsis-style="ansi"</term>
  161. <listitem>
  162. <para>Displays <tag>funcprototype</tag> output in ANSI style</para>
  163. </listitem>
  164. </varlistentry>
  165. </variablelist>
  166. </refparameter>
  167. <refsee role="params">
  168. <para><parameter>funcsynopsis.style</parameter></para>
  169. </refsee>
  170. </doc:pi>
  171. <xsl:template name="pi.dbfo_funcsynopsis-style">
  172. <xsl:param name="node" select="."/>
  173. <xsl:call-template name="dbfo-attribute">
  174. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  175. <xsl:with-param name="attribute" select="'funcsynopsis-style'"/>
  176. </xsl:call-template>
  177. </xsl:template>
  178. <doc:pi name="dbfo_glossary-presentation" xmlns="">
  179. <refpurpose>Specifies presentation style for a glossary</refpurpose>
  180. <refdescription>
  181. <para>Use the <tag class="xmlpi">dbfo glossary-presentation</tag> PI as a child of
  182. a <tag>glossary</tag> to control its presentation style.</para>
  183. </refdescription>
  184. <refsynopsisdiv>
  185. <synopsis><tag class="xmlpi">dbfo glossary-presentation="list"|"blocks"</tag></synopsis>
  186. </refsynopsisdiv>
  187. <refparameter>
  188. <variablelist>
  189. <varlistentry><term>glossary-presentation="list"</term>
  190. <listitem>
  191. <para>Displays the glossary as a list</para>
  192. </listitem>
  193. </varlistentry>
  194. <varlistentry><term>glossary-presentation="blocks"</term>
  195. <listitem>
  196. <para>Displays the glossary as blocks</para>
  197. </listitem>
  198. </varlistentry>
  199. </variablelist>
  200. </refparameter>
  201. <refsee role="params">
  202. <para><parameter>glossary.as.blocks</parameter></para>
  203. </refsee>
  204. <refsee role="tcg">
  205. <para><link role="tcg" xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary
  206. formatting in print</link></para>
  207. </refsee>
  208. </doc:pi>
  209. <xsl:template name="pi.dbfo_glossary-presentation">
  210. <xsl:param name="node" select="."/>
  211. <xsl:call-template name="dbfo-attribute">
  212. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  213. <xsl:with-param name="attribute" select="'glossary-presentation'"/>
  214. </xsl:call-template>
  215. </xsl:template>
  216. <doc:pi name="dbfo_glosslist-presentation" xmlns="">
  217. <refpurpose>Specifies presentation style for a glosslist</refpurpose>
  218. <refdescription>
  219. <para>Use the <tag class="xmlpi">dbfo glosslist-presentation</tag> PI as a child of
  220. a <tag>glosslist</tag> to control its presentation style.</para>
  221. </refdescription>
  222. <refsynopsisdiv>
  223. <synopsis><tag class="xmlpi">dbfo glosslist-presentation="list"|"blocks"</tag></synopsis>
  224. </refsynopsisdiv>
  225. <refparameter>
  226. <variablelist>
  227. <varlistentry><term>glosslist-presentation="list"</term>
  228. <listitem>
  229. <para>Displays the glosslist as a list</para>
  230. </listitem>
  231. </varlistentry>
  232. <varlistentry><term>glosslist-presentation="blocks"</term>
  233. <listitem>
  234. <para>Displays the glosslist as blocks</para>
  235. </listitem>
  236. </varlistentry>
  237. </variablelist>
  238. </refparameter>
  239. <refsee role="params">
  240. <para><parameter>glosslist.as.blocks</parameter> </para>
  241. </refsee>
  242. <refsee role="tcg">
  243. <para><link role="tcg" xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary
  244. formatting in print</link></para>
  245. </refsee>
  246. </doc:pi>
  247. <xsl:template name="pi.dbfo_glosslist-presentation">
  248. <xsl:param name="node" select="."/>
  249. <xsl:call-template name="dbfo-attribute">
  250. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  251. <xsl:with-param name="attribute" select="'glosslist-presentation'"/>
  252. </xsl:call-template>
  253. </xsl:template>
  254. <doc:pi name="dbfo_glossterm-width" xmlns="">
  255. <refpurpose>Specifies the glossterm width for a glossary or
  256. glosslist</refpurpose>
  257. <refdescription>
  258. <para>Use the <tag class="xmlpi">dbfo glossterm-width</tag> PI as a child of a
  259. <tag>glossary</tag> or <tag>glosslist</tag> to specify the
  260. width for output of <tag>glossterm</tag> instances in the
  261. output.</para>
  262. </refdescription>
  263. <refsynopsisdiv>
  264. <synopsis><tag class="xmlpi">dbfo glossterm-width="<replaceable>width</replaceable>"</tag></synopsis>
  265. </refsynopsisdiv>
  266. <refparameter>
  267. <variablelist>
  268. <varlistentry><term>glossterm-width="<replaceable>width</replaceable>"</term>
  269. <listitem>
  270. <para>Specifies the glossterm width (including units)</para>
  271. </listitem>
  272. </varlistentry>
  273. </variablelist>
  274. </refparameter>
  275. <refsee role="params">
  276. <para><parameter>glossterm.width</parameter>,
  277. <parameter>glossterm.separation</parameter>
  278. </para>
  279. </refsee>
  280. <refsee role="tcg">
  281. <para><link role="tcg" xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary
  282. formatting in print</link></para>
  283. </refsee>
  284. </doc:pi>
  285. <xsl:template name="pi.dbfo_glossterm-width">
  286. <xsl:param name="node" select="."/>
  287. <xsl:call-template name="dbfo-attribute">
  288. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  289. <xsl:with-param name="attribute" select="'glossterm-width'"/>
  290. </xsl:call-template>
  291. </xsl:template>
  292. <doc:pi name="dbfo_keep-together" xmlns="">
  293. <refpurpose>Specifies “keep” behavior for a table, example,
  294. figure, equation, procedure, or task</refpurpose>
  295. <refdescription>
  296. <para>Use the <tag class="xmlpi">dbfo keep-together</tag> PI as a child of a
  297. formal object (<tag>table</tag>, <tag>example</tag>,
  298. <tag>figure</tag>, <tag>equation</tag>, <tag>procedure</tag>, or
  299. <tag>task</tag>) to specify “keep” behavior (to allow the object to
  300. “break” across a page).</para>
  301. <para>The PI also works with <tag>informaltable</tag>, <tag>informalexample</tag>,
  302. <tag>informalfigure</tag> and <tag>informalequation</tag>.
  303. </para>
  304. </refdescription>
  305. <refsynopsisdiv>
  306. <synopsis><tag class="xmlpi">dbfo keep-together="auto"|"always"</tag></synopsis>
  307. </refsynopsisdiv>
  308. <refparameter>
  309. <variablelist>
  310. <varlistentry><term>keep-together="auto"</term>
  311. <listitem>
  312. <para>Enables the object to break across a page</para>
  313. </listitem>
  314. </varlistentry>
  315. <varlistentry><term>keep-together="always"</term>
  316. <listitem>
  317. <para>Prevents the object from breaking across a page (the
  318. default stylesheet behavior)</para>
  319. </listitem>
  320. </varlistentry>
  321. </variablelist>
  322. </refparameter>
  323. <refsee role="params">
  324. <para>formal.object.properties</para>
  325. </refsee>
  326. <refsee role="tcg">
  327. <para><link role="tcg" xlink:href="PageBreaking.html#KeepTogetherPI"
  328. >Keep-together processing instruction</link></para>
  329. </refsee>
  330. </doc:pi>
  331. <xsl:template name="pi.dbfo_keep-together">
  332. <xsl:param name="node" select="."/>
  333. <xsl:call-template name="dbfo-attribute">
  334. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  335. <xsl:with-param name="attribute" select="'keep-together'"/>
  336. </xsl:call-template>
  337. </xsl:template>
  338. <doc:pi name="dbfo_label-width" xmlns="">
  339. <refpurpose>Specifies the label width for a qandaset, itemizedlist, orderedlist
  340. or calloutlist</refpurpose>
  341. <refdescription>
  342. <para>Use the <tag class="xmlpi">dbfo label-width</tag> PI as a child of a
  343. <tag>qandaset</tag>, <tag>itemizedlist</tag>, <tag>orderedlist</tag>,
  344. or <tag>calloutlist</tag> to specify the width of labels.</para>
  345. </refdescription>
  346. <refsynopsisdiv>
  347. <synopsis><tag class="xmlpi">dbfo label-width="<replaceable>width</replaceable>"</tag></synopsis>
  348. </refsynopsisdiv>
  349. <refparameter>
  350. <variablelist>
  351. <varlistentry><term>label-width="<replaceable>width</replaceable>"</term>
  352. <listitem>
  353. <para>Specifies the label width (including units)</para>
  354. </listitem>
  355. </varlistentry>
  356. </variablelist>
  357. </refparameter>
  358. <refsee role="tcg">
  359. <para><link role="tcg"
  360. xlink:href="QandAformat.html"
  361. >Q and A formatting</link></para>
  362. </refsee>
  363. </doc:pi>
  364. <xsl:template name="pi.dbfo_label-width">
  365. <xsl:param name="node" select="."/>
  366. <xsl:call-template name="dbfo-attribute">
  367. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  368. <xsl:with-param name="attribute" select="'label-width'"/>
  369. </xsl:call-template>
  370. </xsl:template>
  371. <doc:pi name="dbfo_linenumbering.everyNth" xmlns="">
  372. <refpurpose>Specifies interval for line numbers in verbatims</refpurpose>
  373. <refdescription>
  374. <para>Use the <tag class="xmlpi">dbfo linenumbering.everyNth</tag> PI as a child
  375. of a “verbatim” element – <tag>programlisting</tag>,
  376. <tag>screen</tag>, <tag>synopsis</tag> — to specify
  377. the interval at which lines are numbered.</para>
  378. </refdescription>
  379. <refsynopsisdiv>
  380. <synopsis><tag class="xmlpi">dbfo linenumbering.everyNth="<replaceable>N</replaceable>"</tag></synopsis>
  381. </refsynopsisdiv>
  382. <refparameter>
  383. <variablelist>
  384. <varlistentry><term>linenumbering.everyNth="<replaceable>N</replaceable>"</term>
  385. <listitem>
  386. <para>Specifies numbering interval; a number is output
  387. before every <replaceable>N</replaceable>th line</para>
  388. </listitem>
  389. </varlistentry>
  390. </variablelist>
  391. </refparameter>
  392. <refsee role="params">
  393. <para><parameter>linenumbering.everyNth</parameter></para>
  394. </refsee>
  395. <refsee role="tcg">
  396. <para><link role="tcg"
  397. xlink:href="AnnotateListing.html#LineNumbering"
  398. >Line numbering</link></para>
  399. </refsee>
  400. </doc:pi>
  401. <xsl:template name="pi.dbfo_linenumbering.everyNth">
  402. <xsl:param name="node" select="."/>
  403. <xsl:call-template name="dbfo-attribute">
  404. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  405. <xsl:with-param name="attribute" select="'linenumbering.everyNth'"/>
  406. </xsl:call-template>
  407. </xsl:template>
  408. <doc:pi name="dbfo_linenumbering.separator" xmlns="">
  409. <refpurpose>Specifies separator text for line numbers in verbatims</refpurpose>
  410. <refdescription>
  411. <para>Use the <tag class="xmlpi">dbfo linenumbering.separator</tag> PI as a child
  412. of a “verbatim” element – <tag>programlisting</tag>,
  413. <tag>screen</tag>, <tag>synopsis</tag> — to specify
  414. the separator text output between the line numbers and content.</para>
  415. </refdescription>
  416. <refsynopsisdiv>
  417. <synopsis><tag class="xmlpi">dbfo linenumbering.separator="<replaceable>text</replaceable>"</tag></synopsis>
  418. </refsynopsisdiv>
  419. <refparameter>
  420. <variablelist>
  421. <varlistentry><term>linenumbering.separator="<replaceable>text</replaceable>"</term>
  422. <listitem>
  423. <para>Specifies the text (zero or more characters)</para>
  424. </listitem>
  425. </varlistentry>
  426. </variablelist>
  427. </refparameter>
  428. <refsee role="params">
  429. <para><parameter>linenumbering.separator</parameter></para>
  430. </refsee>
  431. <refsee role="tcg">
  432. <para><link role="tcg"
  433. xlink:href="AnnotateListing.html#LineNumbering"
  434. >Line numbering</link></para>
  435. </refsee>
  436. </doc:pi>
  437. <xsl:template name="pi.dbfo_linenumbering.separator">
  438. <xsl:param name="node" select="."/>
  439. <xsl:call-template name="dbfo-attribute">
  440. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  441. <xsl:with-param name="attribute" select="'linenumbering.separator'"/>
  442. </xsl:call-template>
  443. </xsl:template>
  444. <doc:pi name="dbfo_linenumbering.width" xmlns="">
  445. <refpurpose>Specifies width for line numbers in verbatims</refpurpose>
  446. <refdescription>
  447. <para>Use the <tag class="xmlpi">dbfo linenumbering.width</tag> PI as a child
  448. of a “verbatim” element – <tag>programlisting</tag>,
  449. <tag>screen</tag>, <tag>synopsis</tag> — to specify
  450. the width set aside for line numbers.</para>
  451. </refdescription>
  452. <refsynopsisdiv>
  453. <synopsis><tag class="xmlpi">dbfo linenumbering.width="<replaceable>width</replaceable>"</tag></synopsis>
  454. </refsynopsisdiv>
  455. <refparameter>
  456. <variablelist>
  457. <varlistentry><term>linenumbering.width="<replaceable>width</replaceable>"</term>
  458. <listitem>
  459. <para>Specifies the width (inluding units)</para>
  460. </listitem>
  461. </varlistentry>
  462. </variablelist>
  463. </refparameter>
  464. <refsee role="params">
  465. <para><parameter>linenumbering.width</parameter></para>
  466. </refsee>
  467. <refsee role="tcg">
  468. <para><link role="tcg"
  469. xlink:href="AnnotateListing.html#LineNumbering"
  470. >Line numbering</link></para>
  471. </refsee>
  472. </doc:pi>
  473. <xsl:template name="pi.dbfo_linenumbering.width">
  474. <xsl:param name="node" select="."/>
  475. <xsl:call-template name="dbfo-attribute">
  476. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  477. <xsl:with-param name="attribute" select="'linenumbering.width'"/>
  478. </xsl:call-template>
  479. </xsl:template>
  480. <doc:pi name="dbfo_list-presentation" xmlns="">
  481. <refpurpose>Specifies presentation style for a variablelist or
  482. segmentedlist</refpurpose>
  483. <refdescription>
  484. <para>Use the <tag class="xmlpi">dbfo list-presentation</tag> PI as a child of
  485. a <tag>variablelist</tag> or <tag>segmentedlist</tag> to
  486. control the presentation style for the list (to cause it, for
  487. example, to be displayed as a table).</para>
  488. </refdescription>
  489. <refsynopsisdiv>
  490. <synopsis><tag class="xmlpi">dbfo list-presentation="list"|"blocks"|"table"</tag></synopsis>
  491. </refsynopsisdiv>
  492. <refparameter>
  493. <variablelist>
  494. <varlistentry><term>list-presentation="list"</term>
  495. <listitem>
  496. <para>Displays the list as a list</para>
  497. </listitem>
  498. </varlistentry>
  499. <varlistentry><term>list-presentation="blocks"</term>
  500. <listitem>
  501. <para>(<tag>variablelist</tag> only) Displays the list as blocks</para>
  502. </listitem>
  503. </varlistentry>
  504. <varlistentry><term>list-presentation="table"</term>
  505. <listitem>
  506. <para>(<tag>segmentedlist</tag> only) Displays the list as a table</para>
  507. </listitem>
  508. </varlistentry>
  509. </variablelist>
  510. </refparameter>
  511. <refsee role="params">
  512. <itemizedlist>
  513. <listitem>
  514. <para><parameter>variablelist.as.blocks</parameter></para>
  515. </listitem>
  516. <listitem>
  517. <para><parameter>variablelist.as.table</parameter></para>
  518. </listitem>
  519. </itemizedlist>
  520. </refsee>
  521. <refsee role="tcg">
  522. <para><link role="tcg"
  523. xlink:href="Variablelists.html#ListIndents"
  524. >Variable list formatting in print</link></para>
  525. </refsee>
  526. </doc:pi>
  527. <xsl:template name="pi.dbfo_list-presentation">
  528. <xsl:param name="node" select="."/>
  529. <xsl:call-template name="dbfo-attribute">
  530. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  531. <xsl:with-param name="attribute" select="'list-presentation'"/>
  532. </xsl:call-template>
  533. </xsl:template>
  534. <doc:pi name="dbfo_list-width" xmlns="">
  535. <refpurpose>Specifies the width of a horizontal simplelist</refpurpose>
  536. <refdescription>
  537. <para>Use the <tag class="xmlpi">dbfo list-width</tag> PI as a child of a
  538. <tag>simplelist</tag> whose <tag class="attribute">class</tag>
  539. value is <literal>horizontal</literal>, to specify the width
  540. of the <tag>simplelist</tag>.</para>
  541. </refdescription>
  542. <refsynopsisdiv>
  543. <synopsis><tag class="xmlpi">dbfo list-width="<replaceable>width</replaceable>"</tag></synopsis>
  544. </refsynopsisdiv>
  545. <refparameter>
  546. <variablelist>
  547. <varlistentry><term>list-width="<replaceable>width</replaceable>"</term>
  548. <listitem>
  549. <para>Specifies the <tag>simplelist</tag> width (including units)</para>
  550. </listitem>
  551. </varlistentry>
  552. </variablelist>
  553. </refparameter>
  554. </doc:pi>
  555. <xsl:template name="pi.dbfo_list-width">
  556. <xsl:param name="node" select="."/>
  557. <xsl:call-template name="dbfo-attribute">
  558. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  559. <xsl:with-param name="attribute" select="'list-width'"/>
  560. </xsl:call-template>
  561. </xsl:template>
  562. <doc:pi name="dbfo_orientation" xmlns="">
  563. <refpurpose>Specifies the orientation for a CALS table row or cell</refpurpose>
  564. <refdescription>
  565. <para>Use the <tag class="xmlpi">dbfo orientation</tag> PI as a child of a CALS
  566. <tag>table</tag> row or cell to specify the orientation
  567. (rotation) for the row or cell.</para>
  568. </refdescription>
  569. <refsynopsisdiv>
  570. <synopsis><tag class="xmlpi">dbfo orientation="0"|"90"|"180"|"270"|"-90"|"-180"|"-270"</tag></synopsis>
  571. </refsynopsisdiv>
  572. <refparameter>
  573. <variablelist>
  574. <varlistentry><term>orientation="0"|"90"|"180"|"270"|"-90"|"-180"|"-270"</term>
  575. <listitem>
  576. <para>Specifies the number of degrees by which the cell or
  577. row is rotated</para>
  578. </listitem>
  579. </varlistentry>
  580. </variablelist>
  581. </refparameter>
  582. </doc:pi>
  583. <xsl:template name="pi.dbfo_orientation">
  584. <xsl:param name="node" select="."/>
  585. <xsl:call-template name="dbfo-attribute">
  586. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  587. <xsl:with-param name="attribute" select="'orientation'"/>
  588. </xsl:call-template>
  589. </xsl:template>
  590. <doc:pi name="dbfo_pgwide" xmlns="">
  591. <refpurpose>Specifies if an <tag>equation</tag> or <tag>example</tag> goes across full page width</refpurpose>
  592. <refdescription>
  593. <para>Use the <tag class="xmlpi">dbfo pgwide</tag> PI as a child of an
  594. <tag>equation</tag> or <tag>example</tag> to specify that the
  595. content should rendered across the full width of the page.</para>
  596. </refdescription>
  597. <refsynopsisdiv>
  598. <synopsis><tag class="xmlpi">dbfo pgwide="0"|"1"</tag></synopsis>
  599. </refsynopsisdiv>
  600. <refparameter>
  601. <variablelist>
  602. <varlistentry><term>pgwide="0"</term>
  603. <listitem>
  604. <para>If zero, the content is rendered across the current
  605. text flow</para>
  606. </listitem>
  607. </varlistentry>
  608. <varlistentry><term>pgwide="1"</term>
  609. <listitem>
  610. <para>If <code>1</code> (or any non-zero value), the
  611. content is rendered across the full width of the page</para>
  612. </listitem>
  613. </varlistentry>
  614. </variablelist>
  615. </refparameter>
  616. <refsee role="params">
  617. <para><parameter>pgwide.properties</parameter></para>
  618. </refsee>
  619. </doc:pi>
  620. <xsl:template name="pi.dbfo_pgwide">
  621. <xsl:param name="node" select="."/>
  622. <xsl:call-template name="dbfo-attribute">
  623. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  624. <xsl:with-param name="attribute" select="'pgwide'"/>
  625. </xsl:call-template>
  626. </xsl:template>
  627. <doc:pi name="dbfo_rotated-width" xmlns="">
  628. <refpurpose>Specifies the width for a CALS table <tag>entry</tag> or
  629. <tag>row</tag></refpurpose>
  630. <refdescription>
  631. <para>Use the <tag class="xmlpi">dbfo rotated-width</tag> PI as a child of
  632. <tag>entry</tag> or <tag>row</tag> instance in a CALS table to specify the
  633. width of that the <tag>entry</tag> or <tag>row</tag>; or
  634. use it higher up in table to cause the width to be inherited
  635. recursively down.</para>
  636. </refdescription>
  637. <refsynopsisdiv>
  638. <synopsis><tag class="xmlpi">dbfo rotated-width="<replaceable>width</replaceable>"</tag></synopsis>
  639. </refsynopsisdiv>
  640. <refparameter>
  641. <variablelist>
  642. <varlistentry><term>rotated-width="<replaceable>width</replaceable>"</term>
  643. <listitem>
  644. <para>Specifies the width of a row or cell (including units)</para>
  645. </listitem>
  646. </varlistentry>
  647. </variablelist>
  648. </refparameter>
  649. </doc:pi>
  650. <xsl:template name="pi.dbfo_rotated-width">
  651. <xsl:param name="node" select="."/>
  652. <xsl:call-template name="dbfo-attribute">
  653. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  654. <xsl:with-param name="attribute" select="'rotated-width'"/>
  655. </xsl:call-template>
  656. </xsl:template>
  657. <doc:pi name="dbfo_sidebar-width" xmlns="">
  658. <refpurpose>Specifies the width of a sidebar</refpurpose>
  659. <refdescription>
  660. <para>Use the <tag class="xmlpi">dbfo sidebar-width</tag> PI as a child of a
  661. <tag>sidebar</tag> to specify the width of the sidebar.</para>
  662. </refdescription>
  663. <refsynopsisdiv>
  664. <synopsis><tag class="xmlpi">dbfo sidebar-width="<replaceable>width</replaceable>"</tag></synopsis>
  665. </refsynopsisdiv>
  666. <refparameter>
  667. <variablelist>
  668. <varlistentry><term>sidebar-width="<replaceable>width</replaceable>"</term>
  669. <listitem>
  670. <para>Specifies the <tag>sidebar</tag> width (including units)</para>
  671. </listitem>
  672. </varlistentry>
  673. </variablelist>
  674. </refparameter>
  675. <refsee role="params">
  676. <para><parameter>sidebar.float.type parameter</parameter>,
  677. <parameter>sidebar.float.width parameter</parameter>,
  678. <parameter>sidebar.properties attribute-set</parameter>,
  679. <parameter>sidebar.title.properties</parameter>
  680. </para>
  681. </refsee>
  682. <refsee role="tcg">
  683. <para><link role="tcg" xlink:href="SideFloats.html#SidebarFloats" >A sidebar as
  684. side float</link></para>
  685. </refsee>
  686. </doc:pi>
  687. <xsl:template name="pi.dbfo_sidebar-width">
  688. <xsl:param name="node" select="."/>
  689. <xsl:call-template name="dbfo-attribute">
  690. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  691. <xsl:with-param name="attribute" select="'sidebar-width'"/>
  692. </xsl:call-template>
  693. </xsl:template>
  694. <doc:pi name="dbfo_start" xmlns="">
  695. <refpurpose>(obsolete) Sets the starting number on an ordered list</refpurpose>
  696. <refdescription>
  697. <para><emphasis>This PI is obsolete</emphasis>. The intent of
  698. it was to provide a means for setting a specific starting
  699. number for an ordered list. Instead of this PI, set a value
  700. for the <literal>override</literal> attribute on the first
  701. <tag>listitem</tag> in the list; that will have the same
  702. effect as what this PI was intended for.</para>
  703. </refdescription>
  704. <refsynopsisdiv>
  705. <synopsis><tag class="xmlpi">dbfo start="<replaceable>character</replaceable>"</tag></synopsis>
  706. </refsynopsisdiv>
  707. <refparameter>
  708. <variablelist>
  709. <varlistentry><term>start="<replaceable>character</replaceable>"</term>
  710. <listitem>
  711. <para>Specifies the character to use as the starting
  712. number; use 0-9, a-z, A-Z, or lowercase or uppercase
  713. Roman numerals</para>
  714. </listitem>
  715. </varlistentry>
  716. </variablelist>
  717. </refparameter>
  718. <refsee role="tcg">
  719. <para><link role="tcg"
  720. xlink:href="Orderedlists.html#ListStartNum"
  721. >List starting number</link></para>
  722. </refsee>
  723. </doc:pi>
  724. <xsl:template name="pi.dbfo_start">
  725. <xsl:param name="node" select="."/>
  726. <xsl:call-template name="pi-attribute">
  727. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  728. <xsl:with-param name="attribute" select="'start'"/>
  729. </xsl:call-template>
  730. </xsl:template>
  731. <doc:pi name="dbfo_table-width" xmlns="">
  732. <refpurpose>Specifies the width for a CALS table or for revhistory
  733. output</refpurpose>
  734. <refdescription>
  735. <para>Use the <tag class="xmlpi">dbfo table-width</tag> PI as a child or
  736. sibling of a CALS <tag>table</tag>, or as a child of an
  737. <tag>informaltable</tag>, <tag>entrytbl</tag>, or
  738. <tag>revhistory</tag> instance (which is rendered as a table
  739. in output) to specify the width of the table in output.</para>
  740. </refdescription>
  741. <refsynopsisdiv>
  742. <synopsis><tag class="xmlpi">dbfo table-width="<replaceable>width</replaceable>"</tag></synopsis>
  743. </refsynopsisdiv>
  744. <refparameter>
  745. <variablelist>
  746. <varlistentry><term>table-width="<replaceable>width</replaceable>"</term>
  747. <listitem>
  748. <para>Specifies the table width (including units or as a percentage)</para>
  749. </listitem>
  750. </varlistentry>
  751. </variablelist>
  752. </refparameter>
  753. <refsee role="tcg">
  754. <para><link role="tcg"
  755. xlink:href="Tables.html#TableWidth"
  756. >Table width</link></para>
  757. </refsee>
  758. </doc:pi>
  759. <xsl:template name="pi.dbfo_table-width">
  760. <xsl:param name="node" select="."/>
  761. <xsl:call-template name="dbfo-attribute">
  762. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  763. <xsl:with-param name="attribute" select="'table-width'"/>
  764. </xsl:call-template>
  765. </xsl:template>
  766. <doc:pi name="dbfo_term-width" xmlns="">
  767. <refpurpose>Specifies the term width for a variablelist</refpurpose>
  768. <refdescription>
  769. <para>Use the <tag class="xmlpi">dbfo term-width</tag> PI as a child of a
  770. <tag>variablelist</tag> to specify the width for
  771. <tag>term</tag> output.</para>
  772. </refdescription>
  773. <refsynopsisdiv>
  774. <synopsis><tag class="xmlpi">dbfo term-width="<replaceable>width</replaceable>"</tag></synopsis>
  775. </refsynopsisdiv>
  776. <refparameter>
  777. <variablelist>
  778. <varlistentry><term>term-width="<replaceable>width</replaceable>"</term>
  779. <listitem>
  780. <para>Specifies the term width (including units)</para>
  781. </listitem>
  782. </varlistentry>
  783. </variablelist>
  784. </refparameter>
  785. <refsee role="tcg">
  786. <para><link role="tcg"
  787. xlink:href="Variablelists.html#ListIndents"
  788. >Variable list formatting in print</link></para>
  789. </refsee>
  790. </doc:pi>
  791. <xsl:template name="pi.dbfo_term-width">
  792. <xsl:param name="node" select="."/>
  793. <xsl:call-template name="dbfo-attribute">
  794. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  795. <xsl:with-param name="attribute" select="'term-width'"/>
  796. </xsl:call-template>
  797. </xsl:template>
  798. <doc:pi name="dbfo_toc" xmlns="">
  799. <refpurpose>Specifies whether a TOC should be generated for a qandaset</refpurpose>
  800. <refdescription>
  801. <para>Use the <tag class="xmlpi">dbfo toc</tag> PI as a child of a
  802. <tag>qandaset</tag> to specify whether a table of contents
  803. (TOC) is generated for the <tag>qandaset</tag>.</para>
  804. </refdescription>
  805. <refsynopsisdiv>
  806. <synopsis><tag class="xmlpi">dbfo toc="0"|"1"</tag></synopsis>
  807. </refsynopsisdiv>
  808. <refparameter>
  809. <variablelist>
  810. <varlistentry><term>toc="0"</term>
  811. <listitem>
  812. <para>If zero, no TOC is generated</para>
  813. </listitem>
  814. </varlistentry>
  815. <varlistentry><term>toc="1"</term>
  816. <listitem>
  817. <para>If <code>1</code> (or any non-zero value),
  818. a TOC is generated</para>
  819. </listitem>
  820. </varlistentry>
  821. </variablelist>
  822. </refparameter>
  823. <refsee role="tcg">
  824. <para><link role="tcg"
  825. xlink:href="QandAtoc.html"
  826. >Q and A list of questions</link>,
  827. <link role="tcg"
  828. xlink:href="QandAformat.html"
  829. >Q and A formatting</link></para>
  830. </refsee>
  831. </doc:pi>
  832. <xsl:template name="pi.dbfo_toc">
  833. <xsl:param name="node" select="."/>
  834. <xsl:call-template name="dbfo-attribute">
  835. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  836. <xsl:with-param name="attribute" select="'toc'"/>
  837. </xsl:call-template>
  838. </xsl:template>
  839. <doc:pi name="dbfo-need" xmlns="">
  840. <refpurpose>Specify a need for space (a kind of soft page break)</refpurpose>
  841. <refdescription>
  842. <para>A “need” is a request for space on a page. If the
  843. requested space is not available, the page breaks and the
  844. content that follows the need request appears on the next
  845. page. If the requested space is available, then no page break
  846. is inserted.</para>
  847. </refdescription>
  848. <refsynopsisdiv>
  849. <synopsis><tag class="xmlpi">dbfo-need height="<replaceable>n</replaceable>" [space-before="<replaceable>n</replaceable>"]</tag></synopsis>
  850. </refsynopsisdiv>
  851. <refparameter>
  852. <variablelist>
  853. <varlistentry><term>height="<replaceable>n</replaceable>"</term>
  854. <listitem>
  855. <para>The amount of height needed (including units)</para>
  856. </listitem>
  857. </varlistentry>
  858. <varlistentry><term>space-before="<replaceable>n</replaceable>"</term>
  859. <listitem>
  860. <para>The amount of extra vertical space to add (including units)</para>
  861. </listitem>
  862. </varlistentry>
  863. </variablelist>
  864. </refparameter>
  865. <refsee role="tcg">
  866. <para><link role="tcg"
  867. xlink:href="PageBreaking.html#SoftPageBreaks"
  868. >Soft page breaks</link></para>
  869. </refsee>
  870. </doc:pi>
  871. <doc:pi name="dbfo_row-height" xmlns="">
  872. <refpurpose>Specifies the height for a CALS table row</refpurpose>
  873. <refdescription>
  874. <para>Use the <tag class="xmlpi">dbfo row-height</tag> PI as a child of a
  875. <tag>row</tag> to specify the height of the row.</para>
  876. </refdescription>
  877. <refsynopsisdiv>
  878. <synopsis><tag class="xmlpi">dbfo row-height="<replaceable>height</replaceable>"</tag></synopsis>
  879. </refsynopsisdiv>
  880. <refparameter>
  881. <variablelist>
  882. <varlistentry><term>row-height="<replaceable>height</replaceable>"</term>
  883. <listitem>
  884. <para>Specifies the row height (including units)</para>
  885. </listitem>
  886. </varlistentry>
  887. </variablelist>
  888. </refparameter>
  889. <refsee role="tcg">
  890. <para><link role="tcg"
  891. xlink:href="RowHeight.html"
  892. >Row height</link></para>
  893. </refsee>
  894. </doc:pi>
  895. <xsl:template name="pi.dbfo_row-height">
  896. <xsl:param name="node" select="."/>
  897. <xsl:call-template name="dbfo-attribute">
  898. <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
  899. <xsl:with-param name="attribute" select="'row-height'"/>
  900. </xsl:call-template>
  901. </xsl:template>
  902. <xsl:template name="pi.dbfo-need">
  903. <xsl:variable name="pi-height">
  904. <xsl:call-template name="dbfo-attribute">
  905. <xsl:with-param name="pis" select="."/>
  906. <xsl:with-param name="attribute" select="'height'"/>
  907. </xsl:call-template>
  908. </xsl:variable>
  909. <xsl:variable name="height">
  910. <xsl:choose>
  911. <xsl:when test="$pi-height != ''">
  912. <xsl:value-of select="$pi-height"/>
  913. </xsl:when>
  914. <xsl:otherwise>0pt</xsl:otherwise>
  915. </xsl:choose>
  916. </xsl:variable>
  917. <xsl:variable name="pi-before">
  918. <xsl:call-template name="dbfo-attribute">
  919. <xsl:with-param name="pis" select="."/>
  920. <xsl:with-param name="attribute" select="'space-before'"/>
  921. </xsl:call-template>
  922. </xsl:variable>
  923. <xsl:variable name="spacer">
  924. <fo:block-container width="100%" height="{$height}">
  925. <fo:block><fo:leader leader-length="0pt"/></fo:block>
  926. </fo:block-container>
  927. </xsl:variable>
  928. <xsl:choose>
  929. <xsl:when test="$fop1.extensions != 0">
  930. <!-- Doesn't work in fop -->
  931. </xsl:when>
  932. <xsl:when test="$fop.extensions != 0">
  933. <!-- Doesn't work in fop -->
  934. </xsl:when>
  935. <xsl:when test="$pi-before != '' and
  936. not(following-sibling::listitem) and
  937. not(following-sibling::step)">
  938. <fo:block space-after="0pt" space-before="{$pi-before}">
  939. <xsl:copy-of select="$spacer"/>
  940. </fo:block>
  941. </xsl:when>
  942. <xsl:when test="following-sibling::para">
  943. <fo:block space-after="0pt"
  944. xsl:use-attribute-sets="normal.para.spacing">
  945. <xsl:copy-of select="$spacer"/>
  946. </fo:block>
  947. </xsl:when>
  948. <xsl:when test="following-sibling::table or
  949. following-sibling::figure or
  950. following-sibling::example or
  951. following-sibling::equation">
  952. <fo:block space-after="0pt"
  953. xsl:use-attribute-sets="formal.object.properties">
  954. <xsl:copy-of select="$spacer"/>
  955. </fo:block>
  956. </xsl:when>
  957. <xsl:when test="following-sibling::informaltable or
  958. following-sibling::informalfigure or
  959. following-sibling::informalexample or
  960. following-sibling::informalequation">
  961. <fo:block space-after="0pt"
  962. xsl:use-attribute-sets="informal.object.properties">
  963. <xsl:copy-of select="$spacer"/>
  964. </fo:block>
  965. </xsl:when>
  966. <xsl:when test="following-sibling::itemizedlist or
  967. following-sibling::orderedlist or
  968. following-sibling::variablelist or
  969. following-sibling::simplelist">
  970. <fo:block space-after="0pt"
  971. xsl:use-attribute-sets="informal.object.properties">
  972. <xsl:copy-of select="$spacer"/>
  973. </fo:block>
  974. </xsl:when>
  975. <xsl:when test="following-sibling::listitem or
  976. following-sibling::step">
  977. <fo:list-item space-after="0pt"
  978. xsl:use-attribute-sets="informal.object.properties">
  979. <fo:list-item-label>
  980. <fo:block line-height="0pt"/>
  981. </fo:list-item-label>
  982. <fo:list-item-body start-indent="0pt" end-indent="0pt">
  983. <xsl:copy-of select="$spacer"/>
  984. </fo:list-item-body>
  985. </fo:list-item>
  986. </xsl:when>
  987. <xsl:when test="following-sibling::sect1 or
  988. following-sibling::sect2 or
  989. following-sibling::sect3 or
  990. following-sibling::sect4 or
  991. following-sibling::sect5 or
  992. following-sibling::section">
  993. <fo:block space-after="0pt"
  994. xsl:use-attribute-sets="section.title.properties">
  995. <xsl:copy-of select="$spacer"/>
  996. </fo:block>
  997. </xsl:when>
  998. <xsl:otherwise>
  999. <fo:block space-after="0pt" space-before="0em">
  1000. <xsl:copy-of select="$spacer"/>
  1001. </fo:block>
  1002. </xsl:otherwise>
  1003. </xsl:choose>
  1004. <xsl:choose>
  1005. <xsl:when test="$fop1.extensions != 0">
  1006. <!-- Doesn't work in fop -->
  1007. </xsl:when>
  1008. <xsl:when test="$fop.extensions != 0">
  1009. <!-- Doesn't work in fop -->
  1010. </xsl:when>
  1011. <xsl:when test="following-sibling::listitem or
  1012. following-sibling::step">
  1013. <fo:list-item space-before.precedence="force"
  1014. space-before="-{$height}"
  1015. space-after="0pt"
  1016. space-after.precedence="force">
  1017. <fo:list-item-label>
  1018. <fo:block line-height="0pt"/>
  1019. </fo:list-item-label>
  1020. <fo:list-item-body start-indent="0pt" end-indent="0pt">
  1021. <fo:block line-height="0pt"/>
  1022. </fo:list-item-body>
  1023. </fo:list-item>
  1024. </xsl:when>
  1025. <xsl:otherwise>
  1026. <fo:block space-before.precedence="force"
  1027. space-before="-{$height}"
  1028. space-after="0pt"
  1029. space-after.precedence="force">
  1030. </fo:block>
  1031. </xsl:otherwise>
  1032. </xsl:choose>
  1033. </xsl:template>
  1034. <!-- ==================================================================== -->
  1035. <xsl:template name="dbfo-attribute">
  1036. <!-- * dbfo-attribute is an interal utility template for retrieving -->
  1037. <!-- * pseudo-attributes/parameters from PIs -->
  1038. <xsl:param name="pis" select="processing-instruction('dbfo')"/>
  1039. <xsl:param name="attribute">filename</xsl:param>
  1040. <xsl:call-template name="pi-attribute">
  1041. <xsl:with-param name="pis" select="$pis"/>
  1042. <xsl:with-param name="attribute" select="$attribute"/>
  1043. </xsl:call-template>
  1044. </xsl:template>
  1045. <!-- ==================================================================== -->
  1046. <xsl:template match="processing-instruction()">
  1047. </xsl:template>
  1048. <!-- ==================================================================== -->
  1049. <xsl:template match="processing-instruction('dbfo-need')">
  1050. <xsl:call-template name="pi.dbfo-need"/>
  1051. </xsl:template>
  1052. </xsl:stylesheet>