Changeset b1a51ac1 for stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/pi.xsl
- Timestamp:
- 12/10/2013 11:37:38 PM (11 years ago)
- Branches:
- 7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- 112db9d
- Parents:
- f2a5108
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/pi.xsl
rf2a5108 rb1a51ac1 5 5 xmlns:fo="http://www.w3.org/1999/XSL/Format" 6 6 xmlns:xlink="http://www.w3.org/1999/xlink" 7 exclude-result-prefixes="doc "7 exclude-result-prefixes="doc xlink" 8 8 version='1.0'> 9 9 10 10 <!-- ******************************************************************** 11 $Id $11 $Id: pi.xsl 9267 2012-04-03 20:23:45Z bobstayton $ 12 12 ******************************************************************** 13 13 … … 20 20 <doc:reference xmlns=""><info><title>FO Processing Instruction Reference</title> 21 21 <releaseinfo role="meta"> 22 $Id $22 $Id: pi.xsl 9267 2012-04-03 20:23:45Z bobstayton $ 23 23 </releaseinfo> 24 24 </info> … … 83 83 <para>Use the <tag class="xmlpi">dbfo bgcolor</tag> PI as child of a table row 84 84 or cell to set a background color for that table row or cell.</para> 85 <para>This PI works for both CALS and HTML tables.</para> 85 86 </refdescription> 86 87 <refsynopsisdiv> … … 131 132 </refparameter> 132 133 <refsee role="params"> 133 <para><parameter>sidebar.float.type parameter</parameter>,134 <parameter>sidebar.float.width parameter</parameter>,135 <parameter>sidebar.properties attribute-set</parameter>,136 <parameter>sidebar.title.properties</parameter> 134 <para><parameter>sidebar.float.type</parameter> (parameter), 135 <parameter>sidebar.float.width</parameter> (parameter), 136 <parameter>sidebar.properties</parameter> (attribute-set), 137 <parameter>sidebar.title.properties</parameter> (attribute-set) 137 138 </para> 138 139 </refsee> 139 140 <refsee role="tcg"> 140 <para><link xlink:href="SideFloats.html#SidebarFloats" >A sidebar as141 <para><link role="tcg" xlink:href="SideFloats.html#SidebarFloats" >A sidebar as 141 142 side float</link></para> 142 143 </refsee> … … 147 148 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/> 148 149 <xsl:with-param name="attribute" select="'float-type'"/> 150 </xsl:call-template> 151 </xsl:template> 152 153 <doc:pi name="dbfo_funcsynopsis-style" xmlns=""> 154 <refpurpose>Specifies presentation style for a funcsynopsis</refpurpose> 155 <refdescription> 156 <para>Use the <tag class="xmlpi">dbfo funcsynopsis-style</tag> PI as a child of 157 a <tag>funcsynopsis</tag> or anywhere within a funcsynopsis 158 to control the presentation style for output of all 159 <tag>funcprototype</tag> instances within that funcsynopsis.</para> 160 </refdescription> 161 <refsynopsisdiv> 162 <synopsis><tag class="xmlpi">dbfo funcsynopsis-style="kr"|"ansi"</tag></synopsis> 163 </refsynopsisdiv> 164 <refparameter> 165 <variablelist> 166 <varlistentry><term>funcsynopsis-style="kr"</term> 167 <listitem> 168 <para>Displays <tag>funcprototype</tag> output in K&R style</para> 169 </listitem> 170 </varlistentry> 171 <varlistentry><term>funcsynopsis-style="ansi"</term> 172 <listitem> 173 <para>Displays <tag>funcprototype</tag> output in ANSI style</para> 174 </listitem> 175 </varlistentry> 176 </variablelist> 177 </refparameter> 178 <refsee role="params"> 179 <para><parameter>funcsynopsis.style</parameter></para> 180 </refsee> 181 </doc:pi> 182 <xsl:template name="pi.dbfo_funcsynopsis-style"> 183 <xsl:param name="node" select="."/> 184 <xsl:call-template name="dbfo-attribute"> 185 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/> 186 <xsl:with-param name="attribute" select="'funcsynopsis-style'"/> 149 187 </xsl:call-template> 150 188 </xsl:template> … … 177 215 </refsee> 178 216 <refsee role="tcg"> 179 <para><link xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary217 <para><link role="tcg" xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary 180 218 formatting in print</link></para> 181 219 </refsee> … … 216 254 </refsee> 217 255 <refsee role="tcg"> 218 <para><link xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary256 <para><link role="tcg" xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary 219 257 formatting in print</link></para> 220 258 </refsee> … … 255 293 </refsee> 256 294 <refsee role="tcg"> 257 <para><link xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary295 <para><link role="tcg" xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary 258 296 formatting in print</link></para> 259 297 </refsee> … … 269 307 <doc:pi name="dbfo_keep-together" xmlns=""> 270 308 <refpurpose>Specifies “keep” behavior for a table, example, 271 figure, or equation</refpurpose>309 figure, equation, procedure, or task</refpurpose> 272 310 <refdescription> 273 311 <para>Use the <tag class="xmlpi">dbfo keep-together</tag> PI as a child of a 274 312 formal object (<tag>table</tag>, <tag>example</tag>, 275 <tag>figure</tag>, or <tag>equation</tag>) or their informal 276 equivalents) to specify “keep” behavior for the object (to 277 allow the object to “break” across a page).</para> 313 <tag>figure</tag>, <tag>equation</tag>, <tag>procedure</tag>, or 314 <tag>task</tag>) to specify “keep” behavior (to allow the object to 315 “break” across a page).</para> 316 <para>The PI also works with <tag>informaltable</tag>, <tag>informalexample</tag>, 317 <tag>informalfigure</tag> and <tag>informalequation</tag>. 318 </para> 319 278 320 </refdescription> 279 321 <refsynopsisdiv> … … 299 341 </refsee> 300 342 <refsee role="tcg"> 301 <para><link xlink:href="PageBreaking.html#KeepTogetherPI"343 <para><link role="tcg" xlink:href="PageBreaking.html#KeepTogetherPI" 302 344 >Keep-together processing instruction</link></para> 303 345 </refsee> … … 312 354 313 355 <doc:pi name="dbfo_label-width" xmlns=""> 314 <refpurpose>Specifies the label width for a qandaset</refpurpose> 356 <refpurpose>Specifies the label width for a qandaset, itemizedlist, orderedlist 357 or calloutlist</refpurpose> 315 358 <refdescription> 316 359 <para>Use the <tag class="xmlpi">dbfo label-width</tag> PI as a child of a 317 <tag>qandaset</tag> to specify the width of labels.</para> 360 <tag>qandaset</tag>, <tag>itemizedlist</tag>, <tag>orderedlist</tag>, 361 or <tag>calloutlist</tag> to specify the width of labels.</para> 318 362 </refdescription> 319 363 <refsynopsisdiv> … … 344 388 345 389 <doc:pi name="dbfo_linenumbering.everyNth" xmlns=""> 346 <refpurpose>Specifies interval for line snumbers in verbatims</refpurpose>390 <refpurpose>Specifies interval for line numbers in verbatims</refpurpose> 347 391 <refdescription> 348 392 <para>Use the <tag class="xmlpi">dbfo linenumbering.everyNth</tag> PI as a child … … 540 584 541 585 <doc:pi name="dbfo_orientation" xmlns=""> 542 <refpurpose>Specifies the orientation for table row or cell</refpurpose>543 <refdescription> 544 <para>Use the <tag class="xmlpi">dbfo orientation</tag> PI as a child of a n586 <refpurpose>Specifies the orientation for a CALS table row or cell</refpurpose> 587 <refdescription> 588 <para>Use the <tag class="xmlpi">dbfo orientation</tag> PI as a child of a CALS 545 589 <tag>table</tag> row or cell to specify the orientation 546 590 (rotation) for the row or cell.</para> … … 607 651 608 652 <doc:pi name="dbfo_rotated-width" xmlns=""> 609 <refpurpose>Specifies the width for a table <tag>entry</tag> or653 <refpurpose>Specifies the width for a CALS table <tag>entry</tag> or 610 654 <tag>row</tag></refpurpose> 611 655 <refdescription> 612 <para>Use the <tag class="xmlpi">dbfo rotated-width</tag> PI as a child of an613 <tag>entry</tag> or <tag>row</tag> instance to specify the656 <para>Use the <tag class="xmlpi">dbfo rotated-width</tag> PI as a child of 657 <tag>entry</tag> or <tag>row</tag> instance in a CALS table to specify the 614 658 width of that the <tag>entry</tag> or <tag>row</tag>; or 615 659 use it higher up in table to cause the width to be inherited … … 663 707 </refsee> 664 708 <refsee role="tcg"> 665 <para><link xlink:href="SideFloats.html#SidebarFloats" >A sidebar as709 <para><link role="tcg" xlink:href="SideFloats.html#SidebarFloats" >A sidebar as 666 710 side float</link></para> 667 711 </refsee> … … 714 758 715 759 <doc:pi name="dbfo_table-width" xmlns=""> 716 <refpurpose>Specifies the width for a table or for revhistory760 <refpurpose>Specifies the width for a CALS table or for revhistory 717 761 output</refpurpose> 718 762 <refdescription> 719 763 <para>Use the <tag class="xmlpi">dbfo table-width</tag> PI as a child or 720 sibling of a <tag>table</tag>, or as a child of an721 <tag>informaltable</tag>, <tag>entry bl</tag>, or764 sibling of a CALS <tag>table</tag>, or as a child of an 765 <tag>informaltable</tag>, <tag>entrytbl</tag>, or 722 766 <tag>revhistory</tag> instance (which is rendered as a table 723 767 in output) to specify the width of the table in output.</para> … … 856 900 </refsee> 857 901 </doc:pi> 902 903 <doc:pi name="dbfo_row-height" xmlns=""> 904 <refpurpose>Specifies the height for a CALS table row</refpurpose> 905 <refdescription> 906 <para>Use the <tag class="xmlpi">dbfo row-height</tag> PI as a child of a 907 <tag>row</tag> to specify the height of the row.</para> 908 </refdescription> 909 <refsynopsisdiv> 910 <synopsis><tag class="xmlpi">dbfo row-height="<replaceable>height</replaceable>"</tag></synopsis> 911 </refsynopsisdiv> 912 <refparameter> 913 <variablelist> 914 <varlistentry><term>row-height="<replaceable>height</replaceable>"</term> 915 <listitem> 916 <para>Specifies the row height (including units)</para> 917 </listitem> 918 </varlistentry> 919 </variablelist> 920 </refparameter> 921 <refsee role="tcg"> 922 <para><link role="tcg" 923 xlink:href="RowHeight.html" 924 >Row height</link></para> 925 </refsee> 926 </doc:pi> 927 <xsl:template name="pi.dbfo_row-height"> 928 <xsl:param name="node" select="."/> 929 <xsl:call-template name="dbfo-attribute"> 930 <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/> 931 <xsl:with-param name="attribute" select="'row-height'"/> 932 </xsl:call-template> 933 </xsl:template> 934 935 858 936 <xsl:template name="pi.dbfo-need"> 859 937 <xsl:variable name="pi-height"> … … 887 965 888 966 <xsl:choose> 967 <xsl:when test="$fop1.extensions != 0"> 968 <!-- Doesn't work in fop --> 969 </xsl:when> 889 970 <xsl:when test="$fop.extensions != 0"> 890 971 <!-- Doesn't work in fop --> … … 934 1015 <fo:list-item space-after="0pt" 935 1016 xsl:use-attribute-sets="informal.object.properties"> 936 <fo:list-item-label/> 1017 <fo:list-item-label> 1018 <fo:block line-height="0pt"/> 1019 </fo:list-item-label> 937 1020 <fo:list-item-body start-indent="0pt" end-indent="0pt"> 938 1021 <xsl:copy-of select="$spacer"/> … … 959 1042 960 1043 <xsl:choose> 1044 <xsl:when test="$fop1.extensions != 0"> 1045 <!-- Doesn't work in fop --> 1046 </xsl:when> 961 1047 <xsl:when test="$fop.extensions != 0"> 962 1048 <!-- Doesn't work in fop --> … … 968 1054 space-after="0pt" 969 1055 space-after.precedence="force"> 970 <fo:list-item-label/> 971 <fo:list-item-body start-indent="0pt" end-indent="0pt"/> 1056 <fo:list-item-label> 1057 <fo:block line-height="0pt"/> 1058 </fo:list-item-label> 1059 <fo:list-item-body start-indent="0pt" end-indent="0pt"> 1060 <fo:block line-height="0pt"/> 1061 </fo:list-item-body> 972 1062 </fo:list-item> 973 1063 </xsl:when>
Note:
See TracChangeset
for help on using the changeset viewer.