1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915 |
- <!-- $XConsortium: ch08.sgm /main/4 1996/10/11 09:24:19 cdedoc $ -->
- <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
- <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
- <!-- (c) Copyright 1995 International Business Machines Corp. -->
- <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
- <!-- (c) Copyright 1995 Novell, Inc. -->
- <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
- <!-- (c) Copyright 1995 Hitachi. -->
- <chapter id="infoapg.div.8">
- <title id="btcmaab0ang24ak">Creating a Style Sheet</title>
- <IndexTerm><Primary>style sheets</Primary>
- <Secondary>creating</Secondary></IndexTerm>
- <para>
- A style sheet consists of optional definitions for system-generated
- number tokens, followed by sets of element path statements and their
- formatting specifications. To create a style sheet for use with
- the Information Manager, follow these steps:
- </para>
- <orderedlist>
- <listitem>
- <para>
- Open a new file, using a text editor such as <literal>vi</literal> or
- <literal>emacs</literal>, or an SGML editor.
- </para>
- </listitem>
- <listitem>
- <para>
- In the file, identify the style sheet name by giving
- a value to the Name attribute of the StyleSheet element. For example:
- </para>
- <literallayout>
- <StyleSheet name=<replaceable>sty1</replaceable>>
- </literallayout>
- <para>
- This name must be unique across style sheets in a bookcase.
- </para>
- </listitem>
- <listitem>
- <para>
- If you plan to use the <systemitem>AutoNumber</systemitem>
- feature, create an autonumber for each token stream. System-generated
- number tokens can be used only with the Prefix and Suffix features. For example:
- </para>
- <literallayout>
- <AutoNumber id=num0 reset=enumeratedlist counter=numitem type=ucroman initial="1">
- <AutoNumber id=num1 reset=enumeratedlist counter=numitem type=lcroman initial="1">
- <AutoNumber id=num2 reset=enumeratedlist counter=numitem type=arabic initial="1">
- </literallayout>
- <para>
- For more information on using the autonumber feature, see AutoNumbers in the
- <filename>dtinfoStyle.dtd(5)</filename> man page.
- </para>
- </listitem>
- <listitem>
- <para>
- Using an element <systemitem>Path</systemitem>
- statement, specify the path to the element for which you are defining
- the style. <systemitem>Path</systemitem> statements
- are read left to right, parent element to child element. You need
- only specify the minimum unique path to any given element. This
- example specifies the path to the LITERALLAYOUT element:
- </para>
- <literallayout>
- <Path>LITERALLAYOUT</Path>
- </literallayout>
- </listitem>
- <listitem>
- <para>
- For each <systemitem>Path</systemitem>
- you must specify either the <systemitem>Online</systemitem>
- feature set or the <systemitem>Print</systemitem>
- feature set, or both. To specify both, you must define the on-line
- features first. For example:
- </para>
- <literallayout>
- <Path>
- LITERALLAYOUT</Path>
- <Online>
- <Font fallback=mono>
- <Family name=courier weight=medium size=12 charset=iso8859-1>
- <Layout flow=verbatim lindent=12 aspace=6 bspace=6>
- <LineBreak both>
- </Online>
- <Print>
- <Font fallback=mono>
- <Family name=courier weight=medium size=12 charset=iso8859-1>
- <Layout flow=verbatim lindent=12 aspace=6 bspace=6>
- <LineBreak both>
- </Print>
- </literallayout>
- <note>
- <para>
- The <systemitem>Print</systemitem>
- and <systemitem>Online</systemitem> feature sets
- match in function, description, and specification except for two
- print-specific exceptions: <link linkend="n4kpipbbc3h9x3cs">Medium</link> and
- <link linkend="r74dmncp70hp2ol">PageBreak</link>.
- </para>
- </note>
- </listitem>
- <listitem>
- <para>
- Repeat steps 4 and 5 for each element <systemitem>Path</systemitem> for which you want to specify
- a particular style.
- </para>
- </listitem>
- </orderedlist>
- <!--(((((((((((((((((((((((((((((((((((((-->
- <sect1><title id="suwh3wbmhwy94ak">Using Style Features</title>
- <para>
- The style features discussed in this chapter are:
- </para>
- <para>
- Font Features
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <link linkend="n6jpipbbc3h9x3cs">Font</link>
- </para>
- </listitem>
- <listitem>
- <para>
- <link linkend="ujpipbbc3h9x3cs">HighLight</link>
- </para>
- </listitem>
- </itemizedlist>
- <para>
- Layout Features
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <link linkend="jjpipbbc3h9x3cs">Layout</link>
- </para>
- </listitem>
- <listitem>
- <para><link linkend="n0jpipbbc3h9x3cs">LineBreak</link></para>
- </listitem>
- <listitem>
- <para><link linkend="xjpipbbc3h9x3cs">Margin</link></para>
- </listitem>
- <listitem>
- <para><link linkend="n4llcmnc770hp2ol">Position</link></para>
- </listitem>
- </itemizedlist>
- <para>Print-specific Features</para>
- <itemizedlist>
- <listitem>
- <para><link linkend="n4kpipbbc3h9x3cs">Medium</link></para>
- </listitem>
- <listitem>
- <para><link linkend="r74dmncp70hp2ol">PageBreak</link></para>
- </listitem>
- </itemizedlist>
- <para>Table Features</para>
- <itemizedlist>
- <listitem>
- <para><link linkend="n0sodmncn70hp2ol">Table</link></para>
- </listitem>
- <listitem>
- <para><link linkend="qjpipbbc3h9x3cs">ColFormat</link></para>
- </listitem>
- <listitem>
- <para><link linkend="w9jdmnch70hp2ol">Row</link></para>
- </listitem>
- <listitem>
- <para><link linkend="yrddmncb70hp2ol">Cell</link></para>
- </listitem>
- <listitem>
- <para>TGroup</para>
- </listitem>
- </itemizedlist>
- <para>Other Features</para>
- <itemizedlist>
- <listitem>
- <para><link linkend="dq2emncz70hp2ol">Border</link></para>
- </listitem>
- <listitem>
- <para><link linkend="djpipbbc3h9x3cs">Ignore</link></para>
- </listitem>
- <listitem>
- <para><link linkend="n9kpipbbc3h9x3cs">Prefix and
- Suffix</link></para>
- </listitem>
- </itemizedlist>
- </sect1>
- <!--(((((((((((((((((((((((((((((((((((((((((((((-->
- <sect1>
- <title id="r6x9mncr60hp2ol">Font Features</title>
- <para>
- The style sheet features described in this section—
- <link linkend="n6jpipbbc3h9x3cs">Font</link>, and
- <link linkend="ujpipbbc3h9x3cs">HighLight</link>— are related
- to the appearance of text in the Information Manager browser.
- </para>
- <!--)))))))))))))))))))))))))-->
- <sect2>
- <title id="n6jpipbbc3h9x3cs">Font</title>
- <para>
- The <systemitem>Font</systemitem> feature
- specifies font families and character sets, and font attributes.
- The syntax of the <systemitem>Font</systemitem>
- feature contains font attribute specifications, followed by any
- number of <systemitem>Family</systemitem> subfeatures,
- in which the font family and character sets are specified.
- </para>
- <para>
- The <systemitem>Font</systemitem>
- feature eliminates character set ambiguities. Here's the syntax:
- </para>
- <programlisting>
- <Font
- Fallback = {sans | serif | mono | symbol | mincho | gothic}
- Position = {subscript | sub | superscript | super | baseline}
- Size = [0-9]+
- Slant = {italic| roman}
- Spacing = {char | prop | mono}
- Style = "string"
- Weight = {bold| medium}
- Width = {normal | narrow}>
- <Family
- Name = "string"
- Charset = "string"
- Foundry = "string" >
- </Font>
- </programlisting>
- <!--)))))))))))))))))))))))))))))))-->
- <sect3>
- <title id="rrn5xmc0gwwa0yk">Font Attributes</title>
- <para>
- The <systemitem>Font</systemitem> attributes
- define the typography of the specified element. The following font
- attributes are used by all font families in the
- Information Manager browser.
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>Fallback</systemitem></term>
- <listitem>
- <para>
- The <systemitem>Fallback</systemitem>
- attribute specifies the font family to use if the desired
- <systemitem>Family</systemitem> is not available on the
- font server. The available options map to the following
- Information Manager X resources, which are
- shown with the default values provided in the global X resources
- file. If the <systemitem>Fallback</systemitem>
- attribute is not specified, the default is <systemitem>sans</systemitem>.
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>sans</systemitem></term>
- <listitem>
- <para>
- Specifies a sans serif font. The <systemitem>Dtinfo*FontSans</systemitem>
- default is <literal>-dt-application-medium-r-normal-sans-*-*-*-*-p-*-iso8859-1</literal>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>serif</systemitem></term>
- <listitem>
- <para>
- Specifies a serif font. The <systemitem>Dtinfo*FontSerif</systemitem>
- default is <literal>-dt-application-medium-r-normal-serif-*-*-*-*-p-*-iso8859-1</literal>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>mono</systemitem></term>
- <listitem>
- <para>
- Specifies a mono-spaced font. The <systemitem>Dtinfo*FontMono</systemitem>
- default is <literal>-dt-application-medium-r-normal-serif-*-*-*-*-m-*-iso8859-1</literal>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>symbol</systemitem></term>
- <listitem>
- <para>Specifies a symbol font. The <systemitem>Dtinfo*FontSymbol</systemitem> default is
- <literal>-dt-application-medium-r-normal-*-*-*-*-*-p-*-dtsymbol-1</literal>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>mincho</systemitem></term>
- <listitem>
- <para>The default is <systemitem>Dtinfo*FontMincho</systemitem>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>gothic</systemitem></term>
- <listitem>
- <para>The default is <systemitem>Dtinfo*FontGothic</systemitem>.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Position</systemitem></term>
- <listitem>
- <para>
- Specifies where text should be placed relative to
- the baseline. The options are: <systemitem>superscript</systemitem>
- (above the baseline) and <systemitem>subscript</systemitem>
- (below the baseline). You can use the terms <systemitem>super</systemitem>
- and <systemitem>sub</systemitem> as shorthand for
- <systemitem>superscript</systemitem> and <systemitem>subscript</systemitem>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Size</systemitem></term>
- <listitem>
- <para>Specifies the font size in points. The default is
- 14 points.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Slant</systemitem></term>
- <listitem>
- <para>The values for the <systemitem>Slant</systemitem>
- attribute are <systemitem>roman</systemitem> or
- <systemitem>italic</systemitem>. The default is
- <systemitem>roman</systemitem>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Spacing</systemitem></term>
- <listitem>
- <para>Specifies character spacing, either <systemitem>prop</systemitem>
- (proportional), <systemitem>char</systemitem> (character cell), or
- <systemitem>mono</systemitem> (monospaced).
- The default is <systemitem>char</systemitem>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Style</systemitem></term>
- <listitem>
- <!--per Rivers, still need more info-->
- <para>
- Specifies additional style information.
- The default is no additional style information.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Weight</systemitem></term>
- <listitem>
- <para>
- Specifies the weight of the font, either <systemitem>medium</systemitem>
- (regular) or <systemitem>bold</systemitem> (thick). The default is
- <systemitem>medium</systemitem>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Width</systemitem></term>
- <listitem>
- <para>Specifies the width of the font, either <systemitem>normal</systemitem>
- or <systemitem>narrow</systemitem>. The default is <systemitem>normal</systemitem>.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </sect3>
- <!--(((((((((((((((((((((((((((((((((((((-->
- <sect3>
- <title id="zotxgncmddznuzs">Font Family Subfeature</title>
- <para>
- The <systemitem>Family</systemitem> subfeature
- specifies one or more font families and character sets. The following
- list defines the attributes for the <systemitem>Family</systemitem>
- subfeature:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>Family</systemitem></term>
- <listitem>
- <para>The <systemitem>Family</systemitem>
- attribute specifies the font family and character sets used for
- display in the
- Information Manager browser. The possible <systemitem>Family</systemitem>
- values are strings specifying:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>Foundry</systemitem></term>
- <listitem>
- <para>
- The name of the font company. <systemitem>Foundry</systemitem>
- is an optional parameter.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Name</systemitem></term>
- <listitem>
- <para>
- The name of the font. <systemitem>Name</systemitem>
- is a required parameter.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Charset</systemitem></term>
- <listitem>
- <para>The name of the encoding standard to which the font
- conforms. <systemitem>Charset</systemitem> is
- a required parameter.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </listitem>
- </varlistentry>
- </variablelist>
- <note>
- <para>
- The specified font names and character sets must be available on the
- font server of the system that will be displaying the Information
- Manager documents. If no <systemitem>Family</systemitem> specifications
- are used, the element uses the font specified with the
- <systemitem>Fallback</systemitem> attribute of the
- <systemitem>Font</systemitem> feature.
- </para>
- </note>
- <para>
- The following example illustrates an online path statement
- that uses <systemitem>Font</systemitem> and <systemitem>Family</systemitem>
- attributes:
- </para>
- <literallayout>
- <Path>
- PARA</Path>
- <Online>
- <Font Fallback=sans Weight=medium Slant=roman Size=12 Spacing=prop Slant=italic Width=normal>
- <Family Name=helvetica Charset=iso8859-1>
- </Online>
- </literallayout>
- <!--(((((((((((((((((((((((((((((((-->
- <sect4>
- <title id="pt3bmncx60hp2ol">Font Inheritance</title>
- <para>
- The <systemitem>Font</systemitem> feature
- is <link linkend="pgqaykbbgsg24ak">inherited</link>. Inheritance
- determines the set of fonts and font characteristics that will be
- applied to inheriting elements. To mask out a font face, both the
- font <systemitem>Family</systemitem> feature and
- the <systemitem>Charset</systemitem> attribute
- must be set. Masking occurs because of the <systemitem>Charset</systemitem>
- attribute.
- </para>
- <para>
- To change an element's inherited font characteristics, you
- need only change the appropriate <systemitem>Font</systemitem>
- feature, not the complete <systemitem>Font/Family</systemitem>
- specification. For example:
- </para>
- <literallayout>
- <Font Weight=bold>
- </literallayout>
- <para>
- would be sufficient to change an inherited characteristic
- for a given element.
- </para>
- </sect4>
- </sect3>
- </sect2>
- <!--(((((((((((((((((((((((((((((((((((((((((((((((-->
- <sect2>
- <title id="ujpipbbc3h9x3cs">HighLight</title>
- <!--per Rivers, more info needed on this-->
- <para>
- The <systemitem>HighLight</systemitem> feature
- specifies font-independent display highlights.
- The <systemitem>HighLight</systemitem> feature is
- <link linkend="pgqaykbbgsg24ak">inherited</link>. Its syntax
- is:
- </para>
- <programlisting>
- <Highlight
- BGColor = "<replaceable>colors</replaceable>"
- FGColor = "<replaceable>colors</replaceable>"
- Overline = {true | false}
- StrikeThrough = {true | false}
- Underline = {true | false}>
- </programlisting>
- <para>
- Reverse video, and background
- and foreground colors are supported in the <systemitem>Online</systemitem>
- feature sets only. Boxed, overline, strike through, and underline
- can be used in both the <systemitem>Print</systemitem>
- and <systemitem>Online</systemitem> feature sets.
- The default background and foreground colors are defined in the
- X resources file.
- </para>
- <para>The <systemitem>HighLight</systemitem>
- feature has the following attributes.
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>BGColor</systemitem></term>
- <listitem>
- <para>
- Specifies screen background color. You can choose
- from any X Window System color name.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term>
- <systemitem>FGColor</systemitem></term>
- <listitem>
- <para>
- Specifies screen background color. You can choose
- from any X Window System color name.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Overline</systemitem></term>
- <listitem>
- <para>
- Draws a line above the element. Attribute values
- are <systemitem>true</systemitem> and <systemitem>false</systemitem>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>StrikeThrough</systemitem></term>
- <listitem>
- <para>Draws a line through the element. Attribute values
- are <systemitem>true</systemitem> and <systemitem>false</systemitem>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Underline</systemitem></term>
- <listitem>
- <para>
- Draws a line below the element. Valid values
- are <systemitem>true</systemitem> and <systemitem>false</systemitem>.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- <para>
- This example shows a <systemitem>Path</systemitem>
- statement for underlining a TERM
- element.
- </para>
- <literallayout>
- <Path>
- VARLISTENTRY TERM</Path>
- <Online>
- <Highlight underline=true>
- </Online>
- <Print>
- <Highlight underline=true>
- </Print>
- </literallayout>
- </sect2>
- </sect1>
- <!--)))))))))))))))))))))))))))))))))))))))))-->
- <sect1>
- <title id="p2wbmnc170hp2ol">Layout Features</title>
- <para>
- The style sheet features described in this section—
- <link linkend="jjpipbbc3h9x3cs">Layout</link>,
- <link linkend="n0jpipbbc3h9x3cs">LineBreak</link>,
- <link linkend="xjpipbbc3h9x3cs">Margin</link>, and
- <link linkend="n4llcmnc770hp2ol">Position</link>— are related
- to the layout of screens and pages in the
- Information Manager browser.
- </para>
- <!--)))))))))))))))))))))))))))))))))))-->
- <sect2>
- <title id="jjpipbbc3h9x3cs">Layout</title>
- <para>
- The <systemitem>Layout</systemitem> feature
- specifies element spacing, indentation, and text flow formatting.
- The syntax for <systemitem>Layout</systemitem>
- is:
- </para>
- <programlisting>
- <Layout
- ASpace = [0-9]+
- BSpace = [0-9]+
- Leading = [0-9]+
- FIndent = [0-9]+
- LIndent = [0-9]+
- RIndent = [0-9]+
- Flow = {verbatim | filled}
- Justify = {left | right | center}
- Wrap = {block | join | none}>
- </programlisting>
- <para>
- Possible formatting attributes are:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>ASpace</systemitem>, <systemitem>BSpace</systemitem></term>
- <listitem>
- <para>
- These attributes specify the space in points above
- and below the current element. The default value is 10 points.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Leading</systemitem></term>
- <listitem>
- <para>The <systemitem>Leading</systemitem>
- attribute specifies the inter-line space, in points, between the
- baseline of one line of text and the top of the highest ascending
- character of the following line. The default value is 2 points.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>FIndent</systemitem>, <systemitem>LIndent</systemitem>, <systemitem>RIndent</systemitem></term>
- <listitem>
- <para>
- These attributes specify the first, left, and right
- indents, respectively, of a text element. Each value, expressed
- in points, is relative to any surrounding elements or to the value
- set with the <systemitem>Margin</systemitem> feature.
- The default value is 0 (zero).
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Flow</systemitem></term>
- <listitem>
- <para>
- The <systemitem>Flow</systemitem>
- attribute specifies how the whitespace and linefeed characters in
- the current element are to be handled.</para>
- <variablelist>
- <varlistentry>
- <term><systemitem>verbatim</systemitem></term>
- <listitem>
- <para>
- If the value <systemitem>verbatim</systemitem>
- is chosen, whitespace and linefeed characters are considered significant.
- That is, the text line is not automatically wrapped but is allowed
- to extend beyond the text margin and the window border until a linefeed
- character is encountered. The value <systemitem>verbatim</systemitem>
- also causes the horizontal scroll bar to be displayed as necessary
- to accommodate the text line.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>filled</systemitem></term>
- <listitem>
- <para>If the value <systemitem>filled</systemitem>
- is chosen, whitespace and linefeed characters are not considered
- significant and the text line is wrapped if it extends beyond the
- window border. The default value is <systemitem>filled</systemitem>.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Justify</systemitem></term>
- <listitem>
- <para>The <systemitem>Justify</systemitem>
- attribute specifies how text lines within the current element are
- to be aligned.</para>
- <variablelist>
- <varlistentry>
- <term><systemitem>left</systemitem></term>
- <listitem>
- <para>The value <systemitem>left</systemitem>
- causes text lines to be aligned along the left margin, while the
- right margin runs ragged.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>right</systemitem></term>
- <listitem>
- <para>
- The value <systemitem>right</systemitem>
- causes text lines to be aligned along the right margin, while the
- left margin runs ragged.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>center</systemitem></term>
- <listitem>
- <para>The value <systemitem>center</systemitem>
- causes text lines to be aligned to the center, with ragged left
- and right margins.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Wrap</systemitem></term>
- <listitem><para>The <systemitem>Wrap</systemitem>
- attribute works with the <link linkend="n4llcmnc770hp2ol">Position</link>
- feature and specifies how text within the current element should
- flow.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- <note>
- <para>
- When the <systemitem>Wrap</systemitem>
- attribute and the <systemitem>Position</systemitem>
- feature are used, the <link linkend="n0jpipbbc3h9x3cs">LineBreak</link>
- feature is ignored.
- </para>
- </note>
- <para>
- <systemitem>Layout</systemitem> is an <link linkend="pgqaykbbgsg24ak">inherited</link> feature.
- </para>
- <para>
- This example uses the <systemitem>Layout</systemitem>
- feature:
- </para>
- <literallayout>
- <Path>
- LITERALLAYOUT</Path>
- <Online>
- <layout Flow=verbatim LIndent=12 ASpace=6 BSpace=6 Leading=4>
- </Online>
- </literallayout>
- </sect2>
- <!--)))))))))))))))))))))))))))))))))))))))))))))-->
- <sect2>
- <title id="n0jpipbbc3h9x3cs">LineBreak</title>
- <para>
- The <systemitem>LineBreak</systemitem> feature
- inserts a line break before and/or after the current element. The
- syntax is:
- </para>
- <programlisting>
- <LineBreak {before | after | both}>
- </programlisting>
- <para>
- The three possible values for <systemitem>LineBreak</systemitem>
- are:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>before</systemitem></term>
- <listitem>
- <para>
- Inserts a line break before the current element.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>after</systemitem></term>
- <listitem>
- <para>
- Inserts a line break after the current element.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>both</systemitem></term>
- <listitem>
- <para>
- Inserts a line break both before and after the current
- element.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- <para>
- <systemitem>LineBreak</systemitem> is not
- inherited.
- </para>
- <para>
- This example uses <systemitem>LineBreak</systemitem>
- with a value of <systemitem>both</systemitem>:
- </para>
- <literallayout>
- <Path>
- PREFACE TITLE</Path>
- <Online>
- <LineBreak both>
- <Fontsize=20 weight=medium>
- </Online>
- <Print>
- <LineBreak& both>
- <Font size=24 weight=bold>
- </Print>
- </literallayout>
- </sect2>
- <!--)))))))))))))))))))))))))))))))-->
- <sect2>
- <title id="xjpipbbc3h9x3cs">Margin</title>
- <para>
- The <systemitem>Margin</systemitem> feature
- specifies the boundaries of the document rendering area, in points.
- </para>
- <programlisting>
- <Margin
- Bottom = [0-9]+
- Top = [0-9]+
- Left = [0-9]+
- Right = [0-9]+>
- </programlisting>
- <para>
- The values for the <systemitem>Margin</systemitem>
- attribute are:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>Bottom</systemitem></term>
- <listitem>
- <para>
- Specifies the vertical space following the last
- line on the screen or page.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Top</systemitem></term>
- <listitem>
- <para>
- Specifies the vertical space preceding the first
- line on the screen or page.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Left</systemitem></term>
- <listitem>
- <para>
- Specifies the distance between the left edge of
- the element and the left edge of the screen or page.
- </para>
- <note>
- <para>
- For on-line margins, the system uses 18 points of space
- in the left margin for items such as Bookmark icons. Thus, any value
- assigned to <systemitem>Left</systemitem> (for
- on-line rendering) would be in addition to the 18-point system-defined
- setting.
- </para>
- </note>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Right</systemitem></term>
- <listitem>
- <para>
- Specifies the distance between the right edge of
- the element and the right edge of the screen or page.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- <para>
- The <systemitem>Margin</systemitem> feature
- is <link linkend="pgqaykbbgsg24ak">inherited</link> and should
- only be used on the root element of an element hierarchy. Here's
- an example of a <systemitem>Path</systemitem>
- statement containing <systemitem>Font</systemitem>,
- <systemitem>Family</systemitem>, and <systemitem>Margin</systemitem>
- attributes:
- </para>
- <literallayout>
- <Path>
- CHAPTER</Path>
- <Online>
- <Font Fallback=sans Weight=medium Slant=roman Size=18>
- <Family Name=helvetica Charset=iso8859-1>
- <Margin Left=6 Right=12 Top=18 Bottom=18>
- </Online>
- <Print>
- <Font Fallback=sans Weight=medium Slant=roman Size=24>
- <Family Name=helvetica Charset=iso8859-1>
- <Margin Left=18 Right=18 Top=18 Bottom=18>
- </Print>
- </literallayout>
- </sect2>
- <!--))))))))))))))))))))))))))))))))))))))-->
- <sect2>
- <title id="n4llcmnc770hp2ol">Position</title>
- <!--per Rivers, needs more info-->
- <para>
- The <systemitem>Position</systemitem> feature
- is used with the <systemitem>Wrap</systemitem>
- attribute of the <link linkend="jjpipbbc3h9x3cs">Layout</link>
- feature to specify where the current element should start relative
- to the defined margins, and how text should flow in the current
- and succeeding elements.
- </para>
- <programlisting>
- <Position
- Horiz = {lcorner | left | lmargin | center | rcorner | Right | rmargin}
- Vert = {bottom | middle | top}>
- </programlisting>
- <para>
- The <systemitem>Position</systemitem>
- feature is not inherited.
- </para>
- </sect2>
- </sect1>
- <!--)))))))))))))))))))))))))))))))))))))))))))))))))-->
- <sect1>
- <title id="cwccmncd70hp2ol">Print-specific Features</title>
- <para>
- The style sheet features described in this section—
- <link linkend="n4kpipbbc3h9x3cs"><systemitem>Medium</systemitem></link>, and
- <link linkend="r74dmncp70hp2ol"><systemitem>PageBreak</systemitem></link>— are specific
- to Information Manager print functionality.
- </para>
- <!--))))))))))))))))))))))))))))))))))))))))-->
- <sect2>
- <title id="n4kpipbbc3h9x3cs">Medium</title>
- <!-- per Rivers, values need to be checked)-->
- <para>
- The <systemitem>Medium</systemitem> feature
- specifies the orientation and size of the print medium. The
- <systemitem>Medium</systemitem> feature is <link linkend="pgqaykbbgsg24ak">
- inherited</link> and should be
- specified at the root-level of an element hierarchy.
- </para>
- <programlisting>
- <Medium
- Orientation = {landscape | portrait}
- </programlisting>
- <para>
- The <systemitem>Medium</systemitem> feature
- has an <systemitem>Orientation</systemitem> attribute,
- which specifies the orientation of the text on the printed
- page. Values for the <systemitem>Orientation</systemitem>
- attribute are <systemitem>landscape</systemitem>
- and <systemitem>portrait</systemitem>.
- </para>
- <para>
- Here is an example <systemitem><Path></systemitem>
- statement using the <systemitem>Medium</systemitem>
- feature:
- </para>
- <literallayout>
- <path>CHAPTER
- </path>
- <print>
- <Medium Orientation="portrait">
- </print>
- </literallayout>
- </sect2>
- <!--((((((((((((((((((((((((((((((((((((((((((((((-->
- <sect2>
- <title id="r74dmncp70hp2ol">PageBreak</title>
- <para>
- The PageBreak feature inserts a page break before and/or after
- the current element. The syntax is:
- </para>
- <programlisting>
- <PageBreak {before | after | both}>
- </programlisting>
- <para>
- The three possible values for <systemitem>PageBreak</systemitem>
- are:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>before</systemitem></term>
- <listitem>
- <para>
- Inserts a page break before the current element.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>after</systemitem></term>
- <listitem>
- <para>
- Inserts a page break after the current element.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>both</systemitem></term>
- <listitem>
- <para>
- Inserts a page break both before and after the current
- element.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- <para>
- The <systemitem>PageBreak</systemitem> feature
- is not inherited.
- </para>
- <para>
- This example uses <systemitem>PageBreak</systemitem>
- with a value of <systemitem>before</systemitem>:
- </para>
- <literallayout>
- <Path>SECT1 TITLE
- </Path>
- <Print>
- <PageBreak before>
- <Font size=30 weight=bold>
- </Print>
- </literallayout>
- </sect2>
- </sect1>
- <!--))))))))))))))))))))))))))))))))))))))#####-->
- <sect1>
- <title id="y.9dmncv70hp2ol">Table Features</title>
- <para>
- The style sheet features described in this section—
- <link linkend="n0sodmncn70hp2ol">Table</link>,
- <link linkend="qjpipbbc3h9x3cs">ColFormat</link>,
- <link linkend="w9jdmnch70hp2ol">Row</link>,
- <link linkend="yrddmncb70hp2ol">Cell</link>
- ColSep, Frame, and Rowsep
- — are related to
- the formatting of
- Information Manager tables. A set of <systemitem>Path</systemitem>
- statements illustrating the use of the set of
- <systemitem>Table</systemitem> features is provided at
- the end of the section. (See <link linkend="gwugepcem0hp2ol">Table
- Example</link>.)
- </para>
- <!--))))))))))))))))))))))))))))))))))))))))))))))))-->
- <sect2>
- <title id="n0sodmncn70hp2ol">Table</title>
- <para>
- The <systemitem>Table</systemitem> feature
- is used to format a two-dimensional grid. The style sheet parsing
- cannot check for the use of <systemitem>Cell</systemitem>,
- <systemitem>ColFormat</systemitem>, or <systemitem>Row</systemitem>
- features on child elements
- of any element where <systemitem>Table</systemitem>
- is used. Users must verify these features manually.
- <systemitem>Table</systemitem> syntax is:
- </para>
- <programlisting>
- <Table
- ColSep = "integer"
- Frame ={ Top | Bottom | TopBot | Sides | All | None }
- RowSep = "integer"
- >
- </programlisting>
- <para>
- The <systemitem>Table</systemitem> feature
- has the following attributes:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>ColSep</systemitem></term>
- <listitem>
- <para>The <systemitem>ColSep</systemitem> attribute specifies whether or not a vertical
- rule (line) is to be displayed at the right edge of the cells in the table. A value
- of 0 indicates false, any integer other than 0 indicates true.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Frame</systemitem></term>
- <listitem>
- <para>The <systemitem>Frame</systemitem> attribute controls the placement
- of rulings (lines) around the outer edges of the
- TGroups that form the body of a Table. There are three primitive values
- (<literal>Top</literal>, <literal>Bottom</literal>,
- <literal>None</literal>), and three compound values (<literal>TopBot</literal>,
- <literal>Sides</literal>, <literal>All</literal>). The default is <literal>None</literal>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Rowsep</systemitem></term>
- <listitem>
- <para>The <systemitem>Rowsep</systemitem> attribute specifies whether or not a horizontal
- rule (line) is to be displayed at the bottom edge of
- cells in the table. A value of 0 indicates false, any integer other than 0 indicates true.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- <literallayout>
- <Path>
- TABLE</Path>
- <Online>
- <Table Cols=3>
- </Online>
- <Print>
- <Table Cols=3>
- </Print>
- </literallayout>
- <para>
- The <systemitem>Table</systemitem> feature is not inherited.
- </para>
- </sect2>
- <!--))))))))))))))))))))))))))))))))))))-->
- <sect2>
- <title id="tgrxxx">TGroup</title>
- <para>The <systemitem>TGroup</systemitem> feature specifies the formatting
- for a portion of a table. Note that the style sheet parser cannot check for the
- use of <systemitem>Cell</systemitem>, <systemitem>ColFormat</systemitem>, or <systemitem>Row</systemitem>
- features on child elements of the element where
- <systemitem>TGroup</systemitem> is used, so users must check manually.
- </para>
- <para>
- The TGroup feature has the following attributes:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>CharAlign</systemitem></term>
- <listitem>
- <para>The <systemitem>CharAlign</systemitem> attribute specifies the character to use as the
- alignment point within cells if the
- TGroup's <systemitem>Justify</systemitem> attribute is set to <literal>Char</literal>.
- The default is the period character.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>ColSep</systemitem></term>
- <listitem>
- <para>The <systemitem>ColSep</systemitem> attribute specifies whether or not a
- vertical rule (line) is to be displayed at the right edge of cells
- in the table. A value of 0 indicates false, any integer other than 0 indicates true.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Justify</systemitem></term>
- <listitem>
- <para>The <systemitem>Justify</systemitem> attribute specifies horizontal alignment of
- text in the cells of the table. For <literal>Left</literal>, textlines are
- aligned along the left margin and ragged on the right. For <literal>Right</literal>,
- textlines are aligned along the right margin and ragged on the left. For <literal>Center</literal>,
- textlines are ragged on both margins and aligned along the center of the element. The <literal>Char</literal> option aligns
- text— usually numbers— with two characters in each line to the right of the character
- specified by the CharAlign attribute, and the rest of the line to the left. The default value for the <systemitem>Justify</systemitem>
- attribute is Left. Note that CALS tables specify a value of "justify"
- (meaning both left- and right-aligned text)— this is not supported.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>RowSep</systemitem></term>
- <listitem>
- <para>The <systemitem>RowSep</systemitem> attribute specifies whether or not a
- horizontal rule (line) is to be displayed at the bottom edge of
- cells in the table. A value of 0 indicates false, any integer other than 0 indicates true.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>VJustify</systemitem></term>
- <listitem>
- <para>The <systemitem>VJustify</systemitem> attribute specifies vertical positioning
- of the content of cells in the table. The differences
- among the three settings are only noticeable for cells whose content
- does not fill the cell from top
- to bottom. For <literal>Top</literal>, the content is started at the top of a cell and
- may complete before the bottom
- of the cell. For <literal>Bottom</literal>, the content ends at the bottom of a cell;
- there may be unused space above the content. For <literal>Middle</literal>, the content is vertically centered in a cell.
- The default value for the <systemitem>VJstify</systemitem> attribute is <literal>Top</literal>.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- <programlisting>
- <TGroup
- CharAlign = "char"
- ColSep = "integer"
- Justify = { Left | Right | Center | Char }
- RowSep = "integer"
- VJustify = { Top | Middle | Bottom }
- >
- </programlisting>
- <para>
- The <systemitem>TGroup</systemitem> feature is not inherited.
- </para>
- </sect2>
- <!--))))))))))))))))))))))))))))))))))))-->
- <sect2>
- <title id="qjpipbbc3h9x3cs">ColFormat</title>
- <para>
- The <systemitem>ColFormat</systemitem> feature
- specifies the formatting for individual columns in a table. You
- use one <systemitem>ColFormat</systemitem> feature
- for each column in the table, in left-to-right order. If a table
- instance has 10 columns and the containing <systemitem>Table</systemitem>
- element (which uses the <systemitem>Table</systemitem>
- feature) has <systemitem>ColFormat</systemitem>
- features for only 8 of the columns, the last two columns get the
- default values of the last specified <systemitem>ColFormat</systemitem>
- feature.
- </para>
- <programlisting>
- <ColFormat
- Charalign = "<replaceable>char</replaceable>"
- ColSep = "integer"
- Justify = {left | right | center | char}
- Name = "<replaceable>string</replaceable>"
- RowSep = "integer"
- Width = [0-9]+
- >
- </programlisting>
- <para>
- The <systemitem>ColFormat</systemitem> feature
- has the following attributes:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>Charalign</systemitem></term>
- <listitem>
- <para>
- Specifies the character to use in columns where
- the <systemitem>Justify</systemitem> attribute
- is set to <systemitem>Char</systemitem>. The default
- is the period (.) character.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>ColSep</systemitem></term>
- <listitem>
- <para>
- The <systemitem>ColSep</systemitem> attribute specifies whether or not a vertical rule (line)
- is to be displayed at the right edge of cells in columns that use this format.
- A value of 0 indicates false, any integer other than 0 indicates true.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Justify</systemitem></term>
- <listitem>
- <para>
- Specifies how to handle text lines in the column.
- Possible values are:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>left</systemitem></term>
- <listitem>
- <para>
- Aligns the text to the left margin. The right margin
- runs ragged.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>right</systemitem></term>
- <listitem>
- <para>
- Aligns the text to the right margin. The left margin
- runs ragged.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>center</systemitem></term>
- <listitem>
- <para>
- Aligns the text to the center of the element. The
- left and right margins run ragged.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>char</systemitem></term>
- <listitem>
- <para>
- Aligns text, usually numbers, with two characters
- in each line to the right of the character specified by the
- <systemitem>CharAlign</systemitem> attribute. The rest
- of the characters align left.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- <note>
- <para>
- The default value for the <systemitem>Justify</systemitem>
- attribute is <systemitem>left</systemitem> in
- Information Manager, unlike
- CALS tables, in which the <systemitem>justify</systemitem>
- attribute value specifies left and right alignment.
- </para>
- </note>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Name</systemitem></term>
- <listitem>
- <para>The <systemitem>Name</systemitem>
- attribute is a string that is used by the <systemitem>Cell</systemitem>
- feature to reference the particular column formatting
- (<systemitem>ColFormat</systemitem>) attributes to use.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>RowSep</systemitem></term>
- <listitem>
- <para>
- The <systemitem>RowSep</systemitem> attribute specifies whether or not a horizontal rule (line)
- is to be displayed at the bottom edge of cells in columns that use this format.
- A value of 0 indicates false, any integer other than 0 indicates true.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Width</systemitem></term>
- <listitem>
- <para>
- The <systemitem>Width</systemitem>
- attribute specifies the width of the column relative to other columns.
- </para>
- <para>
- For example, if three column formats are referenced from a
- row, their width values divided by their total widths will determine
- the amount of space used. Thus, if column A has a width value of
- 90, and columns B and C each have width values of 180, column A
- will be formatted to use 20% (90/450).
- </para>
- <para>
- If the <systemitem>Width</systemitem> attribute
- is not specified, the rows of the column instance are examined,
- and the widest segment found there is used as the default width
- of that column.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- <para>
- The <systemitem>ColFormat</systemitem> feature
- is not inherited.
- </para>
- <para>
- Here is an example of a path statement using the <systemitem>ColFormat</systemitem> feature:
- </para>
- <literallayout>
- <Path>
- TABLE</Path>
- <Online>
- <ColFormat Cols=3 Justify=left Name="column1" Width=90>
- </Online>
- <Print>
- <ColFormat Cols=3 Justify=left Name="column1" Width=90>
- </Print>
- </literallayout>
- </sect2>
- <!--)))))))))))))))))))))))))))))))))))))))))))))))))))-->
- <sect2>
- <title id="w9jdmnch70hp2ol">Row</title>
- <para>
- The <systemitem>Row</systemitem> feature
- identifies the beginning of a row, typically in a table. It can
- be used with <systemitem>Cell</systemitem> and
- <systemitem>Table</systemitem>.
- </para>
- <programlisting>
- <Row>
- </programlisting>
- <programlisting>
- <Row
- RowSep = "integer"
- VJustify = { Top | Middle | Bottom }
- >
- </programlisting>
- <para>
- The <systemitem>Row</systemitem> feature
- has the following attributes:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>Rowsep</systemitem></term>
- <listitem>
- <para>
- RowSep specifies whether or not a horizontal rule (line) is to be displayed at the bottom edge of
- cells in the row. A value of 0 indicates false, any integer other than 0 indicates true.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>VJustify</systemitem></term>
- <listitem>
- <para>
- The <systemitem>VJustify</systemitem> attribute specifies vertical positioning of the content of cells in the row. The differences among
- the three settings are only noticeable for cells whose content does not fill the cell from top to
- bottom. For <literal>Top</literal>, the content is started at the top of a cell and may complete before the bottom of
- the cell. For <literal>Bottom</literal>, the content ends at the bottom of a cell; there may be unused space above
- the content. For <literal>Middle</literal>, the content is vertically centered in a cell. The default value for the
- <systemitem>VJustify</systemitem> attribute is <literal>Top</literal>.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- <para>
- The <systemitem>Row</systemitem> feature is not inherited.
- </para>
- <literallayout>
- <Path>ROW
- </Path>
- <Online>
- <Row>
- </Online>
- <Print>
- <Row>
- </Print>
- </literallayout>
- </sect2>
- <!--))))))))))))))))))))))))))))))))))))))))-->
- <sect2>
- <title id="yrddmncb70hp2ol">Cell</title>
- <para>
- The <systemitem>Cell</systemitem> feature specifies the formatting to
- use for a cell. It also identifies the beginning of the cell and defines
- its horizontal and vertical spans.
- </para>
- <programlisting>
- <Cell
- CharAlign = "char"
- ColRef = "string"
- ColSep = "integer"
- ColStart = "string"
- ColEnd = "string"
- Justify = { Left | Right | Center | Char }
- SpanRows = [0-9]+
- VJustify = { Top | Middle | Bottom }
- </programlisting>
- <para>
- The <systemitem>Cell</systemitem> feature
- has the following attributes:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>CharAlign</systemitem></term>
- <listitem><para>The <systemitem></systemitem>
- attribute specifies the character to use as the alignment point in cells where the Justify
- attribute is set to Char. The default is the period (.) character.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>ColRef</systemitem></term>
- <listitem>
- <para>The <systemitem>ColRef</systemitem>
- attribute is a string that references the name of the column format
- (<link linkend="qjpipbbc3h9x3cs">ColFormat</link>) to use for
- formatting the cell.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>ColSep</systemitem></term>
- <listitem><para>The <systemitem>ColSep</systemitem>
- attribute specifies whether or not a vertical rule (line) is to be displayed at the right edge of the
- cell. A value of 0 indicates false, any integer other than 0 indicates true.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>ColStart</systemitem></term>
- <listitem><para>The <systemitem>ColStart</systemitem> attribute refers to the column
- (defined by the named <systemitem>ColFormat</systemitem>)
- to use as the starting
- (leftmost) column for a horizontally-spanned cell. If <systemitem>ColEnd</systemitem> isn't also specified,
- <systemitem>ColStart</systemitem> serves the same purpose as <systemitem>ColRef</systemitem>.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>ColEnd</systemitem></term>
- <listitem><para>The <systemitem>ColEnd</systemitem> attribute
- refers to the column (defined by the named <systemitem>ColFormat</systemitem>) to use as the rightmost
- column for a horizontally-spanned cell. Ignored if <systemitem>ColStart</systemitem> isn't also specified.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Justify</systemitem></term>
- <listitem><para>The <systemitem>Justify</systemitem> attribute specifies
- horizontal alignment of text in the cell. For <literal>Left</literal>, textlines are aligned along
- the left margin and ragged on the right. For <literal>Right</literal>, textlines are aligned along the right margin
- and ragged on the left. For <literal>Center</literal>, textlines are ragged on both margins and aligned along the
- center of the element. The <literal>Char</literal> option aligns text— usually numbers— with two characters in
- each line to the right of the character specified by the <systemitem>CharAlign</systemitem> attribute, and the rest of the
- line to the left. The default value for the <systemitem>Justify</systemitem> attribute is <literal>Left</literal>. Note that CALS tables
- specify a value of "justify" (meaning both left- and right-aligned text)— this is not supported.</para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>SpanRows</systemitem></term>
- <listitem>
- <para>The <systemitem>SpanRows</systemitem>
- attribute specifies the vertical span of the cell. The value of
- <systemitem>SpanRows</systemitem> must be a positive
- number. The default is 1.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>RowSep</systemitem></term>
- <listitem><para>The <systemitem>RowSep</systemitem> attribute specifies
- whether or not a horizontal rule (line) is to be displayed at the bottom edge of
- the cell. A value of 0 indicates false, any integer other than 0 indicates true.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>VJustify</systemitem></term>
- <listitem><para>The <systemitem>VJustify</systemitem> attribute specifies
- vertical positioning of cell content. The differences among the three settings
- are only noticeable for cells whose content does not fill the cell from top to bottom. For <literal>Top</literal>, the
- content is started at the top of the cell and may complete before the bottom of the cell. For
- <literal>Bottom</literal>, the content ends at the bottom of the cell; there may be unused space above the content.
- For <literal>Middle</literal>, the content is vertically centered in the cell. The default value for the <systemitem>VJustify</systemitem>
- attribute is <literal>Top</literal>.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- <para>
- The <systemitem>Cell</systemitem> feature
- can be used with the <link linkend="w9jdmnch70hp2ol">Row</link>
- and <link linkend="n0sodmncn70hp2ol">Table</link> features.
- If a single element implies the beginning of a table, row, and cell,
- all three features can be used.
- </para>
- <para>
- The <systemitem>Cell</systemitem> feature
- is not inherited.
- </para>
- <literallayout>
- <Path>TABLE
- </Path>
- <Online>
- <Cell ColRef="column1" SpanCols=1 SpanRows=1>
- </Online>
- <Print>
- <Cell ColRef="column1" SpanCols=1 SpanRows=1>
- </Print>
- </literallayout>
- <para>
- The following set of <systemitem>Path</systemitem>
- statements illustrates how a table might be specified in a style
- sheet. The example uses attribute references to assign values to
- the table-related features. These values would be specified in other
- elements in the document.
- </para>
- <example>
- <title id="gwugepcem0hp2ol">Table Example</title>
- <literallayout>
- <Path>TABLE
- </Path>
- <Online>
- <Border display="@frame">
- </Online>
- <Path>TGROUP
- </Path>
- <Online>
- <Table Cols="@cols">
- </Online>
- <Path>COLSPEC
- </Path>
- <Online>
- <ColFormat Justify="@align" Name="@colname" Width="@colwidth">
- </Online>
- <Path>TBODY
- </Path>
- <Online>
- <Border
- display=all>
- </Online>
- <Path>ROW
- </Path>
- <Online>
- <Row>
- </Online>
- <Path>ENTRY
- </Path>
- <Online>
- <Cell ColRef="@colname" SpanCols="@nameend - @namest + 1" SpanRows="@morerows + 1>
- <border display=all>
- </Online>
- </literallayout>
- </example>
- </sect2>
- </sect1>
- <!--))))))))))))))))))))))))))))))))))))))-->
- <sect1>
- <title id="n38xdmnct70hp2ol">Other Features</title>
- <para>
- The style sheet features described in this section are
- <link linkend="dq2emncz70hp2ol">Border</link>,
- <link linkend="djpipbbc3h9x3cs">Ignore</link>, and
- <link linkend="n9kpipbbc3h9x3cs">Prefix and Suffix</link>.
- </para>
- <!--)))))))))))))))))))))))))))))))-->
- <sect2>
- <title id="dq2emncz70hp2ol">Border</title>
- <para>
- The <systemitem>Border</systemitem> feature is used to
- draw rule lines at the outside
- edges of an element. Its syntax is:
- </para>
- <programlisting>
- <Border
- Display = {bottom | left | right | top | all | horiz | vert }
- Thickness = [0-9]+>
- </programlisting>
- <para>
- The <systemitem>Border</systemitem> feature
- has the following attributes:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>Display</systemitem></term>
- <listitem>
- <para>
- The <systemitem>Display</systemitem>
- attribute accepts the following values:
- </para>
- <variablelist>
- <varlistentry>
- <term><systemitem>bottom</systemitem></term>
- <listitem>
- <para>
- Specifies a rule line below the element.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>left</systemitem></term>
- <listitem>
- <para>
- Specifies a rule line to the left of the element.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>right</systemitem></term>
- <listitem>
- <para>
- Specifies a rule line to the right of the element.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>top</systemitem></term>
- <listitem>
- <para>
- Specifies a rule line above the element.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>all</systemitem></term>
- <listitem>
- <para>
- This compound value specifies rule lines above,
- below, and to the right and left of the element.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>horiz</systemitem></term>
- <listitem>
- <para>
- This compound value specifies rule lines above and
- below the element.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>vert</systemitem></term>
- <listitem>
- <para>
- This compound value specifies rule lines to the
- left and right of the element.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><systemitem>Thickness</systemitem></term>
- <listitem>
- <para>
- Specifies the line weight of the border in points. The value
- of <systemitem>Thickness</systemitem> must be
- a positive number.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- <para>
- The <systemitem>Border</systemitem> feature
- is not inherited.
- </para>
- <para>
- This example <systemitem>Path</systemitem>
- statement displays a 2-point border around the LINK element.
- </para>
- <literallayout>
- <Path>
- LINK</Path>
- <Online>
- <Border Display=all Thickness=2>
- </Online>
- <Print>
- <Border Display=al Thickness=2>
- </Print>
- </literallayout>
- </sect2>
- <!--)))))))))))))))))))))))))))))))))))))))-->
- <sect2>
- <title id="djpipbbc3h9x3cs">Ignore</title>
- <para>
- <systemitem>Ignore</systemitem> specifies
- whether the contents of the element are to be displayed or printed.
- Its syntax is:
- </para>
- <programlisting>
- <Ignore
- >
- </programlisting>
- <para>This example <systemitem>Path</systemitem>
- statement specifies that text delimited by the VERSION
- element will not be displayed or printed.
- </para>
- <literallayout>
- <Path>VERSION
- </Path>
- <Online>
- <Ignore>
- </Online>
- <Print>
- <Ignore>
- </Print>
- </literallayout>
- <note>
- <para>
- The <systemitem>DTINFO.Ignore</systemitem> architectural form prevents an element
- and its contents from being placed in the full-text index and document
- database. The Ignore feature also prevents the content from being
- rendered. For more information, see <link linkend="infoapg.div.9">Understanding
- Architectural Forms</link>.
- </para>
- </note>
- </sect2>
- <!--))))))))))))))))))))))))))))))))))))))))))))-->
- <sect2>
- <title id="n9kpipbbc3h9x3cs">Prefix and Suffix</title>
- <para>
- The <systemitem>Prefix</systemitem> and
- <systemitem>Suffix</systemitem> features add constant
- text before and after the content of an element. Each instance of
- a <systemitem>Prefix</systemitem> or <systemitem>Suffix</systemitem>
- feature must include one
- <systemitem>Content</systemitem> subfeature and
- any number of additional <systemitem>allowed</systemitem>
- features.
- </para>
- <programlisting>
- <Prefix>
- <Content>
- {#PCDATA | Auto}+ </content>
- <replaceable>allowed features</replaceable>
- </Prefix>
- <Suffix>
- <Content>
- {#PCDATA | Auto}+ </content>
- <replaceable>allowed features</replaceable>
- </Suffix>
- </programlisting>
- <para>
- <systemitem>Prefix</systemitem> and <systemitem>Suffix</systemitem>
- features are not inherited.
- </para>
- <!--(((((((((((((((((((((((((((((((((((((((((((((((-->
- <sect3>
- <title id="s75skocwg0hp2ol">Content Subfeature and Allowed
- Features for Prefix and Suffix</title>
- <para>
- The <systemitem>Content</systemitem> subfeature
- can contain any combination of text or system-generated number tokens.
- </para>
- <para>
- To specify a system-generated number token, use the
- <systemitem>Auto</systemitem> subfeature, which has one
- required attribute— <replaceable>ID</replaceable>.
- The <replaceable>ID</replaceable>
- in this case is the name of the number token specified with the
- <systemitem>AutoNumber</systemitem>
- feature. Use both start and end tags when using the
- <systemitem>Content</systemitem> subfeature.
- </para>
- <para>
- You can specify the following allowed features in a
- <systemitem>Prefix</systemitem> or <systemitem>Suffix</systemitem> feature.
- </para>
- <itemizedlist>
- <listitem>
- <para><link linkend="n6jpipbbc3h9x3cs">Font</link></para>
- </listitem>
- <listitem>
- <para><link linkend="ujpipbbc3h9x3cs">HighLight</link></para>
- </listitem>
- <listitem>
- <para><link linkend="jjpipbbc3h9x3cs">Layout</link></para>
- </listitem>
- <listitem>
- <para><link linkend="n0jpipbbc3h9x3cs">LineBreak</link></para>
- </listitem>
- <listitem>
- <para><link linkend="n4llcmnc770hp2ol">Position</link></para>
- </listitem>
- </itemizedlist>
- <para>
- This example shows a <systemitem>Prefix</systemitem>
- and <systemitem>Suffix</systemitem> for the CAUTION element:
- </para>
- <literallayout>
- <Path>CAUTION
- <Path/>
- <Online>
- <Prefix>
- <Content>CAUTION:
- </Content>
- <Font Weight=bold size=14>
- <Layout LIndent=6 ASpace=6>
- <Linebreak both>
- <Highlight Underline=true>
- </Prefix>
- </Online>
- <Print>
- <Prefix>
- <Content>CAUTION:
- </Content>
- <Font Weight=bold size=14>
- <Layout LIndent=6 ASpace=6>
- <Linebreak both>
- <Highlight Underline=true>
- </Prefix>
- </Print>
- <Path>CAUTION<Path/>
- <Online>
- <Suffix><Content>CAUTION:
- </Content>
- <Font Weight=bold size=14>
- <Layout LIndent=6 ASpace=6>
- <Linebreak both>
- <Highlight Underline=true>
- </Suffix>
- </Online>
- <Print>
- <Suffix>
- <Content>WARRANTY ALERT
- </Content>
- <Font Weight=bold Size=14>
- <Layout LIndent=6 ASpace=6>
- <Linebreak both>
- <Highlight Underline=true>
- </SUFFIX>
- </Print>
- </literallayout>
- </sect3>
- </sect2>
- </sect1>
- </chapter>
|