ch08.sgm 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915
  1. <!-- $XConsortium: ch08.sgm /main/4 1996/10/11 09:24:19 cdedoc $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <chapter id="infoapg.div.8">
  10. <title id="btcmaab0ang24ak">Creating a Style Sheet</title>
  11. <IndexTerm><Primary>style sheets</Primary>
  12. <Secondary>creating</Secondary></IndexTerm>
  13. <para>
  14. A style sheet consists of optional definitions for system-generated
  15. number tokens, followed by sets of element path statements and their
  16. formatting specifications. To create a style sheet for use with
  17. the Information Manager, follow these steps:
  18. </para>
  19. <orderedlist>
  20. <listitem>
  21. <para>
  22. Open a new file, using a text editor such as <literal>vi</literal> or
  23. <literal>emacs</literal>, or an SGML editor.
  24. </para>
  25. </listitem>
  26. <listitem>
  27. <para>
  28. In the file, identify the style sheet name by giving
  29. a value to the Name attribute of the StyleSheet element. For example:
  30. </para>
  31. <literallayout>
  32. &lt;StyleSheet name=<replaceable>sty1</replaceable>>
  33. </literallayout>
  34. <para>
  35. This name must be unique across style sheets in a bookcase.
  36. </para>
  37. </listitem>
  38. <listitem>
  39. <para>
  40. If you plan to use the <systemitem>AutoNumber</systemitem>
  41. feature, create an autonumber for each token stream. System-generated
  42. number tokens can be used only with the Prefix and Suffix features. For example:
  43. </para>
  44. <literallayout>
  45. &lt;AutoNumber id=num0 reset=enumeratedlist counter=numitem type=ucroman initial="1">
  46. &lt;AutoNumber id=num1 reset=enumeratedlist counter=numitem type=lcroman initial="1">
  47. &lt;AutoNumber id=num2 reset=enumeratedlist counter=numitem type=arabic initial="1">
  48. </literallayout>
  49. <para>
  50. For more information on using the autonumber feature, see AutoNumbers in the
  51. <filename>dtinfoStyle.dtd(5)</filename> man page.
  52. </para>
  53. </listitem>
  54. <listitem>
  55. <para>
  56. Using an element <systemitem>Path</systemitem>
  57. statement, specify the path to the element for which you are defining
  58. the style. <systemitem>Path</systemitem> statements
  59. are read left to right, parent element to child element. You need
  60. only specify the minimum unique path to any given element. This
  61. example specifies the path to the LITERALLAYOUT element:
  62. </para>
  63. <literallayout>
  64. &lt;Path>LITERALLAYOUT&lt;/Path>
  65. </literallayout>
  66. </listitem>
  67. <listitem>
  68. <para>
  69. For each <systemitem>Path</systemitem>
  70. you must specify either the <systemitem>Online</systemitem>
  71. feature set or the <systemitem>Print</systemitem>
  72. feature set, or both. To specify both, you must define the on-line
  73. features first. For example:
  74. </para>
  75. <literallayout>
  76. &lt;Path>
  77. LITERALLAYOUT&lt;/Path>
  78. &lt;Online>
  79. &lt;Font fallback=mono>
  80. &lt;Family name=courier weight=medium size=12 charset=iso8859-1>
  81. &lt;Layout flow=verbatim lindent=12 aspace=6 bspace=6>
  82. &lt;LineBreak both>
  83. &lt;/Online>
  84. &lt;Print>
  85. &lt;Font fallback=mono>
  86. &lt;Family name=courier weight=medium size=12 charset=iso8859-1>
  87. &lt;Layout flow=verbatim lindent=12 aspace=6 bspace=6>
  88. &lt;LineBreak both>
  89. &lt;/Print>
  90. </literallayout>
  91. <note>
  92. <para>
  93. The <systemitem>Print</systemitem>
  94. and <systemitem>Online</systemitem> feature sets
  95. match in function, description, and specification except for two
  96. print-specific exceptions: <link linkend="n4kpipbbc3h9x3cs">Medium</link> and
  97. <link linkend="r74dmncp70hp2ol">PageBreak</link>.
  98. </para>
  99. </note>
  100. </listitem>
  101. <listitem>
  102. <para>
  103. Repeat steps 4 and 5 for each element <systemitem>Path</systemitem> for which you want to specify
  104. a particular style.
  105. </para>
  106. </listitem>
  107. </orderedlist>
  108. <!--(((((((((((((((((((((((((((((((((((((-->
  109. <sect1><title id="suwh3wbmhwy94ak">Using Style Features</title>
  110. <para>
  111. The style features discussed in this chapter are:
  112. </para>
  113. <para>
  114. Font Features
  115. </para>
  116. <itemizedlist>
  117. <listitem>
  118. <para>
  119. <link linkend="n6jpipbbc3h9x3cs">Font</link>
  120. </para>
  121. </listitem>
  122. <listitem>
  123. <para>
  124. <link linkend="ujpipbbc3h9x3cs">HighLight</link>
  125. </para>
  126. </listitem>
  127. </itemizedlist>
  128. <para>
  129. Layout Features
  130. </para>
  131. <itemizedlist>
  132. <listitem>
  133. <para>
  134. <link linkend="jjpipbbc3h9x3cs">Layout</link>
  135. </para>
  136. </listitem>
  137. <listitem>
  138. <para><link linkend="n0jpipbbc3h9x3cs">LineBreak</link></para>
  139. </listitem>
  140. <listitem>
  141. <para><link linkend="xjpipbbc3h9x3cs">Margin</link></para>
  142. </listitem>
  143. <listitem>
  144. <para><link linkend="n4llcmnc770hp2ol">Position</link></para>
  145. </listitem>
  146. </itemizedlist>
  147. <para>Print-specific Features</para>
  148. <itemizedlist>
  149. <listitem>
  150. <para><link linkend="n4kpipbbc3h9x3cs">Medium</link></para>
  151. </listitem>
  152. <listitem>
  153. <para><link linkend="r74dmncp70hp2ol">PageBreak</link></para>
  154. </listitem>
  155. </itemizedlist>
  156. <para>Table Features</para>
  157. <itemizedlist>
  158. <listitem>
  159. <para><link linkend="n0sodmncn70hp2ol">Table</link></para>
  160. </listitem>
  161. <listitem>
  162. <para><link linkend="qjpipbbc3h9x3cs">ColFormat</link></para>
  163. </listitem>
  164. <listitem>
  165. <para><link linkend="w9jdmnch70hp2ol">Row</link></para>
  166. </listitem>
  167. <listitem>
  168. <para><link linkend="yrddmncb70hp2ol">Cell</link></para>
  169. </listitem>
  170. <listitem>
  171. <para>TGroup</para>
  172. </listitem>
  173. </itemizedlist>
  174. <para>Other Features</para>
  175. <itemizedlist>
  176. <listitem>
  177. <para><link linkend="dq2emncz70hp2ol">Border</link></para>
  178. </listitem>
  179. <listitem>
  180. <para><link linkend="djpipbbc3h9x3cs">Ignore</link></para>
  181. </listitem>
  182. <listitem>
  183. <para><link linkend="n9kpipbbc3h9x3cs">Prefix and
  184. Suffix</link></para>
  185. </listitem>
  186. </itemizedlist>
  187. </sect1>
  188. <!--(((((((((((((((((((((((((((((((((((((((((((((-->
  189. <sect1>
  190. <title id="r6x9mncr60hp2ol">Font Features</title>
  191. <para>
  192. The style sheet features described in this section&mdash;
  193. <link linkend="n6jpipbbc3h9x3cs">Font</link>, and
  194. <link linkend="ujpipbbc3h9x3cs">HighLight</link>&mdash; are related
  195. to the appearance of text in the Information Manager browser.
  196. </para>
  197. <!--)))))))))))))))))))))))))-->
  198. <sect2>
  199. <title id="n6jpipbbc3h9x3cs">Font</title>
  200. <para>
  201. The <systemitem>Font</systemitem> feature
  202. specifies font families and character sets, and font attributes.
  203. The syntax of the <systemitem>Font</systemitem>
  204. feature contains font attribute specifications, followed by any
  205. number of <systemitem>Family</systemitem> subfeatures,
  206. in which the font family and character sets are specified.
  207. </para>
  208. <para>
  209. The <systemitem>Font</systemitem>
  210. feature eliminates character set ambiguities. Here's the syntax:
  211. </para>
  212. <programlisting>
  213. &lt;Font
  214. Fallback = {sans | serif | mono | symbol | mincho | gothic}
  215. Position = {subscript | sub | superscript | super | baseline}
  216. Size = [0-9]+
  217. Slant = {italic| roman}
  218. Spacing = {char | prop | mono}
  219. Style = "string"
  220. Weight = {bold| medium}
  221. Width = {normal | narrow}>
  222. &lt;Family
  223. Name = "string"
  224. Charset = "string"
  225. Foundry = "string" >
  226. &lt;/Font>
  227. </programlisting>
  228. <!--)))))))))))))))))))))))))))))))-->
  229. <sect3>
  230. <title id="rrn5xmc0gwwa0yk">Font Attributes</title>
  231. <para>
  232. The <systemitem>Font</systemitem> attributes
  233. define the typography of the specified element. The following font
  234. attributes are used by all font families in the
  235. Information Manager browser.
  236. </para>
  237. <variablelist>
  238. <varlistentry>
  239. <term><systemitem>Fallback</systemitem></term>
  240. <listitem>
  241. <para>
  242. The <systemitem>Fallback</systemitem>
  243. attribute specifies the font family to use if the desired
  244. <systemitem>Family</systemitem> is not available on the
  245. font server. The available options map to the following
  246. Information Manager X resources, which are
  247. shown with the default values provided in the global X resources
  248. file. If the <systemitem>Fallback</systemitem>
  249. attribute is not specified, the default is <systemitem>sans</systemitem>.
  250. </para>
  251. <variablelist>
  252. <varlistentry>
  253. <term><systemitem>sans</systemitem></term>
  254. <listitem>
  255. <para>
  256. Specifies a sans serif font. The <systemitem>Dtinfo*FontSans</systemitem>
  257. default is <literal>-dt-application-medium-r-normal-sans-*-*-*-*-p-*-iso8859-1</literal>.
  258. </para>
  259. </listitem>
  260. </varlistentry>
  261. <varlistentry>
  262. <term><systemitem>serif</systemitem></term>
  263. <listitem>
  264. <para>
  265. Specifies a serif font. The <systemitem>Dtinfo*FontSerif</systemitem>
  266. default is <literal>-dt-application-medium-r-normal-serif-*-*-*-*-p-*-iso8859-1</literal>.
  267. </para>
  268. </listitem>
  269. </varlistentry>
  270. <varlistentry>
  271. <term><systemitem>mono</systemitem></term>
  272. <listitem>
  273. <para>
  274. Specifies a mono-spaced font. The <systemitem>Dtinfo*FontMono</systemitem>
  275. default is <literal>-dt-application-medium-r-normal-serif-*-*-*-*-m-*-iso8859-1</literal>.
  276. </para>
  277. </listitem>
  278. </varlistentry>
  279. <varlistentry>
  280. <term><systemitem>symbol</systemitem></term>
  281. <listitem>
  282. <para>Specifies a symbol font. The <systemitem>Dtinfo*FontSymbol</systemitem> default is
  283. <literal>-dt-application-medium-r-normal-*-*-*-*-*-p-*-dtsymbol-1</literal>.
  284. </para>
  285. </listitem>
  286. </varlistentry>
  287. <varlistentry>
  288. <term><systemitem>mincho</systemitem></term>
  289. <listitem>
  290. <para>The default is <systemitem>Dtinfo*FontMincho</systemitem>.
  291. </para>
  292. </listitem>
  293. </varlistentry>
  294. <varlistentry>
  295. <term><systemitem>gothic</systemitem></term>
  296. <listitem>
  297. <para>The default is <systemitem>Dtinfo*FontGothic</systemitem>.
  298. </para>
  299. </listitem>
  300. </varlistentry>
  301. </variablelist>
  302. </listitem>
  303. </varlistentry>
  304. <varlistentry>
  305. <term><systemitem>Position</systemitem></term>
  306. <listitem>
  307. <para>
  308. Specifies where text should be placed relative to
  309. the baseline. The options are: <systemitem>superscript</systemitem>
  310. (above the baseline) and <systemitem>subscript</systemitem>
  311. (below the baseline). You can use the terms <systemitem>super</systemitem>
  312. and <systemitem>sub</systemitem> as shorthand for
  313. <systemitem>superscript</systemitem> and <systemitem>subscript</systemitem>.
  314. </para>
  315. </listitem>
  316. </varlistentry>
  317. <varlistentry>
  318. <term><systemitem>Size</systemitem></term>
  319. <listitem>
  320. <para>Specifies the font size in points. The default is
  321. 14 points.
  322. </para>
  323. </listitem>
  324. </varlistentry>
  325. <varlistentry>
  326. <term><systemitem>Slant</systemitem></term>
  327. <listitem>
  328. <para>The values for the <systemitem>Slant</systemitem>
  329. attribute are <systemitem>roman</systemitem> or
  330. <systemitem>italic</systemitem>. The default is
  331. <systemitem>roman</systemitem>.
  332. </para>
  333. </listitem>
  334. </varlistentry>
  335. <varlistentry>
  336. <term><systemitem>Spacing</systemitem></term>
  337. <listitem>
  338. <para>Specifies character spacing, either <systemitem>prop</systemitem>
  339. (proportional), <systemitem>char</systemitem> (character cell), or
  340. <systemitem>mono</systemitem> (monospaced).
  341. The default is <systemitem>char</systemitem>.
  342. </para>
  343. </listitem>
  344. </varlistentry>
  345. <varlistentry>
  346. <term><systemitem>Style</systemitem></term>
  347. <listitem>
  348. <!--per Rivers, still need more info-->
  349. <para>
  350. Specifies additional style information.
  351. The default is no additional style information.
  352. </para>
  353. </listitem>
  354. </varlistentry>
  355. <varlistentry>
  356. <term><systemitem>Weight</systemitem></term>
  357. <listitem>
  358. <para>
  359. Specifies the weight of the font, either <systemitem>medium</systemitem>
  360. (regular) or <systemitem>bold</systemitem> (thick). The default is
  361. <systemitem>medium</systemitem>.
  362. </para>
  363. </listitem>
  364. </varlistentry>
  365. <varlistentry>
  366. <term><systemitem>Width</systemitem></term>
  367. <listitem>
  368. <para>Specifies the width of the font, either <systemitem>normal</systemitem>
  369. or <systemitem>narrow</systemitem>. The default is <systemitem>normal</systemitem>.
  370. </para>
  371. </listitem>
  372. </varlistentry>
  373. </variablelist>
  374. </sect3>
  375. <!--(((((((((((((((((((((((((((((((((((((-->
  376. <sect3>
  377. <title id="zotxgncmddznuzs">Font Family Subfeature</title>
  378. <para>
  379. The <systemitem>Family</systemitem> subfeature
  380. specifies one or more font families and character sets. The following
  381. list defines the attributes for the <systemitem>Family</systemitem>
  382. subfeature:
  383. </para>
  384. <variablelist>
  385. <varlistentry>
  386. <term><systemitem>Family</systemitem></term>
  387. <listitem>
  388. <para>The <systemitem>Family</systemitem>
  389. attribute specifies the font family and character sets used for
  390. display in the
  391. Information Manager browser. The possible <systemitem>Family</systemitem>
  392. values are strings specifying:
  393. </para>
  394. <variablelist>
  395. <varlistentry>
  396. <term><systemitem>Foundry</systemitem></term>
  397. <listitem>
  398. <para>
  399. The name of the font company. <systemitem>Foundry</systemitem>
  400. is an optional parameter.
  401. </para>
  402. </listitem>
  403. </varlistentry>
  404. <varlistentry>
  405. <term><systemitem>Name</systemitem></term>
  406. <listitem>
  407. <para>
  408. The name of the font. <systemitem>Name</systemitem>
  409. is a required parameter.
  410. </para>
  411. </listitem>
  412. </varlistentry>
  413. <varlistentry>
  414. <term><systemitem>Charset</systemitem></term>
  415. <listitem>
  416. <para>The name of the encoding standard to which the font
  417. conforms. <systemitem>Charset</systemitem> is
  418. a required parameter.
  419. </para>
  420. </listitem>
  421. </varlistentry>
  422. </variablelist>
  423. </listitem>
  424. </varlistentry>
  425. </variablelist>
  426. <note>
  427. <para>
  428. The specified font names and character sets must be available on the
  429. font server of the system that will be displaying the Information
  430. Manager documents. If no <systemitem>Family</systemitem> specifications
  431. are used, the element uses the font specified with the
  432. <systemitem>Fallback</systemitem> attribute of the
  433. <systemitem>Font</systemitem> feature.
  434. </para>
  435. </note>
  436. <para>
  437. The following example illustrates an online path statement
  438. that uses <systemitem>Font</systemitem> and <systemitem>Family</systemitem>
  439. attributes:
  440. </para>
  441. <literallayout>
  442. &lt;Path>
  443. PARA&lt;/Path>
  444. &lt;Online>
  445. &lt;Font Fallback=sans Weight=medium Slant=roman Size=12 Spacing=prop Slant=italic Width=normal>
  446. &lt;Family Name=helvetica Charset=iso8859-1>
  447. &lt;/Online>
  448. </literallayout>
  449. <!--(((((((((((((((((((((((((((((((-->
  450. <sect4>
  451. <title id="pt3bmncx60hp2ol">Font Inheritance</title>
  452. <para>
  453. The <systemitem>Font</systemitem> feature
  454. is <link linkend="pgqaykbbgsg24ak">inherited</link>. Inheritance
  455. determines the set of fonts and font characteristics that will be
  456. applied to inheriting elements. To mask out a font face, both the
  457. font <systemitem>Family</systemitem> feature and
  458. the <systemitem>Charset</systemitem> attribute
  459. must be set. Masking occurs because of the <systemitem>Charset</systemitem>
  460. attribute.
  461. </para>
  462. <para>
  463. To change an element's inherited font characteristics, you
  464. need only change the appropriate <systemitem>Font</systemitem>
  465. feature, not the complete <systemitem>Font/Family</systemitem>
  466. specification. For example:
  467. </para>
  468. <literallayout>
  469. &lt;Font Weight=bold>
  470. </literallayout>
  471. <para>
  472. would be sufficient to change an inherited characteristic
  473. for a given element.
  474. </para>
  475. </sect4>
  476. </sect3>
  477. </sect2>
  478. <!--(((((((((((((((((((((((((((((((((((((((((((((((-->
  479. <sect2>
  480. <title id="ujpipbbc3h9x3cs">HighLight</title>
  481. <!--per Rivers, more info needed on this-->
  482. <para>
  483. The <systemitem>HighLight</systemitem> feature
  484. specifies font-independent display highlights.
  485. The <systemitem>HighLight</systemitem> feature is
  486. <link linkend="pgqaykbbgsg24ak">inherited</link>. Its syntax
  487. is:
  488. </para>
  489. <programlisting>
  490. &lt;Highlight
  491. BGColor = "<replaceable>colors</replaceable>"
  492. FGColor = "<replaceable>colors</replaceable>"
  493. Overline = {true | false}
  494. StrikeThrough = {true | false}
  495. Underline = {true | false}>
  496. </programlisting>
  497. <para>
  498. Reverse video, and background
  499. and foreground colors are supported in the <systemitem>Online</systemitem>
  500. feature sets only. Boxed, overline, strike through, and underline
  501. can be used in both the <systemitem>Print</systemitem>
  502. and <systemitem>Online</systemitem> feature sets.
  503. The default background and foreground colors are defined in the
  504. X resources file.
  505. </para>
  506. <para>The <systemitem>HighLight</systemitem>
  507. feature has the following attributes.
  508. </para>
  509. <variablelist>
  510. <varlistentry>
  511. <term><systemitem>BGColor</systemitem></term>
  512. <listitem>
  513. <para>
  514. Specifies screen background color. You can choose
  515. from any X Window System color name.
  516. </para>
  517. </listitem>
  518. </varlistentry>
  519. <varlistentry>
  520. <term>
  521. <systemitem>FGColor</systemitem></term>
  522. <listitem>
  523. <para>
  524. Specifies screen background color. You can choose
  525. from any X Window System color name.
  526. </para>
  527. </listitem>
  528. </varlistentry>
  529. <varlistentry>
  530. <term><systemitem>Overline</systemitem></term>
  531. <listitem>
  532. <para>
  533. Draws a line above the element. Attribute values
  534. are <systemitem>true</systemitem> and <systemitem>false</systemitem>.
  535. </para>
  536. </listitem>
  537. </varlistentry>
  538. <varlistentry>
  539. <term><systemitem>StrikeThrough</systemitem></term>
  540. <listitem>
  541. <para>Draws a line through the element. Attribute values
  542. are <systemitem>true</systemitem> and <systemitem>false</systemitem>.
  543. </para>
  544. </listitem>
  545. </varlistentry>
  546. <varlistentry>
  547. <term><systemitem>Underline</systemitem></term>
  548. <listitem>
  549. <para>
  550. Draws a line below the element. Valid values
  551. are <systemitem>true</systemitem> and <systemitem>false</systemitem>.
  552. </para>
  553. </listitem>
  554. </varlistentry>
  555. </variablelist>
  556. <para>
  557. This example shows a <systemitem>Path</systemitem>
  558. statement for underlining a TERM
  559. element.
  560. </para>
  561. <literallayout>
  562. &lt;Path>
  563. VARLISTENTRY TERM&lt;/Path>
  564. &lt;Online>
  565. &lt;Highlight underline=true>
  566. &lt;/Online>
  567. &lt;Print>
  568. &lt;Highlight underline=true>
  569. &lt;/Print>
  570. </literallayout>
  571. </sect2>
  572. </sect1>
  573. <!--)))))))))))))))))))))))))))))))))))))))))-->
  574. <sect1>
  575. <title id="p2wbmnc170hp2ol">Layout Features</title>
  576. <para>
  577. The style sheet features described in this section&mdash;
  578. <link linkend="jjpipbbc3h9x3cs">Layout</link>,
  579. <link linkend="n0jpipbbc3h9x3cs">LineBreak</link>,
  580. <link linkend="xjpipbbc3h9x3cs">Margin</link>, and
  581. <link linkend="n4llcmnc770hp2ol">Position</link>&mdash; are related
  582. to the layout of screens and pages in the
  583. Information Manager browser.
  584. </para>
  585. <!--)))))))))))))))))))))))))))))))))))-->
  586. <sect2>
  587. <title id="jjpipbbc3h9x3cs">Layout</title>
  588. <para>
  589. The <systemitem>Layout</systemitem> feature
  590. specifies element spacing, indentation, and text flow formatting.
  591. The syntax for <systemitem>Layout</systemitem>
  592. is:
  593. </para>
  594. <programlisting>
  595. &lt;Layout
  596. ASpace = [0-9]+
  597. BSpace = [0-9]+
  598. Leading = [0-9]+
  599. FIndent = [0-9]+
  600. LIndent = [0-9]+
  601. RIndent = [0-9]+
  602. Flow = {verbatim | filled}
  603. Justify = {left | right | center}
  604. Wrap = {block | join | none}>
  605. </programlisting>
  606. <para>
  607. Possible formatting attributes are:
  608. </para>
  609. <variablelist>
  610. <varlistentry>
  611. <term><systemitem>ASpace</systemitem>, <systemitem>BSpace</systemitem></term>
  612. <listitem>
  613. <para>
  614. These attributes specify the space in points above
  615. and below the current element. The default value is 10 points.
  616. </para>
  617. </listitem>
  618. </varlistentry>
  619. <varlistentry>
  620. <term><systemitem>Leading</systemitem></term>
  621. <listitem>
  622. <para>The <systemitem>Leading</systemitem>
  623. attribute specifies the inter-line space, in points, between the
  624. baseline of one line of text and the top of the highest ascending
  625. character of the following line. The default value is 2 points.
  626. </para>
  627. </listitem>
  628. </varlistentry>
  629. <varlistentry>
  630. <term><systemitem>FIndent</systemitem>, <systemitem>LIndent</systemitem>, <systemitem>RIndent</systemitem></term>
  631. <listitem>
  632. <para>
  633. These attributes specify the first, left, and right
  634. indents, respectively, of a text element. Each value, expressed
  635. in points, is relative to any surrounding elements or to the value
  636. set with the <systemitem>Margin</systemitem> feature.
  637. The default value is 0 (zero).
  638. </para>
  639. </listitem>
  640. </varlistentry>
  641. <varlistentry>
  642. <term><systemitem>Flow</systemitem></term>
  643. <listitem>
  644. <para>
  645. The <systemitem>Flow</systemitem>
  646. attribute specifies how the whitespace and linefeed characters in
  647. the current element are to be handled.</para>
  648. <variablelist>
  649. <varlistentry>
  650. <term><systemitem>verbatim</systemitem></term>
  651. <listitem>
  652. <para>
  653. If the value <systemitem>verbatim</systemitem>
  654. is chosen, whitespace and linefeed characters are considered significant.
  655. That is, the text line is not automatically wrapped but is allowed
  656. to extend beyond the text margin and the window border until a linefeed
  657. character is encountered. The value <systemitem>verbatim</systemitem>
  658. also causes the horizontal scroll bar to be displayed as necessary
  659. to accommodate the text line.
  660. </para>
  661. </listitem>
  662. </varlistentry>
  663. <varlistentry>
  664. <term><systemitem>filled</systemitem></term>
  665. <listitem>
  666. <para>If the value <systemitem>filled</systemitem>
  667. is chosen, whitespace and linefeed characters are not considered
  668. significant and the text line is wrapped if it extends beyond the
  669. window border. The default value is <systemitem>filled</systemitem>.
  670. </para>
  671. </listitem>
  672. </varlistentry>
  673. </variablelist>
  674. </listitem>
  675. </varlistentry>
  676. <varlistentry>
  677. <term><systemitem>Justify</systemitem></term>
  678. <listitem>
  679. <para>The <systemitem>Justify</systemitem>
  680. attribute specifies how text lines within the current element are
  681. to be aligned.</para>
  682. <variablelist>
  683. <varlistentry>
  684. <term><systemitem>left</systemitem></term>
  685. <listitem>
  686. <para>The value <systemitem>left</systemitem>
  687. causes text lines to be aligned along the left margin, while the
  688. right margin runs ragged.
  689. </para>
  690. </listitem>
  691. </varlistentry>
  692. <varlistentry>
  693. <term><systemitem>right</systemitem></term>
  694. <listitem>
  695. <para>
  696. The value <systemitem>right</systemitem>
  697. causes text lines to be aligned along the right margin, while the
  698. left margin runs ragged.
  699. </para>
  700. </listitem>
  701. </varlistentry>
  702. <varlistentry>
  703. <term><systemitem>center</systemitem></term>
  704. <listitem>
  705. <para>The value <systemitem>center</systemitem>
  706. causes text lines to be aligned to the center, with ragged left
  707. and right margins.
  708. </para>
  709. </listitem>
  710. </varlistentry>
  711. </variablelist>
  712. </listitem>
  713. </varlistentry>
  714. <varlistentry>
  715. <term><systemitem>Wrap</systemitem></term>
  716. <listitem><para>The <systemitem>Wrap</systemitem>
  717. attribute works with the <link linkend="n4llcmnc770hp2ol">Position</link>
  718. feature and specifies how text within the current element should
  719. flow.
  720. </para>
  721. </listitem>
  722. </varlistentry>
  723. </variablelist>
  724. <note>
  725. <para>
  726. When the <systemitem>Wrap</systemitem>
  727. attribute and the <systemitem>Position</systemitem>
  728. feature are used, the <link linkend="n0jpipbbc3h9x3cs">LineBreak</link>
  729. feature is ignored.
  730. </para>
  731. </note>
  732. <para>
  733. <systemitem>Layout</systemitem> is an <link linkend="pgqaykbbgsg24ak">inherited</link> feature.
  734. </para>
  735. <para>
  736. This example uses the <systemitem>Layout</systemitem>
  737. feature:
  738. </para>
  739. <literallayout>
  740. &lt;Path>
  741. LITERALLAYOUT&lt;/Path>
  742. &lt;Online>
  743. &lt;layout Flow=verbatim LIndent=12 ASpace=6 BSpace=6 Leading=4>
  744. &lt;/Online>
  745. </literallayout>
  746. </sect2>
  747. <!--)))))))))))))))))))))))))))))))))))))))))))))-->
  748. <sect2>
  749. <title id="n0jpipbbc3h9x3cs">LineBreak</title>
  750. <para>
  751. The <systemitem>LineBreak</systemitem> feature
  752. inserts a line break before and/or after the current element. The
  753. syntax is:
  754. </para>
  755. <programlisting>
  756. &lt;LineBreak {before | after | both}>
  757. </programlisting>
  758. <para>
  759. The three possible values for <systemitem>LineBreak</systemitem>
  760. are:
  761. </para>
  762. <variablelist>
  763. <varlistentry>
  764. <term><systemitem>before</systemitem></term>
  765. <listitem>
  766. <para>
  767. Inserts a line break before the current element.
  768. </para>
  769. </listitem>
  770. </varlistentry>
  771. <varlistentry>
  772. <term><systemitem>after</systemitem></term>
  773. <listitem>
  774. <para>
  775. Inserts a line break after the current element.
  776. </para>
  777. </listitem>
  778. </varlistentry>
  779. <varlistentry>
  780. <term><systemitem>both</systemitem></term>
  781. <listitem>
  782. <para>
  783. Inserts a line break both before and after the current
  784. element.
  785. </para>
  786. </listitem>
  787. </varlistentry>
  788. </variablelist>
  789. <para>
  790. <systemitem>LineBreak</systemitem> is not
  791. inherited.
  792. </para>
  793. <para>
  794. This example uses <systemitem>LineBreak</systemitem>
  795. with a value of <systemitem>both</systemitem>:
  796. </para>
  797. <literallayout>
  798. &lt;Path>
  799. PREFACE TITLE&lt;/Path>
  800. &lt;Online>
  801. &lt;LineBreak both>
  802. &lt;Fontsize=20 weight=medium>
  803. &lt;/Online>
  804. &lt;Print>
  805. &lt;LineBreak& both>
  806. &lt;Font size=24 weight=bold>
  807. &lt;/Print>
  808. </literallayout>
  809. </sect2>
  810. <!--)))))))))))))))))))))))))))))))-->
  811. <sect2>
  812. <title id="xjpipbbc3h9x3cs">Margin</title>
  813. <para>
  814. The <systemitem>Margin</systemitem> feature
  815. specifies the boundaries of the document rendering area, in points.
  816. </para>
  817. <programlisting>
  818. &lt;Margin
  819. Bottom = [0-9]+
  820. Top = [0-9]+
  821. Left = [0-9]+
  822. Right = [0-9]+>
  823. </programlisting>
  824. <para>
  825. The values for the <systemitem>Margin</systemitem>
  826. attribute are:
  827. </para>
  828. <variablelist>
  829. <varlistentry>
  830. <term><systemitem>Bottom</systemitem></term>
  831. <listitem>
  832. <para>
  833. Specifies the vertical space following the last
  834. line on the screen or page.
  835. </para>
  836. </listitem>
  837. </varlistentry>
  838. <varlistentry>
  839. <term><systemitem>Top</systemitem></term>
  840. <listitem>
  841. <para>
  842. Specifies the vertical space preceding the first
  843. line on the screen or page.
  844. </para>
  845. </listitem>
  846. </varlistentry>
  847. <varlistentry>
  848. <term><systemitem>Left</systemitem></term>
  849. <listitem>
  850. <para>
  851. Specifies the distance between the left edge of
  852. the element and the left edge of the screen or page.
  853. </para>
  854. <note>
  855. <para>
  856. For on-line margins, the system uses 18 points of space
  857. in the left margin for items such as Bookmark icons. Thus, any value
  858. assigned to <systemitem>Left</systemitem> (for
  859. on-line rendering) would be in addition to the 18-point system-defined
  860. setting.
  861. </para>
  862. </note>
  863. </listitem>
  864. </varlistentry>
  865. <varlistentry>
  866. <term><systemitem>Right</systemitem></term>
  867. <listitem>
  868. <para>
  869. Specifies the distance between the right edge of
  870. the element and the right edge of the screen or page.
  871. </para>
  872. </listitem>
  873. </varlistentry>
  874. </variablelist>
  875. <para>
  876. The <systemitem>Margin</systemitem> feature
  877. is <link linkend="pgqaykbbgsg24ak">inherited</link> and should
  878. only be used on the root element of an element hierarchy. Here's
  879. an example of a <systemitem>Path</systemitem>
  880. statement containing <systemitem>Font</systemitem>,
  881. <systemitem>Family</systemitem>, and <systemitem>Margin</systemitem>
  882. attributes:
  883. </para>
  884. <literallayout>
  885. &lt;Path>
  886. CHAPTER&lt;/Path>
  887. &lt;Online>
  888. &lt;Font Fallback=sans Weight=medium Slant=roman Size=18>
  889. &lt;Family Name=helvetica Charset=iso8859-1>
  890. &lt;Margin Left=6 Right=12 Top=18 Bottom=18>
  891. &lt;/Online>
  892. &lt;Print>
  893. &lt;Font Fallback=sans Weight=medium Slant=roman Size=24>
  894. &lt;Family Name=helvetica Charset=iso8859-1>
  895. &lt;Margin Left=18 Right=18 Top=18 Bottom=18>
  896. &lt;/Print>
  897. </literallayout>
  898. </sect2>
  899. <!--))))))))))))))))))))))))))))))))))))))-->
  900. <sect2>
  901. <title id="n4llcmnc770hp2ol">Position</title>
  902. <!--per Rivers, needs more info-->
  903. <para>
  904. The <systemitem>Position</systemitem> feature
  905. is used with the <systemitem>Wrap</systemitem>
  906. attribute of the <link linkend="jjpipbbc3h9x3cs">Layout</link>
  907. feature to specify where the current element should start relative
  908. to the defined margins, and how text should flow in the current
  909. and succeeding elements.
  910. </para>
  911. <programlisting>
  912. &lt;Position
  913. Horiz = {lcorner | left | lmargin | center | rcorner | Right | rmargin}
  914. Vert = {bottom | middle | top}>
  915. </programlisting>
  916. <para>
  917. The <systemitem>Position</systemitem>
  918. feature is not inherited.
  919. </para>
  920. </sect2>
  921. </sect1>
  922. <!--)))))))))))))))))))))))))))))))))))))))))))))))))-->
  923. <sect1>
  924. <title id="cwccmncd70hp2ol">Print-specific Features</title>
  925. <para>
  926. The style sheet features described in this section&mdash;
  927. <link linkend="n4kpipbbc3h9x3cs"><systemitem>Medium</systemitem></link>, and
  928. <link linkend="r74dmncp70hp2ol"><systemitem>PageBreak</systemitem></link>&mdash; are specific
  929. to Information Manager print functionality.
  930. </para>
  931. <!--))))))))))))))))))))))))))))))))))))))))-->
  932. <sect2>
  933. <title id="n4kpipbbc3h9x3cs">Medium</title>
  934. <!-- per Rivers, values need to be checked)-->
  935. <para>
  936. The <systemitem>Medium</systemitem> feature
  937. specifies the orientation and size of the print medium. The
  938. <systemitem>Medium</systemitem> feature is <link linkend="pgqaykbbgsg24ak">
  939. inherited</link> and should be
  940. specified at the root-level of an element hierarchy.
  941. </para>
  942. <programlisting>
  943. &lt;Medium
  944. Orientation = {landscape | portrait}
  945. </programlisting>
  946. <para>
  947. The <systemitem>Medium</systemitem> feature
  948. has an <systemitem>Orientation</systemitem> attribute,
  949. which specifies the orientation of the text on the printed
  950. page. Values for the <systemitem>Orientation</systemitem>
  951. attribute are <systemitem>landscape</systemitem>
  952. and <systemitem>portrait</systemitem>.
  953. </para>
  954. <para>
  955. Here is an example <systemitem>&lt;Path></systemitem>
  956. statement using the <systemitem>Medium</systemitem>
  957. feature:
  958. </para>
  959. <literallayout>
  960. &lt;path>CHAPTER
  961. &lt;/path>
  962. &lt;print>
  963. &lt;Medium Orientation="portrait">
  964. &lt;/print>
  965. </literallayout>
  966. </sect2>
  967. <!--((((((((((((((((((((((((((((((((((((((((((((((-->
  968. <sect2>
  969. <title id="r74dmncp70hp2ol">PageBreak</title>
  970. <para>
  971. The PageBreak feature inserts a page break before and/or after
  972. the current element. The syntax is:
  973. </para>
  974. <programlisting>
  975. &lt;PageBreak {before | after | both}>
  976. </programlisting>
  977. <para>
  978. The three possible values for <systemitem>PageBreak</systemitem>
  979. are:
  980. </para>
  981. <variablelist>
  982. <varlistentry>
  983. <term><systemitem>before</systemitem></term>
  984. <listitem>
  985. <para>
  986. Inserts a page break before the current element.
  987. </para>
  988. </listitem>
  989. </varlistentry>
  990. <varlistentry>
  991. <term><systemitem>after</systemitem></term>
  992. <listitem>
  993. <para>
  994. Inserts a page break after the current element.
  995. </para>
  996. </listitem>
  997. </varlistentry>
  998. <varlistentry>
  999. <term><systemitem>both</systemitem></term>
  1000. <listitem>
  1001. <para>
  1002. Inserts a page break both before and after the current
  1003. element.
  1004. </para>
  1005. </listitem>
  1006. </varlistentry>
  1007. </variablelist>
  1008. <para>
  1009. The <systemitem>PageBreak</systemitem> feature
  1010. is not inherited.
  1011. </para>
  1012. <para>
  1013. This example uses <systemitem>PageBreak</systemitem>
  1014. with a value of <systemitem>before</systemitem>:
  1015. </para>
  1016. <literallayout>
  1017. &lt;Path>SECT1 TITLE
  1018. &lt;/Path>
  1019. &lt;Print>
  1020. &lt;PageBreak before>
  1021. &lt;Font size=30 weight=bold>
  1022. &lt;/Print>
  1023. </literallayout>
  1024. </sect2>
  1025. </sect1>
  1026. <!--))))))))))))))))))))))))))))))))))))))#####-->
  1027. <sect1>
  1028. <title id="y.9dmncv70hp2ol">Table Features</title>
  1029. <para>
  1030. The style sheet features described in this section&mdash;
  1031. <link linkend="n0sodmncn70hp2ol">Table</link>,
  1032. <link linkend="qjpipbbc3h9x3cs">ColFormat</link>,
  1033. <link linkend="w9jdmnch70hp2ol">Row</link>,
  1034. <link linkend="yrddmncb70hp2ol">Cell</link>
  1035. ColSep, Frame, and Rowsep
  1036. &mdash; are related to
  1037. the formatting of
  1038. Information Manager tables. A set of <systemitem>Path</systemitem>
  1039. statements illustrating the use of the set of
  1040. <systemitem>Table</systemitem> features is provided at
  1041. the end of the section. (See <link linkend="gwugepcem0hp2ol">Table
  1042. Example</link>.)
  1043. </para>
  1044. <!--))))))))))))))))))))))))))))))))))))))))))))))))-->
  1045. <sect2>
  1046. <title id="n0sodmncn70hp2ol">Table</title>
  1047. <para>
  1048. The <systemitem>Table</systemitem> feature
  1049. is used to format a two-dimensional grid. The style sheet parsing
  1050. cannot check for the use of <systemitem>Cell</systemitem>,
  1051. <systemitem>ColFormat</systemitem>, or <systemitem>Row</systemitem>
  1052. features on child elements
  1053. of any element where <systemitem>Table</systemitem>
  1054. is used. Users must verify these features manually.
  1055. <systemitem>Table</systemitem> syntax is:
  1056. </para>
  1057. <programlisting>
  1058. &lt;Table
  1059. ColSep = "integer"
  1060. Frame ={ Top | Bottom | TopBot | Sides | All | None }
  1061. RowSep = "integer"
  1062. >
  1063. </programlisting>
  1064. <para>
  1065. The <systemitem>Table</systemitem> feature
  1066. has the following attributes:
  1067. </para>
  1068. <variablelist>
  1069. <varlistentry>
  1070. <term><systemitem>ColSep</systemitem></term>
  1071. <listitem>
  1072. <para>The <systemitem>ColSep</systemitem> attribute specifies whether or not a vertical
  1073. rule (line) is to be displayed at the right edge of the cells in the table. A value
  1074. of 0 indicates false, any integer other than 0 indicates true.
  1075. </para>
  1076. </listitem>
  1077. </varlistentry>
  1078. <varlistentry>
  1079. <term><systemitem>Frame</systemitem></term>
  1080. <listitem>
  1081. <para>The <systemitem>Frame</systemitem> attribute controls the placement
  1082. of rulings (lines) around the outer edges of the
  1083. TGroups that form the body of a Table. There are three primitive values
  1084. (<literal>Top</literal>, <literal>Bottom</literal>,
  1085. <literal>None</literal>), and three compound values (<literal>TopBot</literal>,
  1086. <literal>Sides</literal>, <literal>All</literal>). The default is <literal>None</literal>.
  1087. </para>
  1088. </listitem>
  1089. </varlistentry>
  1090. <varlistentry>
  1091. <term><systemitem>Rowsep</systemitem></term>
  1092. <listitem>
  1093. <para>The <systemitem>Rowsep</systemitem> attribute specifies whether or not a horizontal
  1094. rule (line) is to be displayed at the bottom edge of
  1095. cells in the table. A value of 0 indicates false, any integer other than 0 indicates true.
  1096. </para>
  1097. </listitem>
  1098. </varlistentry>
  1099. </variablelist>
  1100. <literallayout>
  1101. &lt;Path>
  1102. TABLE&lt;/Path>
  1103. &lt;Online>
  1104. &lt;Table Cols=3>
  1105. &lt;/Online>
  1106. &lt;Print>
  1107. &lt;Table Cols=3>
  1108. &lt;/Print>
  1109. </literallayout>
  1110. <para>
  1111. The <systemitem>Table</systemitem> feature is not inherited.
  1112. </para>
  1113. </sect2>
  1114. <!--))))))))))))))))))))))))))))))))))))-->
  1115. <sect2>
  1116. <title id="tgrxxx">TGroup</title>
  1117. <para>The <systemitem>TGroup</systemitem> feature specifies the formatting
  1118. for a portion of a table. Note that the style sheet parser cannot check for the
  1119. use of <systemitem>Cell</systemitem>, <systemitem>ColFormat</systemitem>, or <systemitem>Row</systemitem>
  1120. features on child elements of the element where
  1121. <systemitem>TGroup</systemitem> is used, so users must check manually.
  1122. </para>
  1123. <para>
  1124. The TGroup feature has the following attributes:
  1125. </para>
  1126. <variablelist>
  1127. <varlistentry>
  1128. <term><systemitem>CharAlign</systemitem></term>
  1129. <listitem>
  1130. <para>The <systemitem>CharAlign</systemitem> attribute specifies the character to use as the
  1131. alignment point within cells if the
  1132. TGroup's <systemitem>Justify</systemitem> attribute is set to <literal>Char</literal>.
  1133. The default is the period character.
  1134. </para>
  1135. </listitem>
  1136. </varlistentry>
  1137. <varlistentry>
  1138. <term><systemitem>ColSep</systemitem></term>
  1139. <listitem>
  1140. <para>The <systemitem>ColSep</systemitem> attribute specifies whether or not a
  1141. vertical rule (line) is to be displayed at the right edge of cells
  1142. in the table. A value of 0 indicates false, any integer other than 0 indicates true.
  1143. </para>
  1144. </listitem>
  1145. </varlistentry>
  1146. <varlistentry>
  1147. <term><systemitem>Justify</systemitem></term>
  1148. <listitem>
  1149. <para>The <systemitem>Justify</systemitem> attribute specifies horizontal alignment of
  1150. text in the cells of the table. For <literal>Left</literal>, textlines are
  1151. aligned along the left margin and ragged on the right. For <literal>Right</literal>,
  1152. textlines are aligned along the right margin and ragged on the left. For <literal>Center</literal>,
  1153. textlines are ragged on both margins and aligned along the center of the element. The <literal>Char</literal> option aligns
  1154. text&mdash; usually numbers&mdash; with two characters in each line to the right of the character
  1155. specified by the CharAlign attribute, and the rest of the line to the left. The default value for the <systemitem>Justify</systemitem>
  1156. attribute is Left. Note that CALS tables specify a value of "justify"
  1157. (meaning both left- and right-aligned text)&mdash; this is not supported.
  1158. </para>
  1159. </listitem>
  1160. </varlistentry>
  1161. <varlistentry>
  1162. <term><systemitem>RowSep</systemitem></term>
  1163. <listitem>
  1164. <para>The <systemitem>RowSep</systemitem> attribute specifies whether or not a
  1165. horizontal rule (line) is to be displayed at the bottom edge of
  1166. cells in the table. A value of 0 indicates false, any integer other than 0 indicates true.
  1167. </para>
  1168. </listitem>
  1169. </varlistentry>
  1170. <varlistentry>
  1171. <term><systemitem>VJustify</systemitem></term>
  1172. <listitem>
  1173. <para>The <systemitem>VJustify</systemitem> attribute specifies vertical positioning
  1174. of the content of cells in the table. The differences
  1175. among the three settings are only noticeable for cells whose content
  1176. does not fill the cell from top
  1177. to bottom. For <literal>Top</literal>, the content is started at the top of a cell and
  1178. may complete before the bottom
  1179. of the cell. For <literal>Bottom</literal>, the content ends at the bottom of a cell;
  1180. there may be unused space above the content. For <literal>Middle</literal>, the content is vertically centered in a cell.
  1181. The default value for the <systemitem>VJstify</systemitem> attribute is <literal>Top</literal>.
  1182. </para>
  1183. </listitem>
  1184. </varlistentry>
  1185. </variablelist>
  1186. <programlisting>
  1187. &lt;TGroup
  1188. CharAlign = "char"
  1189. ColSep = "integer"
  1190. Justify = { Left | Right | Center | Char }
  1191. RowSep = "integer"
  1192. VJustify = { Top | Middle | Bottom }
  1193. >
  1194. </programlisting>
  1195. <para>
  1196. The <systemitem>TGroup</systemitem> feature is not inherited.
  1197. </para>
  1198. </sect2>
  1199. <!--))))))))))))))))))))))))))))))))))))-->
  1200. <sect2>
  1201. <title id="qjpipbbc3h9x3cs">ColFormat</title>
  1202. <para>
  1203. The <systemitem>ColFormat</systemitem> feature
  1204. specifies the formatting for individual columns in a table. You
  1205. use one <systemitem>ColFormat</systemitem> feature
  1206. for each column in the table, in left-to-right order. If a table
  1207. instance has 10 columns and the containing <systemitem>Table</systemitem>
  1208. element (which uses the <systemitem>Table</systemitem>
  1209. feature) has <systemitem>ColFormat</systemitem>
  1210. features for only 8 of the columns, the last two columns get the
  1211. default values of the last specified <systemitem>ColFormat</systemitem>
  1212. feature.
  1213. </para>
  1214. <programlisting>
  1215. &lt;ColFormat
  1216. Charalign = "<replaceable>char</replaceable>"
  1217. ColSep = "integer"
  1218. Justify = {left | right | center | char}
  1219. Name = "<replaceable>string</replaceable>"
  1220. RowSep = "integer"
  1221. Width = [0-9]+
  1222. >
  1223. </programlisting>
  1224. <para>
  1225. The <systemitem>ColFormat</systemitem> feature
  1226. has the following attributes:
  1227. </para>
  1228. <variablelist>
  1229. <varlistentry>
  1230. <term><systemitem>Charalign</systemitem></term>
  1231. <listitem>
  1232. <para>
  1233. Specifies the character to use in columns where
  1234. the <systemitem>Justify</systemitem> attribute
  1235. is set to <systemitem>Char</systemitem>. The default
  1236. is the period (.) character.
  1237. </para>
  1238. </listitem>
  1239. </varlistentry>
  1240. <varlistentry>
  1241. <term><systemitem>ColSep</systemitem></term>
  1242. <listitem>
  1243. <para>
  1244. The <systemitem>ColSep</systemitem> attribute specifies whether or not a vertical rule (line)
  1245. is to be displayed at the right edge of cells in columns that use this format.
  1246. A value of 0 indicates false, any integer other than 0 indicates true.
  1247. </para>
  1248. </listitem>
  1249. </varlistentry>
  1250. <varlistentry>
  1251. <term><systemitem>Justify</systemitem></term>
  1252. <listitem>
  1253. <para>
  1254. Specifies how to handle text lines in the column.
  1255. Possible values are:
  1256. </para>
  1257. <variablelist>
  1258. <varlistentry>
  1259. <term><systemitem>left</systemitem></term>
  1260. <listitem>
  1261. <para>
  1262. Aligns the text to the left margin. The right margin
  1263. runs ragged.
  1264. </para>
  1265. </listitem>
  1266. </varlistentry>
  1267. <varlistentry>
  1268. <term><systemitem>right</systemitem></term>
  1269. <listitem>
  1270. <para>
  1271. Aligns the text to the right margin. The left margin
  1272. runs ragged.
  1273. </para>
  1274. </listitem>
  1275. </varlistentry>
  1276. <varlistentry>
  1277. <term><systemitem>center</systemitem></term>
  1278. <listitem>
  1279. <para>
  1280. Aligns the text to the center of the element. The
  1281. left and right margins run ragged.
  1282. </para>
  1283. </listitem>
  1284. </varlistentry>
  1285. <varlistentry>
  1286. <term><systemitem>char</systemitem></term>
  1287. <listitem>
  1288. <para>
  1289. Aligns text, usually numbers, with two characters
  1290. in each line to the right of the character specified by the
  1291. <systemitem>CharAlign</systemitem> attribute. The rest
  1292. of the characters align left.
  1293. </para>
  1294. </listitem>
  1295. </varlistentry>
  1296. </variablelist>
  1297. <note>
  1298. <para>
  1299. The default value for the <systemitem>Justify</systemitem>
  1300. attribute is <systemitem>left</systemitem> in
  1301. Information Manager, unlike
  1302. CALS tables, in which the <systemitem>justify</systemitem>
  1303. attribute value specifies left and right alignment.
  1304. </para>
  1305. </note>
  1306. </listitem>
  1307. </varlistentry>
  1308. <varlistentry>
  1309. <term><systemitem>Name</systemitem></term>
  1310. <listitem>
  1311. <para>The <systemitem>Name</systemitem>
  1312. attribute is a string that is used by the <systemitem>Cell</systemitem>
  1313. feature to reference the particular column formatting
  1314. (<systemitem>ColFormat</systemitem>) attributes to use.
  1315. </para>
  1316. </listitem>
  1317. </varlistentry>
  1318. <varlistentry>
  1319. <term><systemitem>RowSep</systemitem></term>
  1320. <listitem>
  1321. <para>
  1322. The <systemitem>RowSep</systemitem> attribute specifies whether or not a horizontal rule (line)
  1323. is to be displayed at the bottom edge of cells in columns that use this format.
  1324. A value of 0 indicates false, any integer other than 0 indicates true.
  1325. </para>
  1326. </listitem>
  1327. </varlistentry>
  1328. <varlistentry>
  1329. <term><systemitem>Width</systemitem></term>
  1330. <listitem>
  1331. <para>
  1332. The <systemitem>Width</systemitem>
  1333. attribute specifies the width of the column relative to other columns.
  1334. </para>
  1335. <para>
  1336. For example, if three column formats are referenced from a
  1337. row, their width values divided by their total widths will determine
  1338. the amount of space used. Thus, if column A has a width value of
  1339. 90, and columns B and C each have width values of 180, column A
  1340. will be formatted to use 20% (90/450).
  1341. </para>
  1342. <para>
  1343. If the <systemitem>Width</systemitem> attribute
  1344. is not specified, the rows of the column instance are examined,
  1345. and the widest segment found there is used as the default width
  1346. of that column.
  1347. </para>
  1348. </listitem>
  1349. </varlistentry>
  1350. </variablelist>
  1351. <para>
  1352. The <systemitem>ColFormat</systemitem> feature
  1353. is not inherited.
  1354. </para>
  1355. <para>
  1356. Here is an example of a path statement using the <systemitem>ColFormat</systemitem> feature:
  1357. </para>
  1358. <literallayout>
  1359. &lt;Path>
  1360. TABLE&lt;/Path>
  1361. &lt;Online>
  1362. &lt;ColFormat Cols=3 Justify=left Name="column1" Width=90>
  1363. &lt;/Online>
  1364. &lt;Print>
  1365. &lt;ColFormat Cols=3 Justify=left Name="column1" Width=90>
  1366. &lt;/Print>
  1367. </literallayout>
  1368. </sect2>
  1369. <!--)))))))))))))))))))))))))))))))))))))))))))))))))))-->
  1370. <sect2>
  1371. <title id="w9jdmnch70hp2ol">Row</title>
  1372. <para>
  1373. The <systemitem>Row</systemitem> feature
  1374. identifies the beginning of a row, typically in a table. It can
  1375. be used with <systemitem>Cell</systemitem> and
  1376. <systemitem>Table</systemitem>.
  1377. </para>
  1378. <programlisting>
  1379. &lt;Row>
  1380. </programlisting>
  1381. <programlisting>
  1382. &lt;Row
  1383. RowSep = "integer"
  1384. VJustify = { Top | Middle | Bottom }
  1385. >
  1386. </programlisting>
  1387. <para>
  1388. The <systemitem>Row</systemitem> feature
  1389. has the following attributes:
  1390. </para>
  1391. <variablelist>
  1392. <varlistentry>
  1393. <term><systemitem>Rowsep</systemitem></term>
  1394. <listitem>
  1395. <para>
  1396. RowSep specifies whether or not a horizontal rule (line) is to be displayed at the bottom edge of
  1397. cells in the row. A value of 0 indicates false, any integer other than 0 indicates true.
  1398. </para>
  1399. </listitem>
  1400. </varlistentry>
  1401. <varlistentry>
  1402. <term><systemitem>VJustify</systemitem></term>
  1403. <listitem>
  1404. <para>
  1405. The <systemitem>VJustify</systemitem> attribute specifies vertical positioning of the content of cells in the row. The differences among
  1406. the three settings are only noticeable for cells whose content does not fill the cell from top to
  1407. bottom. For <literal>Top</literal>, the content is started at the top of a cell and may complete before the bottom of
  1408. the cell. For <literal>Bottom</literal>, the content ends at the bottom of a cell; there may be unused space above
  1409. the content. For <literal>Middle</literal>, the content is vertically centered in a cell. The default value for the
  1410. <systemitem>VJustify</systemitem> attribute is <literal>Top</literal>.
  1411. </para>
  1412. </listitem>
  1413. </varlistentry>
  1414. </variablelist>
  1415. <para>
  1416. The <systemitem>Row</systemitem> feature is not inherited.
  1417. </para>
  1418. <literallayout>
  1419. &lt;Path>ROW
  1420. &lt;/Path>
  1421. &lt;Online>
  1422. &lt;Row>
  1423. &lt;/Online>
  1424. &lt;Print>
  1425. &lt;Row>
  1426. &lt;/Print>
  1427. </literallayout>
  1428. </sect2>
  1429. <!--))))))))))))))))))))))))))))))))))))))))-->
  1430. <sect2>
  1431. <title id="yrddmncb70hp2ol">Cell</title>
  1432. <para>
  1433. The <systemitem>Cell</systemitem> feature specifies the formatting to
  1434. use for a cell. It also identifies the beginning of the cell and defines
  1435. its horizontal and vertical spans.
  1436. </para>
  1437. <programlisting>
  1438. &lt;Cell
  1439. CharAlign = "char"
  1440. ColRef = "string"
  1441. ColSep = "integer"
  1442. ColStart = "string"
  1443. ColEnd = "string"
  1444. Justify = { Left | Right | Center | Char }
  1445. SpanRows = [0-9]+
  1446. VJustify = { Top | Middle | Bottom }
  1447. </programlisting>
  1448. <para>
  1449. The <systemitem>Cell</systemitem> feature
  1450. has the following attributes:
  1451. </para>
  1452. <variablelist>
  1453. <varlistentry>
  1454. <term><systemitem>CharAlign</systemitem></term>
  1455. <listitem><para>The <systemitem></systemitem>
  1456. attribute specifies the character to use as the alignment point in cells where the Justify
  1457. attribute is set to Char. The default is the period (.) character.
  1458. </para>
  1459. </listitem>
  1460. </varlistentry>
  1461. <varlistentry>
  1462. <term><systemitem>ColRef</systemitem></term>
  1463. <listitem>
  1464. <para>The <systemitem>ColRef</systemitem>
  1465. attribute is a string that references the name of the column format
  1466. (<link linkend="qjpipbbc3h9x3cs">ColFormat</link>) to use for
  1467. formatting the cell.
  1468. </para>
  1469. </listitem>
  1470. </varlistentry>
  1471. <varlistentry>
  1472. <term><systemitem>ColSep</systemitem></term>
  1473. <listitem><para>The <systemitem>ColSep</systemitem>
  1474. attribute specifies whether or not a vertical rule (line) is to be displayed at the right edge of the
  1475. cell. A value of 0 indicates false, any integer other than 0 indicates true.
  1476. </para>
  1477. </listitem>
  1478. </varlistentry>
  1479. <varlistentry>
  1480. <term><systemitem>ColStart</systemitem></term>
  1481. <listitem><para>The <systemitem>ColStart</systemitem> attribute refers to the column
  1482. (defined by the named <systemitem>ColFormat</systemitem>)
  1483. to use as the starting
  1484. (leftmost) column for a horizontally-spanned cell. If <systemitem>ColEnd</systemitem> isn't also specified,
  1485. <systemitem>ColStart</systemitem> serves the same purpose as <systemitem>ColRef</systemitem>.
  1486. </para>
  1487. </listitem>
  1488. </varlistentry>
  1489. <varlistentry>
  1490. <term><systemitem>ColEnd</systemitem></term>
  1491. <listitem><para>The <systemitem>ColEnd</systemitem> attribute
  1492. refers to the column (defined by the named <systemitem>ColFormat</systemitem>) to use as the rightmost
  1493. column for a horizontally-spanned cell. Ignored if <systemitem>ColStart</systemitem> isn't also specified.
  1494. </para>
  1495. </listitem>
  1496. </varlistentry>
  1497. <varlistentry>
  1498. <term><systemitem>Justify</systemitem></term>
  1499. <listitem><para>The <systemitem>Justify</systemitem> attribute specifies
  1500. horizontal alignment of text in the cell. For <literal>Left</literal>, textlines are aligned along
  1501. the left margin and ragged on the right. For <literal>Right</literal>, textlines are aligned along the right margin
  1502. and ragged on the left. For <literal>Center</literal>, textlines are ragged on both margins and aligned along the
  1503. center of the element. The <literal>Char</literal> option aligns text&mdash; usually numbers&mdash; with two characters in
  1504. each line to the right of the character specified by the <systemitem>CharAlign</systemitem> attribute, and the rest of the
  1505. line to the left. The default value for the <systemitem>Justify</systemitem> attribute is <literal>Left</literal>. Note that CALS tables
  1506. specify a value of "justify" (meaning both left- and right-aligned text)&mdash; this is not supported.</para>
  1507. </listitem>
  1508. </varlistentry>
  1509. <varlistentry>
  1510. <term><systemitem>SpanRows</systemitem></term>
  1511. <listitem>
  1512. <para>The <systemitem>SpanRows</systemitem>
  1513. attribute specifies the vertical span of the cell. The value of
  1514. <systemitem>SpanRows</systemitem> must be a positive
  1515. number. The default is 1.
  1516. </para>
  1517. </listitem>
  1518. </varlistentry>
  1519. <varlistentry>
  1520. <term><systemitem>RowSep</systemitem></term>
  1521. <listitem><para>The <systemitem>RowSep</systemitem> attribute specifies
  1522. whether or not a horizontal rule (line) is to be displayed at the bottom edge of
  1523. the cell. A value of 0 indicates false, any integer other than 0 indicates true.
  1524. </para>
  1525. </listitem>
  1526. </varlistentry>
  1527. <varlistentry>
  1528. <term><systemitem>VJustify</systemitem></term>
  1529. <listitem><para>The <systemitem>VJustify</systemitem> attribute specifies
  1530. vertical positioning of cell content. The differences among the three settings
  1531. are only noticeable for cells whose content does not fill the cell from top to bottom. For <literal>Top</literal>, the
  1532. content is started at the top of the cell and may complete before the bottom of the cell. For
  1533. <literal>Bottom</literal>, the content ends at the bottom of the cell; there may be unused space above the content.
  1534. For <literal>Middle</literal>, the content is vertically centered in the cell. The default value for the <systemitem>VJustify</systemitem>
  1535. attribute is <literal>Top</literal>.
  1536. </para>
  1537. </listitem>
  1538. </varlistentry>
  1539. </variablelist>
  1540. <para>
  1541. The <systemitem>Cell</systemitem> feature
  1542. can be used with the <link linkend="w9jdmnch70hp2ol">Row</link>
  1543. and <link linkend="n0sodmncn70hp2ol">Table</link> features.
  1544. If a single element implies the beginning of a table, row, and cell,
  1545. all three features can be used.
  1546. </para>
  1547. <para>
  1548. The <systemitem>Cell</systemitem> feature
  1549. is not inherited.
  1550. </para>
  1551. <literallayout>
  1552. &lt;Path>TABLE
  1553. &lt;/Path>
  1554. &lt;Online>
  1555. &lt;Cell ColRef="column1" SpanCols=1 SpanRows=1>
  1556. &lt;/Online>
  1557. &lt;Print>
  1558. &lt;Cell ColRef="column1" SpanCols=1 SpanRows=1>
  1559. &lt;/Print>
  1560. </literallayout>
  1561. <para>
  1562. The following set of <systemitem>Path</systemitem>
  1563. statements illustrates how a table might be specified in a style
  1564. sheet. The example uses attribute references to assign values to
  1565. the table-related features. These values would be specified in other
  1566. elements in the document.
  1567. </para>
  1568. <example>
  1569. <title id="gwugepcem0hp2ol">Table Example</title>
  1570. <literallayout>
  1571. &lt;Path>TABLE
  1572. &lt;/Path>
  1573. &lt;Online>
  1574. &lt;Border display="@frame">
  1575. &lt;/Online>
  1576. &lt;Path>TGROUP
  1577. &lt;/Path>
  1578. &lt;Online>
  1579. &lt;Table Cols="@cols">
  1580. &lt;/Online>
  1581. &lt;Path>COLSPEC
  1582. &lt;/Path>
  1583. &lt;Online>
  1584. &lt;ColFormat Justify="@align" Name="@colname" Width="@colwidth">
  1585. &lt;/Online>
  1586. &lt;Path>TBODY
  1587. &lt;/Path>
  1588. &lt;Online>
  1589. &lt;Border
  1590. display=all>
  1591. &lt;/Online>
  1592. &lt;Path>ROW
  1593. &lt;/Path>
  1594. &lt;Online>
  1595. &lt;Row>
  1596. &lt;/Online>
  1597. &lt;Path>ENTRY
  1598. &lt;/Path>
  1599. &lt;Online>
  1600. &lt;Cell ColRef="@colname" SpanCols="@nameend - @namest + 1" SpanRows="@morerows + 1>
  1601. &lt;border display=all>
  1602. &lt;/Online>
  1603. </literallayout>
  1604. </example>
  1605. </sect2>
  1606. </sect1>
  1607. <!--))))))))))))))))))))))))))))))))))))))-->
  1608. <sect1>
  1609. <title id="n38xdmnct70hp2ol">Other Features</title>
  1610. <para>
  1611. The style sheet features described in this section are
  1612. <link linkend="dq2emncz70hp2ol">Border</link>,
  1613. <link linkend="djpipbbc3h9x3cs">Ignore</link>, and
  1614. <link linkend="n9kpipbbc3h9x3cs">Prefix and Suffix</link>.
  1615. </para>
  1616. <!--)))))))))))))))))))))))))))))))-->
  1617. <sect2>
  1618. <title id="dq2emncz70hp2ol">Border</title>
  1619. <para>
  1620. The <systemitem>Border</systemitem> feature is used to
  1621. draw rule lines at the outside
  1622. edges of an element. Its syntax is:
  1623. </para>
  1624. <programlisting>
  1625. &lt;Border
  1626. Display = {bottom | left | right | top | all | horiz | vert }
  1627. Thickness = [0-9]+>
  1628. </programlisting>
  1629. <para>
  1630. The <systemitem>Border</systemitem> feature
  1631. has the following attributes:
  1632. </para>
  1633. <variablelist>
  1634. <varlistentry>
  1635. <term><systemitem>Display</systemitem></term>
  1636. <listitem>
  1637. <para>
  1638. The <systemitem>Display</systemitem>
  1639. attribute accepts the following values:
  1640. </para>
  1641. <variablelist>
  1642. <varlistentry>
  1643. <term><systemitem>bottom</systemitem></term>
  1644. <listitem>
  1645. <para>
  1646. Specifies a rule line below the element.
  1647. </para>
  1648. </listitem>
  1649. </varlistentry>
  1650. <varlistentry>
  1651. <term><systemitem>left</systemitem></term>
  1652. <listitem>
  1653. <para>
  1654. Specifies a rule line to the left of the element.
  1655. </para>
  1656. </listitem>
  1657. </varlistentry>
  1658. <varlistentry>
  1659. <term><systemitem>right</systemitem></term>
  1660. <listitem>
  1661. <para>
  1662. Specifies a rule line to the right of the element.
  1663. </para>
  1664. </listitem>
  1665. </varlistentry>
  1666. <varlistentry>
  1667. <term><systemitem>top</systemitem></term>
  1668. <listitem>
  1669. <para>
  1670. Specifies a rule line above the element.
  1671. </para>
  1672. </listitem>
  1673. </varlistentry>
  1674. <varlistentry>
  1675. <term><systemitem>all</systemitem></term>
  1676. <listitem>
  1677. <para>
  1678. This compound value specifies rule lines above,
  1679. below, and to the right and left of the element.
  1680. </para>
  1681. </listitem>
  1682. </varlistentry>
  1683. <varlistentry>
  1684. <term><systemitem>horiz</systemitem></term>
  1685. <listitem>
  1686. <para>
  1687. This compound value specifies rule lines above and
  1688. below the element.
  1689. </para>
  1690. </listitem>
  1691. </varlistentry>
  1692. <varlistentry>
  1693. <term><systemitem>vert</systemitem></term>
  1694. <listitem>
  1695. <para>
  1696. This compound value specifies rule lines to the
  1697. left and right of the element.
  1698. </para>
  1699. </listitem>
  1700. </varlistentry>
  1701. </variablelist>
  1702. </listitem>
  1703. </varlistentry>
  1704. <varlistentry>
  1705. <term><systemitem>Thickness</systemitem></term>
  1706. <listitem>
  1707. <para>
  1708. Specifies the line weight of the border in points. The value
  1709. of <systemitem>Thickness</systemitem> must be
  1710. a positive number.
  1711. </para>
  1712. </listitem>
  1713. </varlistentry>
  1714. </variablelist>
  1715. <para>
  1716. The <systemitem>Border</systemitem> feature
  1717. is not inherited.
  1718. </para>
  1719. <para>
  1720. This example <systemitem>Path</systemitem>
  1721. statement displays a 2-point border around the LINK element.
  1722. </para>
  1723. <literallayout>
  1724. &lt;Path>
  1725. LINK&lt;/Path>
  1726. &lt;Online>
  1727. &lt;Border Display=all Thickness=2>
  1728. &lt;/Online>
  1729. &lt;Print>
  1730. &lt;Border Display=al Thickness=2>
  1731. &lt;/Print>
  1732. </literallayout>
  1733. </sect2>
  1734. <!--)))))))))))))))))))))))))))))))))))))))-->
  1735. <sect2>
  1736. <title id="djpipbbc3h9x3cs">Ignore</title>
  1737. <para>
  1738. <systemitem>Ignore</systemitem> specifies
  1739. whether the contents of the element are to be displayed or printed.
  1740. Its syntax is:
  1741. </para>
  1742. <programlisting>
  1743. &lt;Ignore
  1744. >
  1745. </programlisting>
  1746. <para>This example <systemitem>Path</systemitem>
  1747. statement specifies that text delimited by the VERSION
  1748. element will not be displayed or printed.
  1749. </para>
  1750. <literallayout>
  1751. &lt;Path>VERSION
  1752. &lt;/Path>
  1753. &lt;Online>
  1754. &lt;Ignore>
  1755. &lt;/Online>
  1756. &lt;Print>
  1757. &lt;Ignore>
  1758. &lt;/Print>
  1759. </literallayout>
  1760. <note>
  1761. <para>
  1762. The <systemitem>DTINFO.Ignore</systemitem> architectural form prevents an element
  1763. and its contents from being placed in the full-text index and document
  1764. database. The Ignore feature also prevents the content from being
  1765. rendered. For more information, see <link linkend="infoapg.div.9">Understanding
  1766. Architectural Forms</link>.
  1767. </para>
  1768. </note>
  1769. </sect2>
  1770. <!--))))))))))))))))))))))))))))))))))))))))))))-->
  1771. <sect2>
  1772. <title id="n9kpipbbc3h9x3cs">Prefix and Suffix</title>
  1773. <para>
  1774. The <systemitem>Prefix</systemitem> and
  1775. <systemitem>Suffix</systemitem> features add constant
  1776. text before and after the content of an element. Each instance of
  1777. a <systemitem>Prefix</systemitem> or <systemitem>Suffix</systemitem>
  1778. feature must include one
  1779. <systemitem>Content</systemitem> subfeature and
  1780. any number of additional <systemitem>allowed</systemitem>
  1781. features.
  1782. </para>
  1783. <programlisting>
  1784. &lt;Prefix>
  1785. &lt;Content>
  1786. {#PCDATA | Auto}+ &lt;/content>
  1787. <replaceable>allowed features</replaceable>
  1788. &lt;/Prefix>
  1789. &lt;Suffix>
  1790. &lt;Content>
  1791. {#PCDATA | Auto}+ &lt;/content>
  1792. <replaceable>allowed features</replaceable>
  1793. &lt;/Suffix>
  1794. </programlisting>
  1795. <para>
  1796. <systemitem>Prefix</systemitem> and <systemitem>Suffix</systemitem>
  1797. features are not inherited.
  1798. </para>
  1799. <!--(((((((((((((((((((((((((((((((((((((((((((((((-->
  1800. <sect3>
  1801. <title id="s75skocwg0hp2ol">Content Subfeature and Allowed
  1802. Features for Prefix and Suffix</title>
  1803. <para>
  1804. The <systemitem>Content</systemitem> subfeature
  1805. can contain any combination of text or system-generated number tokens.
  1806. </para>
  1807. <para>
  1808. To specify a system-generated number token, use the
  1809. <systemitem>Auto</systemitem> subfeature, which has one
  1810. required attribute&mdash; <replaceable>ID</replaceable>.
  1811. The <replaceable>ID</replaceable>
  1812. in this case is the name of the number token specified with the
  1813. <systemitem>AutoNumber</systemitem>
  1814. feature. Use both start and end tags when using the
  1815. <systemitem>Content</systemitem> subfeature.
  1816. </para>
  1817. <para>
  1818. You can specify the following allowed features in a
  1819. <systemitem>Prefix</systemitem> or <systemitem>Suffix</systemitem> feature.
  1820. </para>
  1821. <itemizedlist>
  1822. <listitem>
  1823. <para><link linkend="n6jpipbbc3h9x3cs">Font</link></para>
  1824. </listitem>
  1825. <listitem>
  1826. <para><link linkend="ujpipbbc3h9x3cs">HighLight</link></para>
  1827. </listitem>
  1828. <listitem>
  1829. <para><link linkend="jjpipbbc3h9x3cs">Layout</link></para>
  1830. </listitem>
  1831. <listitem>
  1832. <para><link linkend="n0jpipbbc3h9x3cs">LineBreak</link></para>
  1833. </listitem>
  1834. <listitem>
  1835. <para><link linkend="n4llcmnc770hp2ol">Position</link></para>
  1836. </listitem>
  1837. </itemizedlist>
  1838. <para>
  1839. This example shows a <systemitem>Prefix</systemitem>
  1840. and <systemitem>Suffix</systemitem> for the CAUTION element:
  1841. </para>
  1842. <literallayout>
  1843. &lt;Path>CAUTION
  1844. &lt;Path/>
  1845. &lt;Online>
  1846. &lt;Prefix>
  1847. &lt;Content>CAUTION:
  1848. &lt;/Content>
  1849. &lt;Font Weight=bold size=14>
  1850. &lt;Layout LIndent=6 ASpace=6>
  1851. &lt;Linebreak both>
  1852. &lt;Highlight Underline=true>
  1853. &lt;/Prefix>
  1854. &lt;/Online>
  1855. &lt;Print>
  1856. &lt;Prefix>
  1857. &lt;Content>CAUTION:
  1858. &lt;/Content>
  1859. &lt;Font Weight=bold size=14>
  1860. &lt;Layout LIndent=6 ASpace=6>
  1861. &lt;Linebreak both>
  1862. &lt;Highlight Underline=true>
  1863. &lt;/Prefix>
  1864. &lt;/Print>
  1865. &lt;Path>CAUTION&lt;Path/>
  1866. &lt;Online>
  1867. &lt;Suffix>&lt;Content>CAUTION:
  1868. &lt;/Content>
  1869. &lt;Font Weight=bold size=14>
  1870. &lt;Layout LIndent=6 ASpace=6>
  1871. &lt;Linebreak both>
  1872. &lt;Highlight Underline=true>
  1873. &lt;/Suffix>
  1874. &lt;/Online>
  1875. &lt;Print>
  1876. &lt;Suffix>
  1877. &lt;Content>WARRANTY ALERT
  1878. &lt;/Content>
  1879. &lt;Font Weight=bold Size=14>
  1880. &lt;Layout LIndent=6 ASpace=6>
  1881. &lt;Linebreak both>
  1882. &lt;Highlight Underline=true>
  1883. &lt;/SUFFIX>
  1884. &lt;/Print>
  1885. </literallayout>
  1886. </sect3>
  1887. </sect2>
  1888. </sect1>
  1889. </chapter>