Changeset 00b1e11 in clfs-embedded for BOOK/stylesheets/lfs-xsl


Ignore:
Timestamp:
Jul 21, 2007, 8:07:11 AM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
master
Children:
a6966fa
Parents:
3ca2208
Message:

Merged r8226 from new-xsl branch.

Location:
BOOK/stylesheets/lfs-xsl
Files:
44 edited

Legend:

Unmodified
Added
Removed
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/VERSION

    r3ca2208 r00b1e11  
    1212<xsl:param name="PreviousReleaseRevision">6553</xsl:param>
    1313<xsl:param name="Revision">$Revision$</xsl:param>
    14 <xsl:param name="VersionFileURL">$URL: https://svn.sourceforge.net/svnroot/docbook/trunk/xsl/VERSION $</xsl:param>
     14<xsl:param name="VersionFileURL">$URL: https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/xsl/VERSION $</xsl:param>
    1515<xsl:param name="sf-relid" select="0"/>
    1616<xsl:strip-space elements="fm:*"/>
     
    1919  <fm:Project>DocBook</fm:Project>
    2020  <fm:Branch>XSL Stylesheets</fm:Branch>
    21   <fm:Version>snapshot_6933</fm:Version>
     21  <fm:Version>snapshot_7094</fm:Version>
    2222<!--
    2323  <fm:License>MIT/X Consortium License</fm:License>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/common.xsl

    r3ca2208 r00b1e11  
    1515     copyright and other information.
    1616
    17      This file contains general templates common to both the HTML and FO
    18      versions of the DocBook stylesheets.
    1917     ******************************************************************** -->
    2018
    21 <doc:reference xmlns="">
    22 <referenceinfo>
    23 <releaseinfo role="meta">
    24 $Id$
    25 </releaseinfo>
    26 <author><surname>Walsh</surname>
    27 <firstname>Norman</firstname></author>
    28 <copyright><year>1999-2007</year>
    29 <holder>Norman Walsh</holder>
    30 </copyright>
    31 </referenceinfo>
    32 <title>Common Template Reference</title>
    33 
    34 <partintro id="partintro">
    35 <title>Introduction</title>
    36 
    37 <para>This is technical reference documentation for the “common”
    38 templates in the DocBook XSL Stylesheets. The common templates are
    39 â€œcommon” because they are shared across output formats (that is,
    40 they’re not output-format-dependent).</para>
    41 
    42 <para>This documentation is not intended to be <quote>user</quote>
    43 documentation.  It is provided for developers writing
    44 customization layers for the stylesheets, and for anyone who's
    45 interested in <quote>how it works</quote>.</para>
    46 
    47 </partintro>
    48 
     19<doc:reference xmlns="" xml:id="base">
     20  <info>
     21    <title>Common » Base Template Reference</title>
     22    <releaseinfo role="meta">
     23      $Id$
     24    </releaseinfo>
     25  </info>
     26  <!-- * yes, partintro is a valid child of a reference... -->
     27  <partintro xml:id="partintro">
     28    <title>Introduction</title>
     29    <para>This is technical reference documentation for the “base”
     30      set of common templates in the DocBook XSL Stylesheets.</para>
     31    <para>This is not intended to be user documentation. It is
     32      provided for developers writing customization layers for the
     33      stylesheets.</para>
     34  </partintro>
    4935</doc:reference>
    5036
     
    184170<refdescription id="section.level-desc">
    185171<para>This template calculates the hierarchical level of a section.
    186 The element <sgmltag>sect1</sgmltag> is at level 1, <sgmltag>sect2</sgmltag> is
     172The element <tag>sect1</tag> is at level 1, <tag>sect2</tag> is
    187173at level 2, etc.</para>
    188174
     
    13251311<!-- ====================================================================== -->
    13261312<!-- OrderedList Numeration -->
    1327 
    1328 <xsl:template name="orderedlist-starting-number">
    1329   <xsl:param name="list" select="."/>
    1330 
    1331   <!-- Need a neutral dbxxx -->
    1332   <xsl:variable name="pi-html-start">
    1333     <xsl:call-template name="pi-attribute">
    1334       <xsl:with-param name="pis"
    1335                       select="$list/processing-instruction('dbhtml')"/>
    1336       <xsl:with-param name="attribute" select="'start'"/>
    1337     </xsl:call-template>
    1338   </xsl:variable>
    1339 
    1340   <xsl:variable name="pi-fo-start">
    1341     <xsl:call-template name="pi-attribute">
    1342       <xsl:with-param name="pis"
    1343                       select="$list/processing-instruction('dbfo')"/>
    1344       <xsl:with-param name="attribute" select="'start'"/>
    1345     </xsl:call-template>
    1346   </xsl:variable>
    1347 
     1313<xsl:template name="output-orderedlist-starting-number">
     1314  <xsl:param name="list"/>
     1315  <xsl:param name="pi-start"/>
    13481316  <xsl:choose>
    13491317    <xsl:when test="not($list/@continuation = 'continues')">
     
    13521320          <xsl:value-of select="@startingnumber"/>
    13531321        </xsl:when>
    1354         <xsl:when test="$pi-html-start != ''">
    1355           <xsl:value-of select="$pi-html-start"/>
    1356         </xsl:when>
    1357         <xsl:when test="$pi-fo-start != ''">
    1358           <xsl:value-of select="$pi-fo-start"/>
     1322        <xsl:when test="$pi-start != ''">
     1323          <xsl:value-of select="$pi-start"/>
    13591324        </xsl:when>
    13601325        <xsl:otherwise>1</xsl:otherwise>
     
    13631328    <xsl:otherwise>
    13641329      <xsl:variable name="prevlist"
    1365                     select="$list/preceding::orderedlist[1]"/>
     1330        select="$list/preceding::orderedlist[1]"/>
    13661331      <xsl:choose>
    13671332        <xsl:when test="count($prevlist) = 0">2</xsl:when>
     
    13831348  <!-- context node must be a listitem in an orderedlist -->
    13841349  <xsl:param name="node" select="."/>
    1385 
    13861350  <xsl:choose>
    13871351    <xsl:when test="$node/@override">
     
    19041868    the final item in an inline list (though it could also be useful
    19051869    for generating choice separators for non-inline lists).</para>
    1906 
    19071870    <para>It currently works by evaluating a processing instruction
    19081871    (PI) of the form &lt;?dbchoice&#xa0;choice="foo"?> :
    1909 
    19101872    <itemizedlist>
    19111873      <listitem>
    1912         <simpara>if the value of the <sgmltag>choice</sgmltag>
     1874        <simpara>if the value of the <tag>choice</tag>
    19131875        pseudo-attribute is "and" or "or", returns a localized "and"
    19141876        or "or"</simpara>
     
    19161878      <listitem>
    19171879        <simpara>otherwise returns the literal value of the
    1918         <sgmltag>choice</sgmltag> pseudo-attribute</simpara>
     1880        <tag>choice</tag> pseudo-attribute</simpara>
    19191881      </listitem>
    19201882    </itemizedlist>
    1921 
    19221883    The latter is provided only as a temporary workaround because the
    19231884    locale files do not currently have translations for the word
     
    19251886    logical "or" separator in French (for example), you currently need
    19261887    to do this:
    1927 
    19281888    <literallayout>&lt;?dbchoice choice="ou"?></literallayout>
    19291889    </para>
    1930 
    19311890    <warning>
    1932       <para>The <sgmltag>dbchoice</sgmltag> processing instruction is
     1891      <para>The <tag>dbchoice</tag> processing instruction is
    19331892      an unfortunate hack; support for it may disappear in the future
    19341893      (particularly if and when a more appropriate means for marking
     
    19381897</doc:template>
    19391898<xsl:template name="select.choice.separator">
    1940  
    19411899  <xsl:variable name="choice">
    1942     <xsl:call-template name="pi-attribute">
    1943       <xsl:with-param name="pis" select="processing-instruction('dbchoice')"/>
    1944       <xsl:with-param name="attribute">choice</xsl:with-param>
    1945     </xsl:call-template>
    1946   </xsl:variable>
    1947  
     1900    <xsl:call-template name="pi.dbchoice_choice"/>
     1901  </xsl:variable>
    19481902  <xsl:choose>
    19491903    <!-- if value of $choice is "and" or "or", translate to equivalent in -->
     
    20251979    </xsl:choose>
    20261980  </xsl:template>
    2027 
    20281981</xsl:stylesheet>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/de.xml

    r3ca2208 r00b1e11  
    2020
    2121<!-- ******************************************************************** -->
     22<!-- In these files, % with a letter is used for a placeholder: -->
     23<!--   %t is the current element's title -->
     24<!--   %s is the current element's subtitle (if applicable)-->
     25<!--   %n is the current element's number label-->
     26<!--   %p is the current element's page number (if applicable)-->
     27<!-- ******************************************************************** -->
     28
    2229
    2330<l:gentext key="Abstract" text="Zusammenfassung"/>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/en.xml

    r3ca2208 r00b1e11  
    2020
    2121<!-- ******************************************************************** -->
     22<!-- In these files, % with a letter is used for a placeholder: -->
     23<!--   %t is the current element's title -->
     24<!--   %s is the current element's subtitle (if applicable)-->
     25<!--   %n is the current element's number label-->
     26<!--   %p is the current element's page number (if applicable)-->
     27<!-- ******************************************************************** -->
     28
    2229
    2330<l:gentext key="Abstract" text="Abstract"/>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/es.xml

    r3ca2208 r00b1e11  
    2020
    2121<!-- ******************************************************************** -->
     22<!-- In these files, % with a letter is used for a placeholder: -->
     23<!--   %t is the current element's title -->
     24<!--   %s is the current element's subtitle (if applicable)-->
     25<!--   %n is the current element's number label-->
     26<!--   %p is the current element's page number (if applicable)-->
     27<!-- ******************************************************************** -->
     28
    2229
    2330<l:gentext key="Abstract" text="Resumen"/>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/fr.xml

    r3ca2208 r00b1e11  
    2020
    2121<!-- ******************************************************************** -->
     22<!-- In these files, % with a letter is used for a placeholder: -->
     23<!--   %t is the current element's title -->
     24<!--   %s is the current element's subtitle (if applicable)-->
     25<!--   %n is the current element's number label-->
     26<!--   %p is the current element's page number (if applicable)-->
     27<!-- ******************************************************************** -->
     28
    2229
    2330<l:gentext key="Abstract" text="Résumé"/>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/it.xml

    r3ca2208 r00b1e11  
    2020
    2121<!-- ******************************************************************** -->
     22<!-- In these files, % with a letter is used for a placeholder: -->
     23<!--   %t is the current element's title -->
     24<!--   %s is the current element's subtitle (if applicable)-->
     25<!--   %n is the current element's number label-->
     26<!--   %p is the current element's page number (if applicable)-->
     27<!-- ******************************************************************** -->
     28
    2229
    2330<l:gentext key="Abstract" text="Estratto"/>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/labels.xsl

    r3ca2208 r00b1e11  
    194194    </xsl:when>
    195195    <xsl:when test="string($reference.autolabel) != 0">
     196      <xsl:if test="$component.label.includes.part.label != 0 and
     197                      ancestor::part">
     198        <xsl:variable name="part.label">
     199          <xsl:apply-templates select="ancestor::part"
     200                               mode="label.markup"/>
     201        </xsl:variable>
     202        <xsl:if test="$part.label != ''">
     203          <xsl:value-of select="$part.label"/>
     204          <xsl:apply-templates select="ancestor::part"
     205                               mode="intralabel.punctuation"/>
     206        </xsl:if>
     207      </xsl:if>
    196208      <xsl:variable name="format">
    197209        <xsl:call-template name="autolabel.format">
     
    199211        </xsl:call-template>
    200212      </xsl:variable>
    201       <xsl:number from="book" count="reference" format="{$format}" level="any"/>
     213      <xsl:choose>
     214        <xsl:when test="$label.from.part != 0 and ancestor::part">
     215          <xsl:number from="part" count="reference" format="{$format}" level="any"/>
     216        </xsl:when>
     217        <xsl:otherwise>
     218          <xsl:number from="book" count="reference" format="{$format}" level="any"/>
     219        </xsl:otherwise>
     220      </xsl:choose>
    202221    </xsl:when>
    203222  </xsl:choose>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/pi.xsl

    r3ca2208 r00b1e11  
    11<?xml version='1.0'?>
    2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    3                 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
    4                 xmlns:date="http://exslt.org/dates-and-times"
    5                 xmlns:exsl="http://exslt.org/common"
    6                 exclude-result-prefixes="doc date exsl"
    7                 extension-element-prefixes="date exsl"
    8                 version='1.0'>
     2<xsl:stylesheet
     3  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     4  xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
     5  xmlns:date="http://exslt.org/dates-and-times"
     6  xmlns:exsl="http://exslt.org/common"
     7  xmlns:xlink="http://www.w3.org/1999/xlink"
     8  exclude-result-prefixes="doc date exsl"
     9  extension-element-prefixes="date exsl"
     10  version='1.0'>
    911
    1012<!-- ********************************************************************
     
    1618     copyright and other information.
    1719
    18      This file contains general templates for processing processing
    19      instructions common to both the HTML and FO versions of the
    20      DocBook stylesheets.
    2120     ******************************************************************** -->
    2221
    23 <!-- Process PIs also on title pages -->
    24 <xsl:template match="processing-instruction()" mode="titlepage.mode">
    25   <xsl:apply-templates select="."/>
    26 </xsl:template>
    27 
    28 <xsl:template match="processing-instruction('dbtimestamp')">
     22<doc:reference xmlns=""><info><title>Common Processing Instruction Reference</title>
     23    <releaseinfo role="meta">
     24      $Id$
     25    </releaseinfo>
     26  </info>
     27  <partintro id="partintro">
     28    <title>Introduction</title>
     29    <para>This is generated reference documentation for all
     30      user-specifiable processing instructions (PIs) in the
     31      “common” part of the DocBook XSL stylesheets.
     32      <note>
     33        <para>You add these PIs at particular points in a document to
     34          cause specific “exceptions” to formatting/output behavior. To
     35          make global changes in formatting/output behavior across an
     36          entire document, it’s better to do it by setting an
     37          appropriate stylesheet parameter (if there is one).</para>
     38      </note>
     39    </para>
     40  </partintro>
     41</doc:reference>
     42
     43<!-- ==================================================================== -->
     44<doc:pi name="dbchoice_choice" xmlns="">
     45  <refpurpose>Generates a localized choice separator</refpurpose>
     46  <refdescription id="select.choice.separator-desc">
     47    <para>Use the <tag class="xmlpi">dbchoice choice</tag> PI to
     48      generate an appropriate localized “choice” separator (for
     49      example, <literal>and</literal> or <literal>or</literal>)
     50      before the final item in an inline <tag>simplelist</tag></para>
     51    <warning>
     52      <para>This PI is a less-than-ideal hack; support for it may
     53        disappear in the future (particularly if and when a more
     54        appropriate means for marking up "choice" lists becomes
     55        available in DocBook).</para>
     56    </warning>
     57  </refdescription>
     58  <refsynopsisdiv>
     59    <synopsis><tag class="xmlpi">dbchoice choice="and"|"or"|<replaceable>string</replaceable>"</tag></synopsis>
     60  </refsynopsisdiv>
     61  <refparameter>
     62    <variablelist>
     63      <varlistentry><term>choice="and"</term>
     64        <listitem>
     65          <para>generates a localized <literal>and</literal> separator</para>
     66        </listitem>
     67      </varlistentry>
     68      <varlistentry><term>choice="or"</term>
     69        <listitem>
     70          <para>generates a localized <literal>or</literal> separator</para>
     71        </listitem>
     72      </varlistentry>
     73      <varlistentry><term>choice="<replaceable>string</replaceable>"</term>
     74        <listitem>
     75          <para>generates a literal <replaceable>string</replaceable> separator</para>
     76        </listitem>
     77      </varlistentry>
     78    </variablelist>
     79  </refparameter>
     80</doc:pi>
     81<xsl:template name="pi.dbchoice_choice">
     82  <xsl:param name="node" select="."/>
     83  <xsl:call-template name="pi-attribute">
     84    <xsl:with-param name="pis" select="$node/processing-instruction('dbchoice')"/>
     85    <xsl:with-param name="attribute">choice</xsl:with-param>
     86  </xsl:call-template>
     87</xsl:template>
     88
     89<doc:pi name="dbtimestamp" xmlns="">
     90  <refpurpose>Inserts a date timestamp</refpurpose>
     91  <refdescription>
     92    <para>Use the <tag>dbtimestamp</tag> PI at any point in a
     93      source document to cause a date timestamp (a formatted
     94      string representing the current date and time) to be
     95      inserted in output of the document.</para>
     96  </refdescription>
     97  <refsynopsisdiv>
     98    <synopsis><tag class="xmlpi">dbtimestamp format="<replaceable>formatstring</replaceable>" [padding="0"|"1"]</tag></synopsis>
     99  </refsynopsisdiv>
     100  <refparameter>
     101    <variablelist>
     102      <varlistentry><term>format="<replaceable>formatstring</replaceable>"</term>
     103        <listitem>
     104          <para>Specifies format in which the date and time are
     105            output</para>
     106        <note>
     107          <para>For details of the content of the format string,
     108            see <link role="tcg" xlink:href="Datetime.html"
     109              >Date and time</link>.</para>
     110        </note>
     111        </listitem>
     112      </varlistentry>
     113      <varlistentry><term>padding="0"|"1"</term>
     114        <listitem>
     115          <para>Specifies padding behavior; if non-zero, padding is is added</para>
     116        </listitem>
     117      </varlistentry>
     118    </variablelist>
     119  </refparameter>
     120</doc:pi>
     121<xsl:template name="pi.dbtimestamp">
    29122  <xsl:variable name="format">
    30123    <xsl:variable name="pi-format">
     
    45138      </xsl:otherwise>
    46139    </xsl:choose>
    47   </xsl:variable> 
    48 
     140  </xsl:variable>
    49141  <xsl:variable name="padding">
    50142    <xsl:variable name="pi-padding">
     
    61153    </xsl:choose>
    62154  </xsl:variable>
    63 
    64155  <xsl:variable name="date">
    65156    <xsl:choose>
     
    73164    </xsl:choose>
    74165  </xsl:variable>
    75 
    76166  <xsl:choose>
    77167    <xsl:when test="function-available('date:date-time') or
    78                     function-available('date:dateTime')">
     168      function-available('date:dateTime')">
    79169      <xsl:call-template name="datetime.format">
    80170        <xsl:with-param name="date" select="$date"/>
     
    89179    </xsl:otherwise>
    90180  </xsl:choose>
    91 
     181</xsl:template>
     182
     183<doc:pi name="dbtex_delims" xmlns="">
     184  <refpurpose>Generates delimiters around embedded TeX equations
     185    in output</refpurpose>
     186  <refdescription>
     187    <para>Use the <tag class="xmlpi">dbtex delims</tag> PI as a
     188      child of a <tag>textobject</tag> containing embedded TeX
     189      markup, to cause that markup to be surrounded by
     190      <literal>$</literal> delimiter characters in output.</para>
     191  </refdescription>
     192  <refsynopsisdiv>
     193    <synopsis><tag class="xmlpi">dbtex delims="no"|"yes"</tag></synopsis>
     194  </refsynopsisdiv>
     195  <refparameter>
     196    <variablelist>
     197      <varlistentry><term>dbtex delims="no"|"yes"</term>
     198        <listitem>
     199          <para>Specifies whether delimiters are output</para>
     200        </listitem>
     201      </varlistentry>
     202    </variablelist>
     203  </refparameter>
     204  <refsee role="params">
     205    <para><parameter>tex.math.delims</parameter></para>
     206  </refsee>
     207  <refsee role="tcg">
     208    <para><link role="tcg"
     209        xlink:href="TexMath.html"
     210        >DBTeXMath</link></para>
     211  </refsee>
     212</doc:pi>
     213<xsl:template name="pi.dbtex_delims">
     214  <xsl:param name="node" select="."/>
     215  <xsl:call-template name="pi-attribute">
     216    <xsl:with-param name="pis" select="$node/processing-instruction('dbtex')"/>
     217    <xsl:with-param name="attribute" select="'delims'"/>
     218  </xsl:call-template>
     219</xsl:template>
     220
     221<!-- ==================================================================== -->
     222
     223<xsl:template match="processing-instruction()" mode="titlepage.mode">
     224  <!-- * Als process PIs on title pages -->
     225  <xsl:apply-templates select="."/>
     226</xsl:template>
     227
     228<xsl:template match="processing-instruction('dbtimestamp')">
     229  <xsl:call-template name="pi.dbtimestamp"/>
    92230</xsl:template>
    93231
     
    96234  <xsl:param name="format"/>
    97235  <xsl:param name="padding" select="1"/>
    98  
    99236  <xsl:if test="$format != ''">
    100237    <!-- replace any whitespace in the format string with a non-breaking space -->
    101238    <xsl:variable name="format-nbsp"
    102                   select="translate($format,
    103                           '&#x20;&#x9;&#xd;&#xa;',
    104                           '&#xa0;&#xa0;&#xa0;&#xa0;')"/>
     239      select="translate($format,
     240      '&#x20;&#x9;&#xd;&#xa;',
     241      '&#xa0;&#xa0;&#xa0;&#xa0;')"/>
    105242    <xsl:variable name="tokenized-format-string">
    106243      <xsl:call-template name="str.tokenize.keep.delimiters">
    107         <xsl:with-param name="string" select="$format-nbsp"/>
    108         <xsl:with-param name="delimiters" select="'&#xa0;,./-()[]:'"/>
     244        <xsl:with-param name="string" select="$format-nbsp"/>
     245        <xsl:with-param name="delimiters" select="'&#xa0;,./-()[]:'"/>
    109246      </xsl:call-template>
    110247    </xsl:variable>
    111 
    112   <xsl:choose>
    113     <!-- include extra test for Xalan quirk -->
    114     <xsl:when test="function-available('exsl:node-set') or
    115                     contains(system-property('xsl:vendor'),'Apache Software Foundation')">
    116       <!-- We must preserve context node in order to get valid language -->
    117       <xsl:variable name="context" select="."/>
    118       <xsl:for-each select="exsl:node-set($tokenized-format-string)/node()">
    119         <xsl:variable name="token">
    120           <xsl:value-of select="."/>
    121         </xsl:variable>
    122         <!-- Restore context node -->
    123         <xsl:for-each select="$context">
    124           <xsl:choose>
    125             <xsl:when test="$token = 'a'">
    126               <xsl:call-template name="gentext.template">
    127                 <xsl:with-param name="context" select="'datetime-abbrev'"/>
    128                 <xsl:with-param name="name" select="date:day-abbreviation($date)"/>
    129               </xsl:call-template>
    130             </xsl:when>
    131             <xsl:when test="$token = 'A'">
    132               <xsl:call-template name="gentext.template">
    133                 <xsl:with-param name="context" select="'datetime-full'"/>
    134                 <xsl:with-param name="name" select="date:day-name($date)"/>
    135               </xsl:call-template>
    136             </xsl:when>
    137             <xsl:when test="$token = 'b'">
    138               <xsl:call-template name="gentext.template">
    139                 <xsl:with-param name="context" select="'datetime-abbrev'"/>
    140                 <xsl:with-param name="name" select="date:month-abbreviation($date)"/>
    141               </xsl:call-template>
    142             </xsl:when>
    143             <xsl:when test="$token = 'c'">
    144               <xsl:value-of select="date:date($date)"/>
    145               <xsl:text> </xsl:text>
    146               <xsl:value-of select="date:time($date)"/>
    147             </xsl:when>
    148             <xsl:when test="$token = 'B'">
    149               <xsl:call-template name="gentext.template">
    150                 <xsl:with-param name="context" select="'datetime-full'"/>
    151                 <xsl:with-param name="name" select="date:month-name($date)"/>
    152               </xsl:call-template>
    153             </xsl:when>
    154             <xsl:when test="$token = 'd'">
    155               <xsl:if test="$padding = 1 and
    156               string-length(date:day-in-month($date)) = 1">0</xsl:if>
    157               <xsl:value-of select="date:day-in-month($date)"/>
    158             </xsl:when>
    159             <xsl:when test="$token = 'H'">
    160               <xsl:if test="$padding = 1 and string-length(date:hour-in-day($date)) = 1">0</xsl:if>
    161               <xsl:value-of select="date:hour-in-day($date)"/>
    162             </xsl:when>
    163             <xsl:when test="$token = 'j'">
    164               <xsl:value-of select="date:day-in-year($date)"/>
    165             </xsl:when>
    166             <xsl:when test="$token = 'm'">
    167               <xsl:if test="$padding = 1 and string-length(date:month-in-year($date)) = 1">0</xsl:if>
    168               <xsl:value-of select="date:month-in-year($date)"/>
    169             </xsl:when>
    170             <xsl:when test="$token = 'M'">
    171               <xsl:if test="string-length(date:minute-in-hour($date)) = 1">0</xsl:if>
    172               <xsl:value-of select="date:minute-in-hour($date)"/>
    173             </xsl:when>
    174             <xsl:when test="$token = 'S'">
    175               <xsl:if test="string-length(date:second-in-minute($date)) = 1">0</xsl:if>
    176               <xsl:value-of select="date:second-in-minute($date)"/>
    177             </xsl:when>
    178             <xsl:when test="$token = 'U'">
    179               <xsl:value-of select="date:week-in-year($date)"/>
    180             </xsl:when>
    181             <xsl:when test="$token = 'w'">
    182               <xsl:value-of select="date:day-in-week($date)"/>
    183             </xsl:when>
    184             <xsl:when test="$token = 'x'">
    185               <xsl:value-of select="date:date($date)"/>
    186             </xsl:when>
    187             <xsl:when test="$token = 'X'">
    188               <xsl:value-of select="date:time($date)"/>
    189             </xsl:when>
    190             <xsl:when test="$token = 'Y'">
    191               <xsl:value-of select="date:year($date)"/>
    192             </xsl:when>
    193             <xsl:otherwise>
    194               <xsl:value-of select="$token"/>
    195             </xsl:otherwise>
    196           </xsl:choose>
     248    <xsl:choose>
     249      <!-- include extra test for Xalan quirk -->
     250      <xsl:when test="function-available('exsl:node-set') or
     251        contains(system-property('xsl:vendor'),'Apache Software Foundation')">
     252        <!-- We must preserve context node in order to get valid language -->
     253        <xsl:variable name="context" select="."/>
     254        <xsl:for-each select="exsl:node-set($tokenized-format-string)/node()">
     255          <xsl:variable name="token">
     256            <xsl:value-of select="."/>
     257          </xsl:variable>
     258          <!-- Restore context node -->
     259          <xsl:for-each select="$context">
     260            <xsl:choose>
     261              <xsl:when test="$token = 'a'">
     262                <xsl:call-template name="gentext.template">
     263                  <xsl:with-param name="context" select="'datetime-abbrev'"/>
     264                  <xsl:with-param name="name" select="date:day-abbreviation($date)"/>
     265                </xsl:call-template>
     266              </xsl:when>
     267              <xsl:when test="$token = 'A'">
     268                <xsl:call-template name="gentext.template">
     269                  <xsl:with-param name="context" select="'datetime-full'"/>
     270                  <xsl:with-param name="name" select="date:day-name($date)"/>
     271                </xsl:call-template>
     272              </xsl:when>
     273              <xsl:when test="$token = 'b'">
     274                <xsl:call-template name="gentext.template">
     275                  <xsl:with-param name="context" select="'datetime-abbrev'"/>
     276                  <xsl:with-param name="name" select="date:month-abbreviation($date)"/>
     277                </xsl:call-template>
     278              </xsl:when>
     279              <xsl:when test="$token = 'c'">
     280                <xsl:value-of select="date:date($date)"/>
     281                <xsl:text> </xsl:text>
     282                <xsl:value-of select="date:time($date)"/>
     283              </xsl:when>
     284              <xsl:when test="$token = 'B'">
     285                <xsl:call-template name="gentext.template">
     286                  <xsl:with-param name="context" select="'datetime-full'"/>
     287                  <xsl:with-param name="name" select="date:month-name($date)"/>
     288                </xsl:call-template>
     289              </xsl:when>
     290              <xsl:when test="$token = 'd'">
     291                <xsl:if test="$padding = 1 and
     292                  string-length(date:day-in-month($date)) = 1">0</xsl:if>
     293                <xsl:value-of select="date:day-in-month($date)"/>
     294              </xsl:when>
     295              <xsl:when test="$token = 'H'">
     296                <xsl:if test="$padding = 1 and string-length(date:hour-in-day($date)) = 1">0</xsl:if>
     297                <xsl:value-of select="date:hour-in-day($date)"/>
     298              </xsl:when>
     299              <xsl:when test="$token = 'j'">
     300                <xsl:value-of select="date:day-in-year($date)"/>
     301              </xsl:when>
     302              <xsl:when test="$token = 'm'">
     303                <xsl:if test="$padding = 1 and string-length(date:month-in-year($date)) = 1">0</xsl:if>
     304                <xsl:value-of select="date:month-in-year($date)"/>
     305              </xsl:when>
     306              <xsl:when test="$token = 'M'">
     307                <xsl:if test="string-length(date:minute-in-hour($date)) = 1">0</xsl:if>
     308                <xsl:value-of select="date:minute-in-hour($date)"/>
     309              </xsl:when>
     310              <xsl:when test="$token = 'S'">
     311                <xsl:if test="string-length(date:second-in-minute($date)) = 1">0</xsl:if>
     312                <xsl:value-of select="date:second-in-minute($date)"/>
     313              </xsl:when>
     314              <xsl:when test="$token = 'U'">
     315                <xsl:value-of select="date:week-in-year($date)"/>
     316              </xsl:when>
     317              <xsl:when test="$token = 'w'">
     318                <xsl:value-of select="date:day-in-week($date)"/>
     319              </xsl:when>
     320              <xsl:when test="$token = 'x'">
     321                <xsl:value-of select="date:date($date)"/>
     322              </xsl:when>
     323              <xsl:when test="$token = 'X'">
     324                <xsl:value-of select="date:time($date)"/>
     325              </xsl:when>
     326              <xsl:when test="$token = 'Y'">
     327                <xsl:value-of select="date:year($date)"/>
     328              </xsl:when>
     329              <xsl:otherwise>
     330                <xsl:value-of select="$token"/>
     331              </xsl:otherwise>
     332            </xsl:choose>
     333          </xsl:for-each>
    197334        </xsl:for-each>
    198       </xsl:for-each>
    199     </xsl:when>
    200     <xsl:otherwise>
    201       <xsl:message>
    202         Timestamp processing requires an XSLT processor with support
    203         for the EXSLT node-set() function.
    204       </xsl:message>
    205     </xsl:otherwise>
    206   </xsl:choose>
     335      </xsl:when>
     336      <xsl:otherwise>
     337        <xsl:message>
     338          Timestamp processing requires an XSLT processor with support
     339          for the EXSLT node-set() function.
     340        </xsl:message>
     341      </xsl:otherwise>
     342    </xsl:choose>
    207343  </xsl:if>
    208 
    209344</xsl:template>
    210345
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/refentry.xsl

    r3ca2208 r00b1e11  
    1717
    1818<!-- ==================================================================== -->
    19 <doc:reference xmlns="">
    20   <referenceinfo>
     19<doc:reference xmlns="" xml:id="refentry">
     20  <info>
     21    <title>Common » Refentry Metadata Template Reference</title>
    2122    <releaseinfo role="meta">
    2223      $Id$
    2324    </releaseinfo>
    24     <corpauthor>The DocBook Project</corpauthor>
    25     <copyright>
    26       <year>2005-2007</year>
    27       <holder>The DocBook Project</holder>
    28     </copyright>
    29   </referenceinfo>
    30   <title>Refentry Metadata-Gathering Template Reference</title>
    31 
    32   <partintro id="partintro">
     25  </info>
     26  <!-- * yes, partintro is a valid child of a reference... -->
     27  <partintro xml:id="partintro">
    3328    <title>Introduction</title>
    34 
    35     <para>This is technical reference documentation for the "refentry
    36     metadata gathering" templates in the DocBook XSL Stylesheets.</para>
    37 
     29    <para>This is technical reference documentation for the “refentry
     30    metadata” templates in the DocBook XSL Stylesheets.</para>
    3831    <para>This is not intended to be user documentation. It is provided
    39     for developers writing customization layers for the
    40     stylesheets.</para>
    41 
     32    for developers writing customization layers for the stylesheets.</para>
    4233    <note>
    4334      <para>Currently, only the manpages stylesheets make use of these
    4435      templates. They are, however, potentially useful elsewhere.</para>
    4536    </note>
    46 
    4737  </partintro>
    48 
    4938</doc:reference>
    5039
     
    5746    example, users view Unix man pages as, well, individual pages, not as
    5847    part of a "book" of some kind. Therefore, it is sometimes necessary to
    59     embed "context" information in output for each <sgmltag>refentry</sgmltag>.</para>
     48    embed "context" information in output for each <tag>refentry</tag>.</para>
    6049
    6150    <para>However, one problem is that different users mark up that
    6251    context information in different ways. Often (usually), the
    6352    context information is not actually part of the content of the
    64     <sgmltag>refentry</sgmltag> itself, but instead part of the content of a
    65     parent or ancestor element to the the <sgmltag>refentry</sgmltag>. And
     53    <tag>refentry</tag> itself, but instead part of the content of a
     54    parent or ancestor element to the the <tag>refentry</tag>. And
    6655    even then, DocBook provides a variety of elements that users might
    6756    potentially use to mark up the same kind of information. One user
    68     might use the <sgmltag>productnumber</sgmltag> element to mark up version
     57    might use the <tag>productnumber</tag> element to mark up version
    6958    information about a particular product, while another might use
    70     the <sgmltag>releaseinfo</sgmltag> element.</para>
     59    the <tag>releaseinfo</tag> element.</para>
    7160
    7261    <para>Taking all that in mind, the
    7362    <function>get.refentry.metadata</function> template tries to gather
    74     metadata from a <sgmltag>refentry</sgmltag> element and its ancestor
     63    metadata from a <tag>refentry</tag> element and its ancestor
    7564    elements in an intelligent and user-configurable way. The basic
    7665    mechanism used in the XPath expressions throughout this stylesheet
    7766    is to select the relevant metadata from the *info element that is
    78     closest to the actual <sgmltag>refentry</sgmltag>&#160;– either on the
    79     <sgmltag>refentry</sgmltag> itself, or on its nearest ancestor.</para>
     67    closest to the actual <tag>refentry</tag>&#160;– either on the
     68    <tag>refentry</tag> itself, or on its nearest ancestor.</para>
    8069
    8170    <note>
     
    9281        <term>refname</term>
    9382        <listitem>
    94           <para>The first <sgmltag>refname</sgmltag> in the refentry</para>
     83          <para>The first <tag>refname</tag> in the refentry</para>
    9584        </listitem>
    9685      </varlistentry>
     
    9887        <term>info</term>
    9988        <listitem>
    100           <para>A set of info nodes (from a <sgmltag>refentry</sgmltag>
     89          <para>A set of info nodes (from a <tag>refentry</tag>
    10190          element and its ancestors)</para>
    10291        </listitem>
     
    195184    <para>The <literal>man(7)</literal> man page describes this as "the
    196185    title of the man page (e.g., <literal>MAN</literal>). This differs
    197     from <sgmltag>refname</sgmltag> in that, if the <sgmltag>refentry</sgmltag> has a
    198     <sgmltag>refentrytitle</sgmltag>, we use that as the <sgmltag>title</sgmltag>;
    199     otherwise, we just use first <sgmltag>refname</sgmltag> in the first
    200     <sgmltag>refnamediv</sgmltag> in the source.</para>
     186    from <tag>refname</tag> in that, if the <tag>refentry</tag> has a
     187    <tag>refentrytitle</tag>, we use that as the <tag>title</tag>;
     188    otherwise, we just use first <tag>refname</tag> in the first
     189    <tag>refnamediv</tag> in the source.</para>
    201190  </refdescription>
    202191  <refparameter id="get.refentry.title-params">
     
    205194        <term>refname</term>
    206195        <listitem>
    207           <para>The first <sgmltag>refname</sgmltag> in the refentry</para>
     196          <para>The first <tag>refname</tag> in the refentry</para>
    208197        </listitem>
    209198      </varlistentry>
     
    211200  </refparameter>
    212201  <refreturn id="get.refentry.title-returns">
    213   <para>Returns a <sgmltag>title</sgmltag> node.</para></refreturn>
     202  <para>Returns a <tag>title</tag> node.</para></refreturn>
    214203</doc:template>
    215204<xsl:template name="get.refentry.title">
     
    233222    <para>The <literal>man(7)</literal> man page describes this as "the
    234223    section number the man page should be placed in (e.g.,
    235     <literal>7</literal>)". If we do not find a <sgmltag>manvolnum</sgmltag>
    236     specified in the source, and we find that the <sgmltag>refentry</sgmltag> is
     224    <literal>7</literal>)". If we do not find a <tag>manvolnum</tag>
     225    specified in the source, and we find that the <tag>refentry</tag> is
    237226    for a function, we use the section number <literal>3</literal>
    238227    ["Library calls (functions within program libraries)"]; otherwise, we
     
    245234        <term>refname</term>
    246235        <listitem>
    247           <para>The first <sgmltag>refname</sgmltag> in the refentry</para>
     236          <para>The first <tag>refname</tag> in the refentry</para>
    248237        </listitem>
    249238      </varlistentry>
     
    324313        <term>refname</term>
    325314        <listitem>
    326           <para>The first <sgmltag>refname</sgmltag> in the refentry</para>
     315          <para>The first <tag>refname</tag> in the refentry</para>
    327316        </listitem>
    328317      </varlistentry>
     
    330319        <term>info</term>
    331320        <listitem>
    332           <para>A set of info nodes (from a <sgmltag>refentry</sgmltag>
     321          <para>A set of info nodes (from a <tag>refentry</tag>
    333322          element and its ancestors)</para>
    334323        </listitem>
     
    343332  </refparameter>
    344333  <refreturn id="get.refentry.date-returns">
    345     <para>Returns a <sgmltag>date</sgmltag> node.</para>
     334    <para>Returns a <tag>date</tag> node.</para>
    346335  </refreturn>
    347336</doc:template>
     
    496485        <term>refname</term>
    497486        <listitem>
    498           <para>The first <sgmltag>refname</sgmltag> in the refentry</para>
     487          <para>The first <tag>refname</tag> in the refentry</para>
    499488        </listitem>
    500489      </varlistentry>
     
    502491        <term>info</term>
    503492        <listitem>
    504           <para>A set of info nodes (from a <sgmltag>refentry</sgmltag>
     493          <para>A set of info nodes (from a <tag>refentry</tag>
    505494          element and its ancestors)</para>
    506495        </listitem>
     
    516505  </refparameter>
    517506  <refreturn id="get.refentry.source-returns">
    518     <para>Returns a <sgmltag>source</sgmltag> node.</para>
     507    <para>Returns a <tag>source</tag> node.</para>
    519508  </refreturn>
    520509</doc:template>
     
    612601        <term>refname</term>
    613602        <listitem>
    614           <para>The first <sgmltag>refname</sgmltag> in the refentry</para>
     603          <para>The first <tag>refname</tag> in the refentry</para>
    615604        </listitem>
    616605      </varlistentry>
     
    618607        <term>info</term>
    619608        <listitem>
    620           <para>A set of info nodes (from a <sgmltag>refentry</sgmltag>
     609          <para>A set of info nodes (from a <tag>refentry</tag>
    621610          element and its ancestors)</para>
    622611        </listitem>
     
    796785        <term>refname</term>
    797786        <listitem>
    798           <para>The first <sgmltag>refname</sgmltag> in the refentry</para>
     787          <para>The first <tag>refname</tag> in the refentry</para>
    799788        </listitem>
    800789      </varlistentry>
     
    802791        <term>info</term>
    803792        <listitem>
    804           <para>A set of info nodes (from a <sgmltag>refentry</sgmltag>
     793          <para>A set of info nodes (from a <tag>refentry</tag>
    805794          element and its ancestors)</para>
    806795        </listitem>
     
    982971        <term>refname</term>
    983972        <listitem>
    984           <para>The first <sgmltag>refname</sgmltag> in the refentry</para>
     973          <para>The first <tag>refname</tag> in the refentry</para>
    985974        </listitem>
    986975      </varlistentry>
     
    988977        <term>info</term>
    989978        <listitem>
    990           <para>A set of info nodes (from a <sgmltag>refentry</sgmltag>
     979          <para>A set of info nodes (from a <tag>refentry</tag>
    991980          element and its ancestors)</para>
    992981        </listitem>
     
    1002991  </refparameter>
    1003992  <refreturn id="get.refentry.manual-returns">
    1004     <para>Returns a <sgmltag>manual</sgmltag> node.</para>
     993    <para>Returns a <tag>manual</tag> node.</para>
    1005994  </refreturn>
    1006995</doc:template>
     
    11411130  <refdescription id="get.refentry.metadata.prefs-desc">
    11421131    <para>The DocBook XSL stylesheets include several user-configurable
    1143     global stylesheet parameters for controlling <sgmltag>refentry</sgmltag>
     1132    global stylesheet parameters for controlling <tag>refentry</tag>
    11441133    metadata gathering. Those parameters are not read directly by the
    1145     other <sgmltag>refentry</sgmltag> metadata-gathering
     1134    other <tag>refentry</tag> metadata-gathering
    11461135    templates. Instead, they are read only by the
    11471136    <function>get.refentry.metadata.prefs</function> template,
    11481137    which assembles them into a structure that is then passed to
    1149     the other <sgmltag>refentry</sgmltag> metadata-gathering
     1138    the other <tag>refentry</tag> metadata-gathering
    11501139    templates.</para>
    11511140
    11521141    <para>So the, <function>get.refentry.metadata.prefs</function>
    11531142    template is the only interface to collecting stylesheet parameters for
    1154     controlling <sgmltag>refentry</sgmltag> metadata gathering.</para>
     1143    controlling <tag>refentry</tag> metadata gathering.</para>
    11551144  </refdescription>
    11561145  <refparameter id="get.refentry.metadata.prefs-params">
     
    11591148  </refparameter>
    11601149  <refreturn id="get.refentry.metadata.prefs-returns">
    1161     <para>Returns a <sgmltag>manual</sgmltag> node.</para>
     1150    <para>Returns a <tag>manual</tag> node.</para>
    11621151  </refreturn>
    11631152</doc:template>
     
    12241213        <term>refname</term>
    12251214        <listitem>
    1226           <para>The first <sgmltag>refname</sgmltag> in the refentry</para>
     1215          <para>The first <tag>refname</tag> in the refentry</para>
    12271216        </listitem>
    12281217      </varlistentry>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/table.xsl

    r3ca2208 r00b1e11  
    125125<refpurpose>Determine the column number in which a given entry occurs</refpurpose>
    126126<refdescription id="entry.colnum-desc">
    127 <para>If an <sgmltag>entry</sgmltag> has a
    128 <sgmltag class="attribute">colname</sgmltag> or
    129 <sgmltag class="attribute">namest</sgmltag> attribute, this template
     127<para>If an <tag>entry</tag> has a
     128<tag class="attribute">colname</tag> or
     129<tag class="attribute">namest</tag> attribute, this template
    130130will determine the number of the column in which the entry should occur.
    131 For other <sgmltag>entry</sgmltag>s, nothing is returned.</para>
     131For other <tag>entry</tag>s, nothing is returned.</para>
    132132</refdescription>
    133133<refparameter id="entry.colnum-params">
     
    135135<varlistentry><term>entry</term>
    136136<listitem>
    137 <para>The <sgmltag>entry</sgmltag>-element which is to be tested.</para>
     137<para>The <tag>entry</tag>-element which is to be tested.</para>
    138138</listitem>
    139139</varlistentry>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/utility.xsl

    r3ca2208 r00b1e11  
    44                xmlns:dyn="http://exslt.org/dynamic"
    55                xmlns:saxon="http://icl.com/saxon"
     6                xmlns:xlink="http://www.w3.org/1999/xlink"
    67                exclude-result-prefixes="doc dyn saxon"
    78                version='1.0'>
     
    1617
    1718     ******************************************************************** -->
    18 
    19 <doc:reference xmlns="">
    20 <referenceinfo>
    21 <releaseinfo role="meta">
    22 $Id$
    23 </releaseinfo>
    24 <corpauthor>The DocBook Project Development Team</corpauthor>
    25 <copyright><year>2007</year>
    26 <holder>The DocBook Project</holder>
    27 </copyright>
    28 </referenceinfo>
    29 <title>Utility Template Reference</title>
    30 
    31 <partintro id="partintro">
    32 <title>Introduction</title>
    33 
    34 <para>This is technical reference documentation for the
    35   miscellaneous utility templates in the DocBook XSL
    36   Stylesheets.</para>
    37 
    38 <note>
    39 <para>These templates are defined in a separate file from the set
    40   of “common” templates because some of the comment templates
    41   reference DocBook XSL stylesheet parameters, requiring the
    42   entire set of parameters to be imported/included in any
    43   stylesheet that imports/includes the common templates.</para>
    44 <para>The utility templates don’t import or include any DocBook
    45   XSL stylesheet parameters, so the utility templates can be used
    46   without importing the whole set of parameters.</para>
    47 </note>
    48 
    49 <para>The following documentation is not intended to be
    50   <quote>user</quote> documentation.  It is provided for developers
    51   writing customization layers for the stylesheets, and for anyone
    52   who's interested in <quote>how it works</quote>.</para>
    53 </partintro>
     19<doc:reference xmlns="" xml:id="utility">
     20  <info>
     21    <title>Common » Utility Template Reference</title>
     22    <releaseinfo role="meta">
     23      $Id$
     24    </releaseinfo>
     25  </info>
     26  <!-- * yes, partintro is a valid child of a reference... -->
     27  <partintro xml:id="partintro">
     28    <title>Introduction</title>
     29    <para>This is technical reference documentation for the
     30      miscellaneous utility templates in the DocBook XSL
     31      Stylesheets.</para>
     32    <note>
     33      <para>These templates are defined in a separate file from the set
     34        of “common” templates because some of the comment templates
     35        reference DocBook XSL stylesheet parameters, requiring the
     36        entire set of parameters to be imported/included in any
     37        stylesheet that imports/includes the common templates.</para>
     38      <para>The utility templates don’t import or include any DocBook
     39        XSL stylesheet parameters, so the utility templates can be used
     40        without importing the whole set of parameters.</para>
     41    </note>
     42    <para>This is not intended to be user documentation. It is
     43      provided for developers writing customization layers for the
     44      stylesheets.</para>
     45  </partintro>
    5446</doc:reference>
    5547
     
    6860  <refparameter id="log.message-params">
    6961    <variablelist>
    70       <varlistentry>
    71         <term>level</term>
     62      <varlistentry><term>level</term>
    7263        <listitem>
    7364          <para>Text to log/emit in the message-level field to
     
    7768        </listitem>
    7869      </varlistentry>
    79       <varlistentry>
    80         <term>source</term>
     70      <varlistentry><term>source</term>
    8171        <listitem>
    8272          <para>Text to log/emit in the source field to identify the
     
    9787        </listitem>
    9888      </varlistentry>
    99       <varlistentry>
    100         <term>context-desc</term>
     89      <varlistentry><term>context-desc</term>
    10190        <listitem>
    10291          <para>Text to log/emit in the context-description field to
     
    10493        </listitem>
    10594      </varlistentry>
    106       <varlistentry>
    107         <term>context-desc-field-length</term>
     95      <varlistentry><term>context-desc-field-length</term>
    10896        <listitem>
    10997          <para>Specifies length of the context-description field
     
    127115        </listitem>
    128116      </varlistentry>
    129       <varlistentry>
    130         <term>message</term>
     117      <varlistentry><term>message</term>
    131118        <listitem>
    132119          <para>Text to log/emit in the actual message field</para>
    133120        </listitem>
    134121      </varlistentry>
    135       <varlistentry>
    136         <term>message-field-length</term>
     122      <varlistentry><term>message-field-length</term>
    137123        <listitem>
    138124          <para>Specifies length of the message
     
    256242    <note>
    257243      <para>This function began as a copy of Nate Austin's
    258         <function>prepend-pad</function> function in the <ulink
    259           url="http://www.dpawson.co.uk/xsl/sect2/padding.html" >Padding
    260           Content</ulink> section of Dave Pawson's <ulink
    261           url="http://www.dpawson.co.uk/xsl/index.html" >XSLT
    262           FAQ</ulink>.</para>
     244        <function>prepend-pad</function> function in the <link
     245          xlink:href="http://www.dpawson.co.uk/xsl/sect2/padding.html" >Padding
     246          Content</link> section of Dave Pawson's <link
     247          xlink:href="http://www.dpawson.co.uk/xsl/index.html" >XSLT
     248          FAQ</link>.</para>
    263249    </note>
    264250  </refdescription>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/zh_cn.xml

    r3ca2208 r00b1e11  
    2020
    2121<!-- ******************************************************************** -->
     22<!-- In these files, % with a letter is used for a placeholder: -->
     23<!--   %t is the current element's title -->
     24<!--   %s is the current element's subtitle (if applicable)-->
     25<!--   %n is the current element's number label-->
     26<!--   %p is the current element's page number (if applicable)-->
     27<!-- ******************************************************************** -->
     28
    2229
    2330<l:gentext key="Abstract" text="摘芁"/>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/zh_tw.xml

    r3ca2208 r00b1e11  
    2020
    2121<!-- ******************************************************************** -->
     22<!-- In these files, % with a letter is used for a placeholder: -->
     23<!--   %t is the current element's title -->
     24<!--   %s is the current element's subtitle (if applicable)-->
     25<!--   %n is the current element's number label-->
     26<!--   %p is the current element's page number (if applicable)-->
     27<!-- ******************************************************************** -->
     28
    2229
    2330<l:gentext key="Abstract" text="摘芁"/>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/component.xsl

    r3ca2208 r00b1e11  
    714714  <xsl:param name="element" select="local-name(.)"/>
    715715  <xsl:param name="gentext-key" select="local-name(.)"/>
     716  <xsl:param name="language">
     717    <xsl:call-template name="l10n.language"/>
     718  </xsl:param>
     719
     720  <xsl:param name="format">
     721    <xsl:call-template name="page.number.format">
     722      <xsl:with-param name="master-reference" select="$master-reference"/>
     723      <xsl:with-param name="element" select="$element"/>
     724    </xsl:call-template>
     725  </xsl:param>
     726
     727  <xsl:param name="initial-page-number">
     728    <xsl:call-template name="initial.page.number">
     729      <xsl:with-param name="master-reference" select="$master-reference"/>
     730      <xsl:with-param name="element" select="$element"/>
     731    </xsl:call-template>
     732  </xsl:param>
     733
     734  <xsl:param name="force-page-count">
     735    <xsl:call-template name="force.page.count">
     736      <xsl:with-param name="master-reference" select="$master-reference"/>
     737      <xsl:with-param name="element" select="$element"/>
     738    </xsl:call-template>
     739  </xsl:param>
    716740
    717741  <fo:page-sequence hyphenate="{$hyphenate}"
    718742                    master-reference="{$master-reference}">
    719743    <xsl:attribute name="language">
    720       <xsl:call-template name="l10n.language"/>
     744      <xsl:value-of select="$language"/>
    721745    </xsl:attribute>
    722746    <xsl:attribute name="format">
    723       <xsl:call-template name="page.number.format">
    724         <xsl:with-param name="master-reference" select="$master-reference"/>
    725         <xsl:with-param name="element" select="$element"/>
    726       </xsl:call-template>
     747      <xsl:value-of select="$format"/>
    727748    </xsl:attribute>
    728749
    729750    <xsl:attribute name="initial-page-number">
    730       <xsl:call-template name="initial.page.number">
    731         <xsl:with-param name="master-reference" select="$master-reference"/>
    732         <xsl:with-param name="element" select="$element"/>
    733       </xsl:call-template>
     751      <xsl:value-of select="$initial-page-number"/>
    734752    </xsl:attribute>
    735753
    736754    <xsl:attribute name="force-page-count">
    737       <xsl:call-template name="force.page.count">
    738         <xsl:with-param name="master-reference" select="$master-reference"/>
    739         <xsl:with-param name="element" select="$element"/>
    740       </xsl:call-template>
     755      <xsl:value-of select="$force-page-count"/>
    741756    </xsl:attribute>
    742757
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/lists.xsl

    r3ca2208 r00b1e11  
    12721272<!-- ==================================================================== -->
    12731273
     1274<xsl:template name="orderedlist-starting-number">
     1275  <xsl:param name="list" select="."/>
     1276  <xsl:variable name="pi-start">
     1277    <xsl:call-template name="pi.dbfo_start">
     1278      <xsl:with-param name="node" select="$list"/>
     1279    </xsl:call-template>
     1280  </xsl:variable>
     1281  <xsl:call-template name="output-orderedlist-starting-number">
     1282    <xsl:with-param name="list" select="$list"/>
     1283    <xsl:with-param name="pi-start" select="$pi-start"/>
     1284  </xsl:call-template>
     1285</xsl:template>
     1286
    12741287</xsl:stylesheet>
    1275 
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/param.xsl

    r3ca2208 r00b1e11  
    11<?xml version="1.0" encoding="ASCII"?>
    2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
     2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" xmlns="http://docbook.org/ns/docbook" exclude-result-prefixes="src" version="1.0">
    33
    44<!-- This file is generated from param.xweb -->
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/pi.xsl

    r3ca2208 r00b1e11  
    11<?xml version='1.0'?>
    2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    3                 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
    4                 xmlns:fo="http://www.w3.org/1999/XSL/Format"
    5                 exclude-result-prefixes="doc"
    6                 version='1.0'>
     2<xsl:stylesheet
     3  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     4  xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
     5  xmlns:fo="http://www.w3.org/1999/XSL/Format"
     6  xmlns:xlink="http://www.w3.org/1999/xlink"
     7  exclude-result-prefixes="doc"
     8  version='1.0'>
    79
    810<!-- ********************************************************************
     
    1618     ******************************************************************** -->
    1719
    18 <doc:reference xmlns="">
    19 <referenceinfo>
    20 <releaseinfo role="meta">
    21 $Id$
    22 </releaseinfo>
    23 <authorgroup>
    24   <author>
    25     <orgname>The DocBook Project Development Team</orgname>
    26   </author>
    27 </authorgroup>
    28 <copyright>
    29   <year>2007</year>
    30   <holder>The DocBook Project</holder>
    31 </copyright>
    32 </referenceinfo>
    33 <title>FO Processing Instruction Reference</title>
    34 
    35 <partintro id="partintro">
    36 <title>Introduction</title>
    37 
    38 <para>This is generated reference documentation for all
    39   user-configurable processing instructions (PIs) in the DocBook
    40   XSL stylesheets for FO output.
    41   <note>
    42     <para>You add these PIs at particular points in a document to
    43       cause specific “exceptions” to formatting/output behavior. To
    44       make global changes in formatting/output behavior across an
    45       entire document, it’s better to do it by setting an
    46       appropriate stylesheet parameter (if there is one).</para>
    47   </note>
    48 </para>
    49 </partintro>
     20<doc:reference xmlns=""><info><title>FO Processing Instruction Reference</title>
     21    <releaseinfo role="meta">
     22      $Id$
     23    </releaseinfo>
     24  </info>
     25
     26  <partintro id="partintro">
     27    <title>Introduction</title>
     28
     29    <para>This is generated reference documentation for all
     30      user-specifiable processing instructions (PIs) in the DocBook
     31      XSL stylesheets for FO output.
     32      <note>
     33        <para>You add these PIs at particular points in a document to
     34          cause specific “exceptions” to formatting/output behavior. To
     35          make global changes in formatting/output behavior across an
     36          entire document, it’s better to do it by setting an
     37          appropriate stylesheet parameter (if there is one).</para>
     38      </note>
     39    </para>
     40  </partintro>
    5041</doc:reference>
    5142
     
    5344
    5445<doc:pi name="dbfo_background-color" xmlns="">
    55 <refpurpose>Sets background color for an image</refpurpose>
    56 <refdescription>
    57   <para>Use the <tag>dbfo background-color</tag> PI before or
    58     after an image (<tag>graphic</tag>, <tag>inlinegraphic</tag>,
    59     <tag>imagedata</tag>, or <tag>videodata</tag> element) as a
    60     sibling to the element, to set a background color for the
    61     image.</para>
    62 </refdescription>
     46  <refpurpose>Sets background color for an image</refpurpose>
     47  <refdescription>
     48    <para>Use the <tag>dbfo background-color</tag> PI before or
     49      after an image (<tag>graphic</tag>, <tag>inlinegraphic</tag>,
     50      <tag>imagedata</tag>, or <tag>videodata</tag> element) as a
     51      sibling to the element, to set a background color for the
     52      image.</para>
     53  </refdescription>
    6354  <refsynopsisdiv>
    6455    <synopsis><tag class="xmlpi">dbfo background-color="<replaceable>color</replaceable>"</tag></synopsis>
    6556  </refsynopsisdiv>
    66 <refparameter>
    67   <variablelist>
    68     <varlistentry><term>background-color="<replaceable>color</replaceable>"</term>
     57  <refparameter>
     58    <variablelist>
     59      <varlistentry><term>background-color="<replaceable>color</replaceable>"</term>
     60        <listitem>
     61          <para>An HTML color value</para>
     62        </listitem>
     63      </varlistentry>
     64    </variablelist>
     65  </refparameter>
     66  <refsee role="tcg">
     67    <para><link role="tcg"
     68        xlink:href="BGcolor.html"
     69        >Background color</link></para>
     70  </refsee>
     71</doc:pi>
     72<xsl:template name="pi.dbfo_background-color">
     73  <xsl:param name="node" select="."/>
     74  <xsl:call-template name="dbfo-attribute">
     75    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
     76    <xsl:with-param name="attribute" select="'background-color'"/>
     77  </xsl:call-template>
     78</xsl:template>
     79
     80<doc:pi name="dbfo_bgcolor" xmlns="">
     81  <refpurpose>Sets background color on a table row or table cell</refpurpose>
     82  <refdescription>
     83    <para>Use the <tag>dbfo bgcolor</tag> PI as child of a table row
     84      or cell to set a background color for that table row or cell.</para>
     85  </refdescription>
     86  <refsynopsisdiv>
     87    <synopsis><tag class="xmlpi">dbfo bgcolor="<replaceable>color</replaceable>"</tag></synopsis>
     88  </refsynopsisdiv>
     89  <refparameter>
     90    <variablelist>
     91      <varlistentry><term>bgcolor="<replaceable>color</replaceable>"</term>
     92        <listitem>
     93          <para>An HTML color value</para>
     94        </listitem>
     95      </varlistentry>
     96    </variablelist>
     97  </refparameter>
     98  <refsee role="tcg">
     99    <para><link role="tcg"
     100        xlink:href="BGtableColor.html#CellBGColor"
     101        >Cell background color</link></para>
     102  </refsee>
     103</doc:pi>
     104<xsl:template name="pi.dbfo_bgcolor">
     105  <xsl:param name="node" select="."/>
     106  <xsl:call-template name="dbfo-attribute">
     107    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
     108    <xsl:with-param name="attribute" select="'bgcolor'"/>
     109  </xsl:call-template>
     110</xsl:template>
     111
     112<doc:pi name="dbfo_float-type" xmlns="">
     113  <refpurpose>Specifies float behavior for a sidebar</refpurpose>
     114  <refdescription>
     115    <para>Use the <tag>dbfo float-type</tag> PI to specify the float
     116      behavior for a <tag>sidebar</tag> (to cause the sidebar to be
     117      displayed as a marginal note).</para>
     118  </refdescription>
     119  <refsynopsisdiv>
     120    <synopsis><tag class="xmlpi">dbfo float-type="margin.note"</tag></synopsis>
     121  </refsynopsisdiv>
     122  <refparameter>
     123    <variablelist>
     124      <varlistentry><term>float-type="margin.note"</term>
     125        <listitem>
     126          <para>Specifies that the <tag>sidebar</tag> should be
     127            displayed as a marginal note.</para>
     128        </listitem>
     129      </varlistentry>
     130    </variablelist>
     131  </refparameter>
     132  <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>
     137    </para>
     138  </refsee>
     139  <refsee role="tcg">
     140    <para><link xlink:href="SideFloats.html#SidebarFloats" >A sidebar as
     141        side float</link></para>
     142  </refsee>
     143</doc:pi>
     144<xsl:template name="pi.dbfo_float-type">
     145  <xsl:param name="node" select="."/>
     146  <xsl:call-template name="dbfo-attribute">
     147    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
     148    <xsl:with-param name="attribute" select="'float-type'"/>
     149  </xsl:call-template>
     150</xsl:template>
     151
     152<doc:pi name="dbfo_glossary-presentation" xmlns="">
     153  <refpurpose>Specifies presentation style for a glossary</refpurpose>
     154  <refdescription>
     155    <para>Use the <tag>dbfo glossary-presentation</tag> PI as a child of
     156      a <tag>glossary</tag> to control its presentation style.</para>
     157  </refdescription>
     158  <refsynopsisdiv>
     159    <synopsis><tag class="xmlpi">dbfo glossary-presentation="list"|"blocks"</tag></synopsis>
     160  </refsynopsisdiv>
     161  <refparameter>
     162    <variablelist>
     163      <varlistentry><term>glossary-presentation="list"</term>
     164        <listitem>
     165          <para>Displays the glossary as a list</para>
     166        </listitem>
     167      </varlistentry>
     168      <varlistentry><term>glossary-presentation="blocks"</term>
     169        <listitem>
     170          <para>Displays the glossary as blocks</para>
     171        </listitem>
     172      </varlistentry>
     173    </variablelist>
     174  </refparameter>
     175  <refsee role="params">
     176    <para><parameter>glossary.as.blocks</parameter></para>
     177  </refsee>
     178  <refsee role="tcg">
     179    <para><link xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary
     180        formatting in print</link></para>
     181  </refsee>
     182</doc:pi>
     183<xsl:template name="pi.dbfo_glossary-presentation">
     184  <xsl:param name="node" select="."/>
     185  <xsl:call-template name="dbfo-attribute">
     186    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
     187    <xsl:with-param name="attribute" select="'glossary-presentation'"/>
     188  </xsl:call-template>
     189</xsl:template>
     190
     191<doc:pi name="dbfo_glosslist-presentation" xmlns="">
     192  <refpurpose>Specifies presentation style for a glosslist</refpurpose>
     193  <refdescription>
     194    <para>Use the <tag>dbfo glosslist-presentation</tag> PI as a child of
     195      a <tag>glosslist</tag> to control its presentation style.</para>
     196  </refdescription>
     197  <refsynopsisdiv>
     198    <synopsis><tag class="xmlpi">dbfo glosslist-presentation="list"|"blocks"</tag></synopsis>
     199  </refsynopsisdiv>
     200  <refparameter>
     201    <variablelist>
     202      <varlistentry><term>glosslist-presentation="list"</term>
     203        <listitem>
     204          <para>Displays the glosslist as a list</para>
     205        </listitem>
     206      </varlistentry>
     207      <varlistentry><term>glosslist-presentation="blocks"</term>
     208        <listitem>
     209          <para>Displays the glosslist as blocks</para>
     210        </listitem>
     211      </varlistentry>
     212    </variablelist>
     213  </refparameter>
     214  <refsee role="params">
     215    <para><parameter>glosslist.as.blocks</parameter> </para>
     216  </refsee>
     217  <refsee role="tcg">
     218    <para><link xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary
     219        formatting in print</link></para>
     220  </refsee>
     221</doc:pi>
     222<xsl:template name="pi.dbfo_glosslist-presentation">
     223  <xsl:param name="node" select="."/>
     224  <xsl:call-template name="dbfo-attribute">
     225    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
     226    <xsl:with-param name="attribute" select="'glosslist-presentation'"/>
     227  </xsl:call-template>
     228</xsl:template>
     229
     230<doc:pi name="dbfo_glossterm-width" xmlns="">
     231  <refpurpose>Specifies the glossterm width for a glossary or
     232    glosslist</refpurpose>
     233  <refdescription>
     234    <para>Use the <tag>dbfo glossterm-width</tag> PI as a child of a
     235      <tag>glossary</tag> or <tag>glosslist</tag> to specify the
     236      width for output of <tag>glossterm</tag> instances in the
     237      output.</para>
     238  </refdescription>
     239  <refsynopsisdiv>
     240    <synopsis><tag class="xmlpi">dbfo glossterm-width="<replaceable>width</replaceable>"</tag></synopsis>
     241  </refsynopsisdiv>
     242  <refparameter>
     243    <variablelist>
     244      <varlistentry><term>glossterm-width="<replaceable>width</replaceable>"</term>
     245        <listitem>
     246          <para>Specifies the glossterm width (including units)</para>
     247        </listitem>
     248      </varlistentry>
     249    </variablelist>
     250  </refparameter>
     251  <refsee role="params">
     252    <para><parameter>glossterm.width</parameter>,
     253      <parameter>glossterm.separation</parameter>
     254    </para>
     255  </refsee>
     256  <refsee role="tcg">
     257    <para><link xlink:href="Glossaries.html#GlossaryFormatPrint" >Glossary
     258        formatting in print</link></para>
     259  </refsee>
     260</doc:pi>
     261<xsl:template name="pi.dbfo_glossterm-width">
     262  <xsl:param name="node" select="."/>
     263  <xsl:call-template name="dbfo-attribute">
     264    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
     265    <xsl:with-param name="attribute" select="'glossterm-width'"/>
     266  </xsl:call-template>
     267</xsl:template>
     268
     269<doc:pi name="dbfo_keep-together" xmlns="">
     270  <refpurpose>Specifies “keep” behavior for a table, example,
     271    figure, or equation</refpurpose>
     272  <refdescription>
     273    <para>Use the <tag>dbfo keep-together</tag> PI as a child of a
     274      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>
     278  </refdescription>
     279  <refsynopsisdiv>
     280    <synopsis><tag class="xmlpi">dbfo keep-together="auto"|"always"</tag></synopsis>
     281  </refsynopsisdiv>
     282  <refparameter>
     283    <variablelist>
     284      <varlistentry><term>keep-together="auto"</term>
     285        <listitem>
     286          <para>Enables the object to break across a page</para>
     287        </listitem>
     288      </varlistentry>
     289      <varlistentry><term>keep-together="always"</term>
     290        <listitem>
     291          <para>Prevents the object from breaking across a page (the
     292            default stylesheet behavior)</para>
     293        </listitem>
     294      </varlistentry>
     295    </variablelist>
     296  </refparameter>
     297  <refsee role="params">
     298    <para>formal.object.properties</para>
     299  </refsee>
     300  <refsee role="tcg">
     301    <para><link xlink:href="PageBreaking.html#KeepTogetherPI"
     302        >Keep-together processing instruction</link></para>
     303  </refsee>
     304</doc:pi>
     305<xsl:template name="pi.dbfo_keep-together">
     306  <xsl:param name="node" select="."/>
     307  <xsl:call-template name="dbfo-attribute">
     308    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
     309    <xsl:with-param name="attribute" select="'keep-together'"/>
     310  </xsl:call-template>
     311</xsl:template>
     312
     313<doc:pi name="dbfo_label-width" xmlns="">
     314  <refpurpose>Specifies the label width for a qandaset</refpurpose>
     315  <refdescription>
     316    <para>Use the <tag>dbfo label-width</tag> PI as a child of a
     317      <tag>qandaset</tag> to specify the width of labels.</para>
     318  </refdescription>
     319  <refsynopsisdiv>
     320    <synopsis><tag class="xmlpi">dbfo label-width="<replaceable>width</replaceable>"</tag></synopsis>
     321  </refsynopsisdiv>
     322  <refparameter>
     323    <variablelist>
     324      <varlistentry><term>label-width="<replaceable>width</replaceable>"</term>
     325        <listitem>
     326          <para>Specifies the label width (including units)</para>
     327        </listitem>
     328      </varlistentry>
     329    </variablelist>
     330  </refparameter>
     331  <refsee role="tcg">
     332    <para><link role="tcg"
     333        xlink:href="QandAformat.html"
     334        >Q and A formatting</link></para>
     335  </refsee>
     336</doc:pi>
     337<xsl:template name="pi.dbfo_label-width">
     338  <xsl:param name="node" select="."/>
     339  <xsl:call-template name="dbfo-attribute">
     340    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
     341    <xsl:with-param name="attribute" select="'label-width'"/>
     342  </xsl:call-template>
     343</xsl:template>
     344
     345<doc:pi name="dbfo_linenumbering.everyNth" xmlns="">
     346  <refpurpose>Specifies interval for lines numbers in verbatims</refpurpose>
     347  <refdescription>
     348    <para>Use the <tag>dbfo linenumbering.everyNth</tag> PI as a child
     349      of a “verbatim” element – <tag>programlisting</tag>,
     350      <tag>screen</tag>, <tag>synopsis</tag> — to specify
     351      the interval at which lines are numbered.</para>
     352  </refdescription>
     353  <refsynopsisdiv>
     354    <synopsis><tag class="xmlpi">dbfo linenumbering.everyNth="<replaceable>N</replaceable>"</tag></synopsis>
     355  </refsynopsisdiv>
     356  <refparameter>
     357    <variablelist>
     358      <varlistentry><term>linenumbering.everyNth="<replaceable>N</replaceable>"</term>
     359        <listitem>
     360          <para>Specifies numbering interval; a number is output
     361            before every <replaceable>N</replaceable>th line</para>
     362        </listitem>
     363      </varlistentry>
     364    </variablelist>
     365  </refparameter>
     366  <refsee role="params">
     367    <para><parameter>linenumbering.everyNth</parameter></para>
     368  </refsee>
     369  <refsee role="tcg">
     370    <para><link role="tcg"
     371        xlink:href="AnnotateListing.html#LineNumbering"
     372        >Line numbering</link></para>
     373  </refsee>
     374</doc:pi>
     375<xsl:template name="pi.dbfo_linenumbering.everyNth">
     376  <xsl:param name="node" select="."/>
     377  <xsl:call-template name="dbfo-attribute">
     378    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
     379    <xsl:with-param name="attribute" select="'linenumbering.everyNth'"/>
     380  </xsl:call-template>
     381</xsl:template>
     382
     383<doc:pi name="dbfo_linenumbering.separator" xmlns="">
     384  <refpurpose>Specifies separator text for line numbers in verbatims</refpurpose>
     385  <refdescription>
     386    <para>Use the <tag>dbfo linenumbering.separator</tag> PI as a child
     387      of a “verbatim” element – <tag>programlisting</tag>,
     388      <tag>screen</tag>, <tag>synopsis</tag> — to specify
     389      the separator text output between the line numbers and content.</para>
     390  </refdescription>
     391  <refsynopsisdiv>
     392    <synopsis><tag class="xmlpi">dbfo linenumbering.separator="<replaceable>text</replaceable>"</tag></synopsis>
     393  </refsynopsisdiv>
     394  <refparameter>
     395    <variablelist>
     396      <varlistentry><term>linenumbering.separator="<replaceable>text</replaceable>"</term>
     397        <listitem>
     398          <para>Specifies the text (zero or more characters)</para>
     399        </listitem>
     400      </varlistentry>
     401    </variablelist>
     402  </refparameter>
     403  <refsee role="params">
     404    <para><parameter>linenumbering.separator</parameter></para>
     405  </refsee>
     406  <refsee role="tcg">
     407    <para><link role="tcg"
     408        xlink:href="AnnotateListing.html#LineNumbering"
     409        >Line numbering</link></para>
     410  </refsee>
     411</doc:pi>
     412<xsl:template name="pi.dbfo_linenumbering.separator">
     413  <xsl:param name="node" select="."/>
     414  <xsl:call-template name="dbfo-attribute">
     415    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
     416    <xsl:with-param name="attribute" select="'linenumbering.separator'"/>
     417  </xsl:call-template>
     418</xsl:template>
     419
     420<doc:pi name="dbfo_linenumbering.width" xmlns="">
     421  <refpurpose>Specifies width for line numbers in verbatims</refpurpose>
     422  <refdescription>
     423    <para>Use the <tag>dbfo linenumbering.width</tag> PI as a child
     424      of a “verbatim” element – <tag>programlisting</tag>,
     425      <tag>screen</tag>, <tag>synopsis</tag> — to specify
     426      the width set aside for line numbers.</para>
     427  </refdescription>
     428  <refsynopsisdiv>
     429    <synopsis><tag class="xmlpi">dbfo linenumbering.width="<replaceable>width</replaceable>"</tag></synopsis>
     430  </refsynopsisdiv>
     431  <refparameter>
     432    <variablelist>
     433      <varlistentry><term>linenumbering.width="<replaceable>width</replaceable>"</term>
     434        <listitem>
     435          <para>Specifies the width (inluding units)</para>
     436        </listitem>
     437      </varlistentry>
     438    </variablelist>
     439  </refparameter>
     440  <refsee role="params">
     441    <para><parameter>linenumbering.width</parameter></para>
     442  </refsee>
     443  <refsee role="tcg">
     444    <para><link role="tcg"
     445        xlink:href="AnnotateListing.html#LineNumbering"
     446        >Line numbering</link></para>
     447  </refsee>
     448</doc:pi>
     449<xsl:template name="pi.dbfo_linenumbering.width">
     450  <xsl:param name="node" select="."/>
     451  <xsl:call-template name="dbfo-attribute">
     452    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
     453    <xsl:with-param name="attribute" select="'linenumbering.width'"/>
     454  </xsl:call-template>
     455</xsl:template>
     456
     457<doc:pi name="dbfo_list-presentation" xmlns="">
     458  <refpurpose>Specifies presentation style for a variablelist or
     459    segmentedlist</refpurpose>
     460  <refdescription>
     461    <para>Use the <tag>dbfo list-presentation</tag> PI as a child of
     462      a <tag>variablelist</tag> or <tag>segmentedlist</tag> to
     463      control the presentation style for the list (to cause it, for
     464      example, to be displayed as a table).</para>
     465  </refdescription>
     466  <refsynopsisdiv>
     467    <synopsis><tag class="xmlpi">dbfo list-presentation="list"|"blocks"|"table"</tag></synopsis>
     468  </refsynopsisdiv>
     469  <refparameter>
     470    <variablelist>
     471      <varlistentry><term>list-presentation="list"</term>
     472        <listitem>
     473          <para>Displays the list as a list</para>
     474        </listitem>
     475      </varlistentry>
     476      <varlistentry><term>list-presentation="blocks"</term>
     477        <listitem>
     478          <para>(<tag>variablelist</tag> only) Displays the list as blocks</para>
     479        </listitem>
     480      </varlistentry>
     481      <varlistentry><term>list-presentation="table"</term>
     482        <listitem>
     483          <para>(<tag>segmentedlist</tag> only) Displays the list as a table</para>
     484        </listitem>
     485      </varlistentry>
     486    </variablelist>
     487  </refparameter>
     488  <refsee role="params">
     489    <itemizedlist>
    69490      <listitem>
    70         <para>FIXME: A color value? [In hex, as a name, or what?]</para>
     491        <para><parameter>variablelist.as.blocks</parameter></para>
    71492      </listitem>
    72     </varlistentry>
    73   </variablelist>
    74 </refparameter>
    75 </doc:pi>
    76 <xsl:template name="pi.dbfo_background-color">
    77   <xsl:param name="node" select="."/>
    78   <xsl:call-template name="dbfo-attribute">
    79     <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
    80     <xsl:with-param name="attribute" select="'background-color'"/>
    81   </xsl:call-template>
    82 </xsl:template>
    83 
    84 <doc:pi name="dbfo_bgcolor" xmlns="">
    85 <refpurpose>Sets background color on an table row or table cell</refpurpose>
    86 <refdescription>
    87   <para>Use the <tag>dbfo bgcolor</tag> PI as child of a table row
    88     or cell to set a background color for that table row or cell.</para>
    89 </refdescription>
    90   <refsynopsisdiv>
    91     <synopsis><tag class="xmlpi">dbfo bgcolor="<replaceable>color</replaceable>"</tag></synopsis>
    92   </refsynopsisdiv>
    93 <refparameter>
    94   <variablelist>
    95     <varlistentry><term>bgcolor="<replaceable>color</replaceable>"</term>
    96493      <listitem>
    97         <para>FIXME: A color value? [In hex, as a name, or what?]</para>
     494        <para><parameter>variablelist.as.table</parameter></para>
    98495      </listitem>
    99     </varlistentry>
    100   </variablelist>
    101 </refparameter>
    102 </doc:pi>
    103 <xsl:template name="pi.dbfo_bgcolor">
    104   <xsl:param name="node" select="."/>
    105   <xsl:call-template name="dbfo-attribute">
    106     <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
    107     <xsl:with-param name="attribute" select="'bgcolor'"/>
    108   </xsl:call-template>
    109 </xsl:template>
    110 
    111 <doc:pi name="dbfo_float-type" xmlns="">
    112 <refpurpose>Specifies float behavior for a sidebar</refpurpose>
    113 <refdescription>
    114   <para>Use the <tag>dbfo float-type</tag> PI to specify the float
    115     behavior for a <tag>sidebar</tag> (to cause the sidebar to be
    116   displayed as a marginal note).</para>
    117 </refdescription>
    118   <refsynopsisdiv>
    119     <synopsis><tag class="xmlpi">dbfo float-type="margin.note"</tag></synopsis>
    120   </refsynopsisdiv>
    121 <refparameter>
    122   <variablelist>
    123     <varlistentry><term>float-type="margin.note"</term>
    124       <listitem>
    125         <para>Specifies that the <tag>sidebar</tag> should be
    126           displayed as a marginal note.</para>
    127       </listitem>
    128     </varlistentry>
    129   </variablelist>
    130 </refparameter>
    131 </doc:pi>
    132 <xsl:template name="pi.dbfo_float-type">
    133   <xsl:param name="node" select="."/>
    134   <xsl:call-template name="dbfo-attribute">
    135     <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
    136     <xsl:with-param name="attribute" select="'float-type'"/>
    137   </xsl:call-template>
    138 </xsl:template>
    139 
    140 <doc:pi name="dbfo_glossary-presentation" xmlns="">
    141 <refpurpose>Specifies presentation style for a glossary</refpurpose>
    142 <refdescription>
    143   <para>Use the <tag>dbfo glossary-presentation</tag> PI as a child of
    144     a <tag>glossary</tag> to control its presentation style.</para>
    145 </refdescription>
    146   <refsynopsisdiv>
    147     <synopsis><tag class="xmlpi">dbfo glossary-presentation="list"|"blocks"</tag></synopsis>
    148   </refsynopsisdiv>
    149 <refparameter>
    150   <variablelist>
    151     <varlistentry><term>glossary-presentation="list"</term>
    152       <listitem>
    153         <para>Displayed the glossary as a list</para>
    154       </listitem>
    155     </varlistentry>
    156     <varlistentry><term>glossary-presentation="blocks"</term>
    157       <listitem>
    158         <para>Displays the glossary as blocks</para>
    159       </listitem>
    160     </varlistentry>
    161   </variablelist>
    162 </refparameter>
    163 </doc:pi>
    164 <xsl:template name="pi.dbfo_glossary-presentation">
    165   <xsl:param name="node" select="."/>
    166   <xsl:call-template name="dbfo-attribute">
    167     <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
    168     <xsl:with-param name="attribute" select="'glossary-presentation'"/>
    169   </xsl:call-template>
    170 </xsl:template>
    171 
    172 <doc:pi name="dbfo_glosslist-presentation" xmlns="">
    173 <refpurpose>Specifies presentation style for a glosslist</refpurpose>
    174 <refdescription>
    175   <para>Use the <tag>dbfo glosslist-presentation</tag> PI as a child of
    176     a <tag>glosslist</tag> to control its presentation style.</para>
    177 </refdescription>
    178   <refsynopsisdiv>
    179     <synopsis><tag class="xmlpi">dbfo glosslist-presentation="list"|"blocks"</tag></synopsis>
    180   </refsynopsisdiv>
    181 <refparameter>
    182   <variablelist>
    183     <varlistentry><term>glosslist-presentation="list"</term>
    184       <listitem>
    185         <para>Displayed the glosslist as a list</para>
    186       </listitem>
    187     </varlistentry>
    188     <varlistentry><term>glosslist-presentation="blocks"</term>
    189       <listitem>
    190         <para>Displays the glosslist as blocks</para>
    191       </listitem>
    192     </varlistentry>
    193   </variablelist>
    194 </refparameter>
    195 </doc:pi>
    196 <xsl:template name="pi.dbfo_glosslist-presentation">
    197   <xsl:param name="node" select="."/>
    198   <xsl:call-template name="dbfo-attribute">
    199     <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
    200     <xsl:with-param name="attribute" select="'glosslist-presentation'"/>
    201   </xsl:call-template>
    202 </xsl:template>
    203 
    204 <doc:pi name="dbfo_glossterm-width" xmlns="">
    205 <refpurpose>Specifies the glossterm width for a glossary or
    206   glosslist</refpurpose>
    207 <refdescription>
    208   <para>Use the <tag>dbfo glossterm-width</tag> PI as a child of a
    209     <tag>glossary</tag> or <tag>glosslist</tag> to specify the
    210     width for output of <tag>glossterm</tag> instances in the
    211     output.</para>
    212 </refdescription>
    213   <refsynopsisdiv>
    214     <synopsis><tag class="xmlpi">dbfo glossterm-width="<replaceable>width</replaceable>"</tag></synopsis>
    215   </refsynopsisdiv>
    216 <refparameter>
    217   <variablelist>
    218     <varlistentry><term>glossterm-width="<replaceable>width</replaceable>"</term>
    219       <listitem>
    220         <para>FIXME: Specifies the glossterm width (in what units?)</para>
    221       </listitem>
    222     </varlistentry>
    223   </variablelist>
    224 </refparameter>
    225 </doc:pi>
    226 <xsl:template name="pi.dbfo_glossterm-width">
    227   <xsl:param name="node" select="."/>
    228   <xsl:call-template name="dbfo-attribute">
    229     <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
    230     <xsl:with-param name="attribute" select="'glossterm-width'"/>
    231   </xsl:call-template>
    232 </xsl:template>
    233 
    234 <doc:pi name="dbfo_keep-together" xmlns="">
    235 <refpurpose>Specifies “keep” behavior for a table, example,
    236   figure, or equation</refpurpose>
    237 <refdescription>
    238   <para>Use the <tag>dbfo keep-together</tag> PI as a child of a
    239     formal object (<tag>table</tag>, <tag>example</tag>,
    240     <tag>figure</tag>, or <tag>equation</tag>) or their informal
    241     equivalents) to specify “keep” behavior for the object (to
    242     allow the object to “break” across a page).</para>
    243 </refdescription>
    244   <refsynopsisdiv>
    245     <synopsis><tag class="xmlpi">dbfo keep-together="auto"|"always"</tag></synopsis>
    246   </refsynopsisdiv>
    247 <refparameter>
    248   <variablelist>
    249     <varlistentry><term>keep-together="auto"</term>
    250       <listitem>
    251         <para>Enables the object to break across a page</para>
    252       </listitem>
    253     </varlistentry>
    254     <varlistentry><term>keep-together="always"</term>
    255       <listitem>
    256         <para>Prevents the object from breaking across a page (the
    257           default stylesheet behavior)</para>
    258       </listitem>
    259     </varlistentry>
    260   </variablelist>
    261 </refparameter>
    262 </doc:pi>
    263 <xsl:template name="pi.dbfo_keep-together">
    264   <xsl:param name="node" select="."/>
    265   <xsl:call-template name="dbfo-attribute">
    266     <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
    267     <xsl:with-param name="attribute" select="'keep-together'"/>
    268   </xsl:call-template>
    269 </xsl:template>
    270 
    271 <doc:pi name="dbfo_label-width" xmlns="">
    272 <refpurpose>Specifies the label width for an itemizedlist,
    273   orderedlist, or qandaset</refpurpose>
    274 <refdescription>
    275   <para>Use the <tag>dbfo label-width</tag> PI as a child of an
    276     <tag>itemizedlist</tag>, <tag>orderedlist</tag>, or
    277     <tag>qandaset</tag> to specify the width of labels.</para>
    278 </refdescription>
    279   <refsynopsisdiv>
    280     <synopsis><tag class="xmlpi">dbfo label-width="<replaceable>width</replaceable>"</tag></synopsis>
    281   </refsynopsisdiv>
    282 <refparameter>
    283   <variablelist>
    284     <varlistentry><term>label-width="<replaceable>width</replaceable>"</term>
    285       <listitem>
    286         <para>FIXME: Specifies the label width (in what units?)</para>
    287       </listitem>
    288     </varlistentry>
    289   </variablelist>
    290 </refparameter>
    291 </doc:pi>
    292 <xsl:template name="pi.dbfo_label-width">
    293   <xsl:param name="node" select="."/>
    294   <xsl:call-template name="dbfo-attribute">
    295     <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
    296     <xsl:with-param name="attribute" select="'label-width'"/>
    297   </xsl:call-template>
    298 </xsl:template>
    299 
    300 <doc:pi name="dbfo_linenumbering.everyNth" xmlns="">
    301 <refpurpose>Specifies the interval at which lines are numbered
    302   output of verbatim environments</refpurpose>
    303 <refdescription>
    304   <para>Use the <tag>dbfo linenumbering.everyNth</tag> PI as a child
    305     of a “verbatim” element – <tag>programlisting</tag>,
    306     <tag>screen</tag>, <tag>synopsis</tag> — to specify
    307     the interval at which lines are numbered.</para>
    308 </refdescription>
    309   <refsynopsisdiv>
    310     <synopsis><tag class="xmlpi">dbfo linenumbering.everyNth="<replaceable>N</replaceable>"</tag></synopsis>
    311   </refsynopsisdiv>
    312 <refparameter>
    313   <variablelist>
    314     <varlistentry><term>linenumbering.everyNth="<replaceable>N</replaceable>"</term>
    315       <listitem>
    316         <para>FIXME: Specifies numbering interval; a number is
    317           output before every <replaceable>N</replaceable>th line</para>
    318       </listitem>
    319     </varlistentry>
    320   </variablelist>
    321 </refparameter>
    322 </doc:pi>
    323 <xsl:template name="pi.dbfo_linenumbering.everyNth">
    324   <xsl:param name="node" select="."/>
    325   <xsl:call-template name="dbfo-attribute">
    326     <xsl:with-param name="pis"
    327       select="$node/processing-instruction('dbfo')"/>
    328     <xsl:with-param name="attribute" select="'linenumbering.everyNth'"/>
    329   </xsl:call-template>
    330 </xsl:template>
    331 
    332 <doc:pi name="dbfo_linenumbering.separator" xmlns="">
    333 <refpurpose>Specifies the separator text used between line numbers
    334   and content in output of verbatim environments</refpurpose>
    335 <refdescription>
    336   <para>Use the <tag>dbfo linenumbering.separator</tag> PI as a child
    337     of a “verbatim” element – <tag>programlisting</tag>,
    338     <tag>screen</tag>, <tag>synopsis</tag> — to specify
    339     the separator text output between the line numbers and content.</para>
    340 </refdescription>
    341   <refsynopsisdiv>
    342     <synopsis><tag class="xmlpi">dbfo linenumbering.separator="<replaceable>text</replaceable>"</tag></synopsis>
    343   </refsynopsisdiv>
    344 <refparameter>
    345   <variablelist>
    346     <varlistentry><term>linenumbering.separator="<replaceable>text</replaceable>"</term>
    347       <listitem>
    348         <para>FIXME: Specifies the text (zero or more characters)</para>
    349       </listitem>
    350     </varlistentry>
    351   </variablelist>
    352 </refparameter>
    353 </doc:pi>
    354 <xsl:template name="pi.dbfo_linenumbering.separator">
    355   <xsl:param name="node" select="."/>
    356   <xsl:call-template name="dbfo-attribute">
    357     <xsl:with-param name="pis"
    358       select="$node/processing-instruction('dbfo')"/>
    359     <xsl:with-param name="attribute" select="'linenumbering.separator'"/>
    360   </xsl:call-template>
    361 </xsl:template>
    362 
    363 <doc:pi name="dbfo_linenumbering.width" xmlns="">
    364 <refpurpose>Specifies the width set aside for line numbers in
    365   output of verbatim environments</refpurpose>
    366 <refdescription>
    367   <para>Use the <tag>dbfo linenumbering.width</tag> PI as a child
    368     of a “verbatim” element – <tag>programlisting</tag>,
    369     <tag>screen</tag>, <tag>synopsis</tag> — to specify
    370     the width set aside for line numbers.</para>
    371 </refdescription>
    372   <refsynopsisdiv>
    373     <synopsis><tag class="xmlpi">dbfo linenumbering.width="<replaceable>width</replaceable>"</tag></synopsis>
    374   </refsynopsisdiv>
    375 <refparameter>
    376   <variablelist>
    377     <varlistentry><term>linenumbering.width="<replaceable>width</replaceable>"</term>
    378       <listitem>
    379         <para>FIXME: Specifies the width (in what units?)</para>
    380       </listitem>
    381     </varlistentry>
    382   </variablelist>
    383 </refparameter>
    384 </doc:pi>
    385 <xsl:template name="pi.dbfo_linenumbering.width">
    386   <xsl:param name="node" select="."/>
    387   <xsl:call-template name="dbfo-attribute">
    388     <xsl:with-param name="pis"
    389       select="$node/processing-instruction('dbfo')"/>
    390     <xsl:with-param name="attribute" select="'linenumbering.width'"/>
     496    </itemizedlist>
     497  </refsee>
     498  <refsee role="tcg">
     499    <para><link role="tcg"
     500        xlink:href="Variablelists.html#ListIndents"
     501        >Variable list formatting in print</link></para>
     502  </refsee>
     503</doc:pi>
     504<xsl:template name="pi.dbfo_list-presentation">
     505  <xsl:param name="node" select="."/>
     506  <xsl:call-template name="dbfo-attribute">
     507    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
     508    <xsl:with-param name="attribute" select="'list-presentation'"/>
    391509  </xsl:call-template>
    392510</xsl:template>
    393511
    394512<doc:pi name="dbfo_list-width" xmlns="">
    395 <refpurpose>Specifies the width of a horizontal simplelist</refpurpose>
    396 <refdescription>
    397   <para>Use the <tag>dbfo list-width</tag> PI as a child of a
    398     <tag>simplelist</tag> whose <tag class="attribute">class</tag>
    399     value is <literal>horizontal</literal>, to specify the width
    400     of the <tag>simplelist</tag>.</para>
    401 </refdescription>
     513  <refpurpose>Specifies the width of a horizontal simplelist</refpurpose>
     514  <refdescription>
     515    <para>Use the <tag>dbfo list-width</tag> PI as a child of a
     516      <tag>simplelist</tag> whose <tag class="attribute">class</tag>
     517      value is <literal>horizontal</literal>, to specify the width
     518      of the <tag>simplelist</tag>.</para>
     519  </refdescription>
    402520  <refsynopsisdiv>
    403521    <synopsis><tag class="xmlpi">dbfo list-width="<replaceable>width</replaceable>"</tag></synopsis>
    404522  </refsynopsisdiv>
    405 <refparameter>
    406   <variablelist>
    407     <varlistentry><term>list-width="<replaceable>width</replaceable>"</term>
    408       <listitem>
    409         <para>FIXME: Specifies the <tag>simplelist</tag> width (in what units?)</para>
    410       </listitem>
    411     </varlistentry>
    412   </variablelist>
    413 </refparameter>
     523  <refparameter>
     524    <variablelist>
     525      <varlistentry><term>list-width="<replaceable>width</replaceable>"</term>
     526        <listitem>
     527          <para>Specifies the <tag>simplelist</tag> width (including units)</para>
     528        </listitem>
     529      </varlistentry>
     530    </variablelist>
     531  </refparameter>
    414532</doc:pi>
    415533<xsl:template name="pi.dbfo_list-width">
     
    421539</xsl:template>
    422540
    423 <doc:pi name="dbfo_list-presentation" xmlns="">
    424 <refpurpose>Specifies presentation style for a variablelist or
    425   segmentedlist</refpurpose>
    426 <refdescription>
    427   <para>Use the <tag>dbfo list-presentation</tag> PI as a child of
    428     a <tag>variablelist</tag> or <tag>segmentedlist</tag> to
    429     control the presentation style for the list (to cause it, for
    430     example, to be displayed as a table).</para>
    431 </refdescription>
    432   <refsynopsisdiv>
    433     <synopsis><tag class="xmlpi">dbfo list-presentation="list"|"blocks"|"table"</tag></synopsis>
    434   </refsynopsisdiv>
    435 <refparameter>
    436   <variablelist>
    437     <varlistentry><term>list-presentation="list"</term>
    438       <listitem>
    439         <para>Displayed the list as a list</para>
    440       </listitem>
    441     </varlistentry>
    442     <varlistentry><term>list-presentation="blocks"</term>
    443       <listitem>
    444         <para>(<tag>variablelist</tag> only) Displays the list as blocks</para>
    445       </listitem>
    446     </varlistentry>
    447     <varlistentry><term>list-presentation="table"</term>
    448       <listitem>
    449         <para>(<tag>segmentedlist</tag> only) Displays the list as a table</para>
    450       </listitem>
    451     </varlistentry>
    452   </variablelist>
    453 </refparameter>
    454 </doc:pi>
    455 <xsl:template name="pi.dbfo_list-presentation">
    456   <xsl:param name="node" select="."/>
    457   <xsl:call-template name="dbfo-attribute">
    458     <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
    459     <xsl:with-param name="attribute" select="'list-presentation'"/>
    460   </xsl:call-template>
    461 </xsl:template>
    462 
    463541<doc:pi name="dbfo_orientation" xmlns="">
    464 <refpurpose>Specifies the orientation for table row or cell</refpurpose>
    465 <refdescription>
    466   <para>Use the <tag>dbfo orientation</tag> PI as a child of an
    467     <tag>table</tag> row or cell to specify the orientation
    468     (rotation) for the row or cell.</para>
    469 </refdescription>
     542  <refpurpose>Specifies the orientation for table row or cell</refpurpose>
     543  <refdescription>
     544    <para>Use the <tag>dbfo orientation</tag> PI as a child of an
     545      <tag>table</tag> row or cell to specify the orientation
     546      (rotation) for the row or cell.</para>
     547  </refdescription>
    470548  <refsynopsisdiv>
    471549    <synopsis><tag class="xmlpi">dbfo orientation="0"|"90"|"180"|"270"|"-90"|"-180"|"-270"</tag></synopsis>
    472550  </refsynopsisdiv>
    473 <refparameter>
    474   <variablelist>
    475     <varlistentry><term>orientation="0"|"90"|"180"|"270"|"-90"|"-180"|"-270"</term>
    476       <listitem>
    477         <para>Specifies the number of degrees by which the cell or
    478           row is rotated</para>
    479       </listitem>
    480     </varlistentry>
    481   </variablelist>
    482 </refparameter>
     551  <refparameter>
     552    <variablelist>
     553      <varlistentry><term>orientation="0"|"90"|"180"|"270"|"-90"|"-180"|"-270"</term>
     554        <listitem>
     555          <para>Specifies the number of degrees by which the cell or
     556            row is rotated</para>
     557        </listitem>
     558      </varlistentry>
     559    </variablelist>
     560  </refparameter>
    483561</doc:pi>
    484562<xsl:template name="pi.dbfo_orientation">
     
    491569
    492570<doc:pi name="dbfo_pgwide" xmlns="">
    493   <refpurpose>Species whether an <tag>equation</tag> or
    494     <tag>example</tag> should rendered across the full width of a
    495     page</refpurpose>
    496 <refdescription>
    497   <para>Use the <tag>dbfo pgwide</tag> PI as a child of an
    498     <tag>equation</tag> or <tag>example</tag> to specify that the
    499     content should rendered across the full width of the page.</para>
    500 </refdescription>
     571  <refpurpose>Specifies if an <tag>equation</tag> or <tag>example</tag> goes across full page width</refpurpose>
     572  <refdescription>
     573    <para>Use the <tag>dbfo pgwide</tag> PI as a child of an
     574      <tag>equation</tag> or <tag>example</tag> to specify that the
     575      content should rendered across the full width of the page.</para>
     576  </refdescription>
    501577  <refsynopsisdiv>
    502578    <synopsis><tag class="xmlpi">dbfo pgwide="0"|"1"</tag></synopsis>
    503579  </refsynopsisdiv>
    504 <refparameter>
    505   <variablelist>
    506     <varlistentry><term>pgwide="0"</term>
    507       <listitem>
    508         <para>If zero, the content is rendered across the current
    509         text flow</para>
    510       </listitem>
    511     </varlistentry>
    512     <varlistentry><term>pgwide="1"</term>
    513       <listitem>
    514         <para>If <code>1</code> (or any non-zero value), the
    515           content is rendered across the full width of the page</para>
    516       </listitem>
    517     </varlistentry>
    518   </variablelist>
    519 </refparameter>
     580  <refparameter>
     581    <variablelist>
     582      <varlistentry><term>pgwide="0"</term>
     583        <listitem>
     584          <para>If zero, the content is rendered across the current
     585            text flow</para>
     586        </listitem>
     587      </varlistentry>
     588      <varlistentry><term>pgwide="1"</term>
     589        <listitem>
     590          <para>If <code>1</code> (or any non-zero value), the
     591            content is rendered across the full width of the page</para>
     592        </listitem>
     593      </varlistentry>
     594    </variablelist>
     595  </refparameter>
     596  <refsee role="params">
     597    <para><parameter>pgwide.properties</parameter></para>
     598  </refsee>
    520599</doc:pi>
    521600<xsl:template name="pi.dbfo_pgwide">
     
    530609  <refpurpose>Specifies the width for a table <tag>entry</tag> or
    531610    <tag>row</tag></refpurpose>
    532 <refdescription>
    533   <para>Use the <tag>dbfo rotated-width</tag> PI as a child of an
    534     <tag>entry</tag> or <tag>row</tag> instance to specify the
    535     width of that the <tag>entry</tag> or <tag>row</tag>; or
    536     use it higher up in table to cause the width to be inherited
    537     recursively down.</para>
    538 </refdescription>
     611  <refdescription>
     612    <para>Use the <tag>dbfo rotated-width</tag> PI as a child of an
     613      <tag>entry</tag> or <tag>row</tag> instance to specify the
     614      width of that the <tag>entry</tag> or <tag>row</tag>; or
     615      use it higher up in table to cause the width to be inherited
     616      recursively down.</para>
     617  </refdescription>
    539618  <refsynopsisdiv>
    540619    <synopsis><tag class="xmlpi">dbfo rotated-width="<replaceable>width</replaceable>"</tag></synopsis>
    541620  </refsynopsisdiv>
    542 <refparameter>
    543   <variablelist>
    544     <varlistentry><term>rotated-width="<replaceable>width</replaceable>"</term>
    545       <listitem>
    546         <para>FIXME: Specifies the width of a row or cell (in what units?)</para>
    547       </listitem>
    548     </varlistentry>
    549   </variablelist>
    550 </refparameter>
     621  <refparameter>
     622    <variablelist>
     623      <varlistentry><term>rotated-width="<replaceable>width</replaceable>"</term>
     624        <listitem>
     625          <para>Specifies the width of a row or cell (including units)</para>
     626        </listitem>
     627      </varlistentry>
     628    </variablelist>
     629  </refparameter>
    551630</doc:pi>
    552631<xsl:template name="pi.dbfo_rotated-width">
    553632  <xsl:param name="node" select="."/>
    554633  <xsl:call-template name="dbfo-attribute">
    555     <xsl:with-param name="pis"
    556       select="$node/processing-instruction('dbfo')"/>
     634    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
    557635    <xsl:with-param name="attribute" select="'rotated-width'"/>
    558636  </xsl:call-template>
     
    560638
    561639<doc:pi name="dbfo_sidebar-width" xmlns="">
    562 <refpurpose>Specifies the width of a sidebar</refpurpose>
    563 <refdescription>
    564   <para>Use the <tag>dbfo sidebar-width</tag> PI as a child of a
    565     <tag>sidebar</tag> to specify the width of the sidebar.</para>
    566 </refdescription>
     640  <refpurpose>Specifies the width of a sidebar</refpurpose>
     641  <refdescription>
     642    <para>Use the <tag>dbfo sidebar-width</tag> PI as a child of a
     643      <tag>sidebar</tag> to specify the width of the sidebar.</para>
     644  </refdescription>
    567645  <refsynopsisdiv>
    568646    <synopsis><tag class="xmlpi">dbfo sidebar-width="<replaceable>width</replaceable>"</tag></synopsis>
    569647  </refsynopsisdiv>
    570 <refparameter>
    571   <variablelist>
    572     <varlistentry><term>sidebar-width="<replaceable>width</replaceable>"</term>
    573       <listitem>
    574         <para>FIXME: Specifies the <tag>sidebar</tag> width (in what units?)</para>
    575       </listitem>
    576     </varlistentry>
    577   </variablelist>
    578 </refparameter>
     648  <refparameter>
     649    <variablelist>
     650      <varlistentry><term>sidebar-width="<replaceable>width</replaceable>"</term>
     651        <listitem>
     652          <para>Specifies the <tag>sidebar</tag> width (including units)</para>
     653        </listitem>
     654      </varlistentry>
     655    </variablelist>
     656  </refparameter>
     657  <refsee role="params">
     658    <para><parameter>sidebar.float.type parameter</parameter>,
     659      <parameter>sidebar.float.width parameter</parameter>,
     660      <parameter>sidebar.properties attribute-set</parameter>,
     661      <parameter>sidebar.title.properties</parameter>
     662    </para>
     663  </refsee>
     664  <refsee role="tcg">
     665    <para><link xlink:href="SideFloats.html#SidebarFloats" >A sidebar as
     666        side float</link></para>
     667  </refsee>
    579668</doc:pi>
    580669<xsl:template name="pi.dbfo_sidebar-width">
     
    586675</xsl:template>
    587676
     677<doc:pi name="dbfo_start" xmlns="">
     678  <refpurpose>(obsolete) Sets the starting number on an ordered list</refpurpose>
     679  <refdescription>
     680    <para><emphasis>This PI is obsolete</emphasis>. The intent of
     681      it was to provide a means for setting a specific starting
     682      number for an ordered list. Instead of this PI, set a value
     683      for the <literal>override</literal> attribute on the first
     684      <tag>listitem</tag> in the list; that will have the same
     685      effect as what this PI was intended for.</para>
     686  </refdescription>
     687  <refsynopsisdiv>
     688    <synopsis><tag class="xmlpi">dbfo start="<replaceable>character</replaceable>"</tag></synopsis>
     689  </refsynopsisdiv>
     690  <refparameter>
     691    <variablelist>
     692      <varlistentry><term>start="<replaceable>character</replaceable>"</term>
     693        <listitem>
     694          <para>Specifies the character to use as the starting
     695            number; use 0-9, a-z, A-Z, or lowercase or uppercase
     696            Roman numerals</para>
     697        </listitem>
     698      </varlistentry>
     699    </variablelist>
     700  </refparameter>
     701  <refsee role="tcg">
     702    <para><link role="tcg"
     703        xlink:href="Orderedlists.html#ListStartNum"
     704        >List starting number</link></para>
     705  </refsee>
     706</doc:pi>
     707<xsl:template name="pi.dbfo_start">
     708  <xsl:param name="node" select="."/>
     709  <xsl:call-template name="pi-attribute">
     710    <xsl:with-param name="pis" select="$node/processing-instruction('dbfo')"/>
     711    <xsl:with-param name="attribute" select="'start'"/>
     712  </xsl:call-template>
     713</xsl:template>
     714
    588715<doc:pi name="dbfo_table-width" xmlns="">
    589 <refpurpose>Specifies the width for a table or for revhistory
    590   output</refpurpose>
    591 <refdescription>
    592   <para>Use the <tag>dbfo table-width</tag> PI as a child of a
    593     <tag>table</tag> or <tag>revhistory</tag> instance (which is
    594     rendered as a table in output) to specify the width of the
    595     table in output.</para>
    596 </refdescription>
     716  <refpurpose>Specifies the width for a table or for revhistory
     717    output</refpurpose>
     718  <refdescription>
     719    <para>Use the <tag>dbfo table-width</tag> PI as a child or
     720      sibling of a <tag>table</tag>, or as a child of an
     721      <tag>informaltable</tag>, <tag>entrybl</tag>, or
     722      <tag>revhistory</tag> instance (which is rendered as a table
     723      in output) to specify the width of the table in output.</para>
     724  </refdescription>
    597725  <refsynopsisdiv>
    598726    <synopsis><tag class="xmlpi">dbfo table-width="<replaceable>width</replaceable>"</tag></synopsis>
    599727  </refsynopsisdiv>
    600 <refparameter>
    601   <variablelist>
    602     <varlistentry><term>table-width="<replaceable>width</replaceable>"</term>
    603       <listitem>
    604         <para>FIXME: Specifies the table width (in what units?)</para>
    605       </listitem>
    606     </varlistentry>
    607   </variablelist>
    608 </refparameter>
     728  <refparameter>
     729    <variablelist>
     730      <varlistentry><term>table-width="<replaceable>width</replaceable>"</term>
     731        <listitem>
     732          <para>Specifies the table width (including units or as a percentage)</para>
     733        </listitem>
     734      </varlistentry>
     735    </variablelist>
     736  </refparameter>
     737  <refsee role="tcg">
     738    <para><link role="tcg"
     739        xlink:href="Tables.html#TableWidth"
     740        >Table width</link></para>
     741  </refsee>
    609742</doc:pi>
    610743<xsl:template name="pi.dbfo_table-width">
     
    617750
    618751<doc:pi name="dbfo_term-width" xmlns="">
    619 <refpurpose>Specifies the term width for a variablelist</refpurpose>
    620 <refdescription>
    621   <para>Use the <tag>dbfo term-width</tag> PI as a child of a
    622     <tag>variablelist</tag> to specify the width for
    623     <tag>term</tag> output.</para>
    624 </refdescription>
     752  <refpurpose>Specifies the term width for a variablelist</refpurpose>
     753  <refdescription>
     754    <para>Use the <tag>dbfo term-width</tag> PI as a child of a
     755      <tag>variablelist</tag> to specify the width for
     756      <tag>term</tag> output.</para>
     757  </refdescription>
    625758  <refsynopsisdiv>
    626759    <synopsis><tag class="xmlpi">dbfo term-width="<replaceable>width</replaceable>"</tag></synopsis>
    627760  </refsynopsisdiv>
    628 <refparameter>
    629   <variablelist>
    630     <varlistentry><term>term-width="<replaceable>width</replaceable>"</term>
    631       <listitem>
    632         <para>FIXME: Specifies the term width (in what units?)</para>
    633       </listitem>
    634     </varlistentry>
    635   </variablelist>
    636 </refparameter>
     761  <refparameter>
     762    <variablelist>
     763      <varlistentry><term>term-width="<replaceable>width</replaceable>"</term>
     764        <listitem>
     765          <para>Specifies the term width (including units)</para>
     766        </listitem>
     767      </varlistentry>
     768    </variablelist>
     769  </refparameter>
     770  <refsee role="tcg">
     771    <para><link role="tcg"
     772        xlink:href="Variablelists.html#ListIndents"
     773        >Variable list formatting in print</link></para>
     774  </refsee>
    637775</doc:pi>
    638776<xsl:template name="pi.dbfo_term-width">
     
    645783
    646784<doc:pi name="dbfo_toc" xmlns="">
    647 <refpurpose>Species whether a TOC should be generated for a qandaset</refpurpose>
    648 <refdescription>
    649   <para>Use the <tag>dbfo toc</tag> PI as a child of a
    650     <tag>jandaset</tag> to specify whether a table of contents
    651     (TOC) is generated for the <tag>qandaset</tag>.</para>
    652 </refdescription>
     785  <refpurpose>Species whether a TOC should be generated for a qandaset</refpurpose>
     786  <refdescription>
     787    <para>Use the <tag>dbfo toc</tag> PI as a child of a
     788      <tag>qandaset</tag> to specify whether a table of contents
     789      (TOC) is generated for the <tag>qandaset</tag>.</para>
     790  </refdescription>
    653791  <refsynopsisdiv>
    654792    <synopsis><tag class="xmlpi">dbfo toc="0"|"1"</tag></synopsis>
    655793  </refsynopsisdiv>
    656 <refparameter>
    657   <variablelist>
    658     <varlistentry><term>toc="0"</term>
    659       <listitem>
    660         <para>If zero, no TOC is generated</para>
    661       </listitem>
    662     </varlistentry>
    663     <varlistentry><term>toc="1"</term>
    664       <listitem>
    665         <para>If <code>1</code> (or any non-zero value),
    666           a TOC is generated</para>
    667       </listitem>
    668     </varlistentry>
    669   </variablelist>
    670 </refparameter>
     794  <refparameter>
     795    <variablelist>
     796      <varlistentry><term>toc="0"</term>
     797        <listitem>
     798          <para>If zero, no TOC is generated</para>
     799        </listitem>
     800      </varlistentry>
     801      <varlistentry><term>toc="1"</term>
     802        <listitem>
     803          <para>If <code>1</code> (or any non-zero value),
     804            a TOC is generated</para>
     805        </listitem>
     806      </varlistentry>
     807    </variablelist>
     808  </refparameter>
     809  <refsee role="tcg">
     810    <para><link role="tcg"
     811        xlink:href="QandAtoc.html"
     812        >Q and A list of questions</link>,
     813      <link role="tcg"
     814        xlink:href="QandAformat.html"
     815        >Q and A formatting</link></para>
     816  </refsee>
    671817</doc:pi>
    672818<xsl:template name="pi.dbfo_toc">
     
    678824</xsl:template>
    679825
    680 <!-- ==================================================================== -->
    681 
    682826<doc:pi name="dbfo-need" xmlns="">
    683 <refpurpose>Specify a need for space (a kind of soft page break)</refpurpose>
    684 <refdescription>
    685   <para>A “need” is a request for space on a page.  If the
    686     requested space is not available, the page breaks and the
    687     content that follows the need request appears on the next
    688     page. If the requested space is available, then the request is
    689     ignored.</para>
    690 </refdescription>
    691   <refsynopsisdiv>
    692     <synopsis><tag class="xmlpi">dbfo-need height="<replaceable>n</replaceable>"</tag></synopsis>
    693     <synopsis><tag class="xmlpi">dbfo-need space-before="<replaceable>n</replaceable>"</tag></synopsis>
    694   </refsynopsisdiv>
    695 <refparameter>
    696   <variablelist>
    697     <varlistentry><term>height="<replaceable>n</replaceable>"</term>
    698       <listitem>
    699         <para>FIXME: the amount of height(?) needed? In what units? pt?.</para>
    700       </listitem>
    701     </varlistentry>
    702     <varlistentry><term>space-before"<replaceable>n</replaceable>"</term>
    703       <listitem>
    704         <para>FIXME: the amount of space needed before the
    705           [something]? In what units? pt?.</para>
    706       </listitem>
    707     </varlistentry>
    708   </variablelist>
    709 </refparameter>
     827  <refpurpose>Specify a need for space (a kind of soft page break)</refpurpose>
     828  <refdescription>
     829    <para>A “need” is a request for space on a page.  If the
     830      requested space is not available, the page breaks and the
     831      content that follows the need request appears on the next
     832      page. If the requested space is available, then no page break
     833      is inserted.</para>
     834  </refdescription>
     835  <refsynopsisdiv>
     836    <synopsis><tag class="xmlpi">dbfo-need height="<replaceable>n</replaceable>" [space-before="<replaceable>n</replaceable>"]</tag></synopsis>
     837  </refsynopsisdiv>
     838  <refparameter>
     839    <variablelist>
     840      <varlistentry><term>height="<replaceable>n</replaceable>"</term>
     841        <listitem>
     842          <para>The amount of height needed (including units)</para>
     843        </listitem>
     844      </varlistentry>
     845      <varlistentry><term>space-before"<replaceable>n</replaceable>"</term>
     846        <listitem>
     847          <para>The amount of extra vertical space to add (including units)</para>
     848        </listitem>
     849      </varlistentry>
     850    </variablelist>
     851  </refparameter>
     852  <refsee role="tcg">
     853    <para><link role="tcg"
     854        xlink:href="PageBreaking.html#SoftPageBreaks"
     855        >Soft page breaks</link></para>
     856  </refsee>
    710857</doc:pi>
    711858<xsl:template name="pi.dbfo-need">
     
    744891    </xsl:when>
    745892    <xsl:when test="$pi-before != '' and
    746                     not(following-sibling::listitem) and
    747                     not(following-sibling::step)">
     893      not(following-sibling::listitem) and
     894      not(following-sibling::step)">
    748895      <fo:block space-after="0pt" space-before="{$pi-before}">
    749896        <xsl:copy-of select="$spacer"/>
     
    752899    <xsl:when test="following-sibling::para">
    753900      <fo:block space-after="0pt"
    754                 xsl:use-attribute-sets="normal.para.spacing">
     901        xsl:use-attribute-sets="normal.para.spacing">
    755902        <xsl:copy-of select="$spacer"/>
    756903      </fo:block>
    757904    </xsl:when>
    758905    <xsl:when test="following-sibling::table or
    759                     following-sibling::figure or
    760                     following-sibling::example or
    761                     following-sibling::equation">
     906      following-sibling::figure or
     907      following-sibling::example or
     908      following-sibling::equation">
    762909      <fo:block space-after="0pt"
    763                 xsl:use-attribute-sets="formal.object.properties">
     910        xsl:use-attribute-sets="formal.object.properties">
    764911        <xsl:copy-of select="$spacer"/>
    765912      </fo:block>
    766913    </xsl:when>
    767914    <xsl:when test="following-sibling::informaltable or
    768                     following-sibling::informalfigure or
    769                     following-sibling::informalexample or
    770                     following-sibling::informalequation">
     915      following-sibling::informalfigure or
     916      following-sibling::informalexample or
     917      following-sibling::informalequation">
    771918      <fo:block space-after="0pt"
    772                 xsl:use-attribute-sets="informal.object.properties">
     919        xsl:use-attribute-sets="informal.object.properties">
    773920        <xsl:copy-of select="$spacer"/>
    774921      </fo:block>
    775922    </xsl:when>
    776923    <xsl:when test="following-sibling::itemizedlist or
    777                     following-sibling::orderedlist or
    778                     following-sibling::variablelist or
    779                     following-sibling::simplelist">
     924      following-sibling::orderedlist or
     925      following-sibling::variablelist or
     926      following-sibling::simplelist">
    780927      <fo:block space-after="0pt"
    781                 xsl:use-attribute-sets="informal.object.properties">
     928        xsl:use-attribute-sets="informal.object.properties">
    782929        <xsl:copy-of select="$spacer"/>
    783930      </fo:block>
    784931    </xsl:when>
    785932    <xsl:when test="following-sibling::listitem or
    786                     following-sibling::step">
     933      following-sibling::step">
    787934      <fo:list-item space-after="0pt"
    788                 xsl:use-attribute-sets="informal.object.properties">
     935        xsl:use-attribute-sets="informal.object.properties">
    789936        <fo:list-item-label/>
    790937        <fo:list-item-body start-indent="0pt" end-indent="0pt">
     
    794941    </xsl:when>
    795942    <xsl:when test="following-sibling::sect1 or
    796                     following-sibling::sect2 or
    797                     following-sibling::sect3 or
    798                     following-sibling::sect4 or
    799                     following-sibling::sect5 or
    800                     following-sibling::section">
     943      following-sibling::sect2 or
     944      following-sibling::sect3 or
     945      following-sibling::sect4 or
     946      following-sibling::sect5 or
     947      following-sibling::section">
    801948      <fo:block space-after="0pt"
    802                 xsl:use-attribute-sets="section.title.properties">
     949        xsl:use-attribute-sets="section.title.properties">
    803950        <xsl:copy-of select="$spacer"/>
    804951      </fo:block>
     
    816963    </xsl:when>
    817964    <xsl:when test="following-sibling::listitem or
    818                     following-sibling::step">
     965      following-sibling::step">
    819966      <fo:list-item space-before.precedence="force"
    820                 space-before="-{$height}"
    821                 space-after="0pt"
    822                 space-after.precedence="force">
     967        space-before="-{$height}"
     968        space-after="0pt"
     969        space-after.precedence="force">
    823970        <fo:list-item-label/>
    824971        <fo:list-item-body start-indent="0pt" end-indent="0pt"/>
     
    827974    <xsl:otherwise>
    828975      <fo:block space-before.precedence="force"
    829                 space-before="-{$height}"
    830                 space-after="0pt"
    831                 space-after.precedence="force">
     976        space-before="-{$height}"
     977        space-after="0pt"
     978        space-after.precedence="force">
    832979      </fo:block>
    833980    </xsl:otherwise>
     
    849996
    850997<!-- ==================================================================== -->
     998
    851999<xsl:template match="processing-instruction()">
    8521000</xsl:template>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/table.xsl

    r3ca2208 r00b1e11  
    2323     ******************************************************************** -->
    2424
    25 <doc:reference xmlns="">
    26 <referenceinfo>
    27 <releaseinfo role="meta">
    28 $Id$
    29 </releaseinfo>
    30 <author><surname>Walsh</surname>
    31 <firstname>Norman</firstname></author>
    32 <copyright><year>1999</year><year>2000</year>
    33 <holder>Norman Walsh</holder>
    34 </copyright>
    35 </referenceinfo>
    36 <title>Formatting Object Table Reference</title>
    37 
    38 <partintro id="partintro">
    39 <title>Introduction</title>
    40 
    41 <para>This is technical reference documentation for the FO
    42 table-processing templates in the DocBook XSL Stylesheets.</para>
    43 
    44 <para>This is not intended to be <quote>user</quote> documentation.
    45 It is provided for developers writing customization layers for the
    46 stylesheets, and for anyone who's interested in <quote>how it
    47 works</quote>.</para>
    48 
    49 </partintro>
     25<doc:reference xmlns="" xml:id="table-templates">
     26  <?dbhtml dir="fo"?>
     27  <info>
     28    <title>Formatting Object Table Reference</title>
     29    <releaseinfo role="meta">
     30      $Id$
     31    </releaseinfo>
     32  </info>
     33  <partintro xml:id="partintro">
     34    <title>Introduction</title>
     35    <para>This is technical reference documentation for the FO
     36      table-processing templates in the DocBook XSL Stylesheets.</para>
     37    <para>This is not intended to be user documentation.  It is
     38      provided for developers writing customization layers for the
     39      stylesheets.</para>
     40  </partintro>
    5041</doc:reference>
    5142
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/verbatim.xsl

    r3ca2208 r00b1e11  
    351351<xsl:template match="node()|@*" mode="hyphenate.verbatim">
    352352  <xsl:copy>
    353     <xsl:apply-templates select="node()|@*" mode="hyphenate.verbatim"/>
     353    <xsl:copy-of select="@*"/>
     354    <xsl:apply-templates mode="hyphenate.verbatim"/>
    354355  </xsl:copy>
    355356</xsl:template>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/xref.xsl

    r3ca2208 r00b1e11  
    719719</xsl:template>
    720720
     721<xsl:template match="area|areaset" mode="xref-to">
     722  <xsl:param name="referrer"/>
     723  <xsl:param name="xrefstyle"/>
     724
     725  <xsl:call-template name="callout-bug">
     726    <xsl:with-param name="conum">
     727      <xsl:apply-templates select="." mode="conumber"/>
     728    </xsl:with-param>
     729  </xsl:call-template>
     730</xsl:template>
     731
    721732<xsl:template match="book" mode="xref-to">
    722733  <xsl:param name="referrer"/>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/lib/lib.xsl

    r3ca2208 r00b1e11  
    1 <?xml version="1.0"?>
    2 
     1<?xml version="1.0" encoding="ASCII"?>
    32<!-- ********************************************************************
    43     $Id$
     
    1211
    1312     ******************************************************************** -->
    14 
    15 
    16 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" xmlns:dyn="http://exslt.org/dynamic" xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" exclude-result-prefixes="src" version="1.0">
     13<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" xmlns:ssb="http://sideshowbarker.net/ns" xmlns:dyn="http://exslt.org/dynamic" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" xmlns="http://docbook.org/ns/docbook" exclude-result-prefixes="src" version="1.0">
    1714
    1815<xsl:template name="dot.count">
     
    313310  </xsl:choose>
    314311</xsl:template>
    315 
    316312  <xsl:template name="str.tokenize.keep.delimiters">
    317313    <xsl:param name="string" select="''"/>
     
    320316      <xsl:when test="not($string)"/>
    321317      <xsl:when test="not($delimiters)">
    322         <xsl:call-template name="str.tokenize.keep.delimiters-characters">
    323           <xsl:with-param name="string" select="$string"/>
    324         </xsl:call-template>
     318        <xsl:call-template name="str.tokenize.keep.delimiters-characters">
     319          <xsl:with-param name="string" select="$string"/>
     320        </xsl:call-template>
    325321      </xsl:when>
    326322      <xsl:otherwise>
    327         <xsl:call-template name="str.tokenize.keep.delimiters-delimiters">
    328           <xsl:with-param name="string" select="$string"/>
    329           <xsl:with-param name="delimiters" select="$delimiters"/>
    330         </xsl:call-template>
     323        <xsl:call-template name="str.tokenize.keep.delimiters-delimiters">
     324          <xsl:with-param name="string" select="$string"/>
     325          <xsl:with-param name="delimiters" select="$delimiters"/>
     326        </xsl:call-template>
    331327      </xsl:otherwise>
    332328    </xsl:choose>
    333329  </xsl:template>
    334  
    335330  <xsl:template name="str.tokenize.keep.delimiters-characters">
    336331    <xsl:param name="string"/>
    337332    <xsl:if test="$string">
    338       <token><xsl:value-of select="substring($string, 1, 1)"/></token>
     333      <ssb:token><xsl:value-of select="substring($string, 1, 1)"/></ssb:token>
    339334      <xsl:call-template name="str.tokenize.keep.delimiters-characters">
    340         <xsl:with-param name="string" select="substring($string, 2)"/>
     335        <xsl:with-param name="string" select="substring($string, 2)"/>
    341336      </xsl:call-template>
    342337    </xsl:if>
    343338  </xsl:template>
    344  
    345339  <xsl:template name="str.tokenize.keep.delimiters-delimiters">
    346340    <xsl:param name="string"/>
     
    349343    <xsl:choose>
    350344      <xsl:when test="not($delimiter)">
    351         <token><xsl:value-of select="$string"/></token>
     345        <ssb:token><xsl:value-of select="$string"/></ssb:token>
    352346      </xsl:when>
    353347      <xsl:when test="contains($string, $delimiter)">
    354         <xsl:if test="not(starts-with($string, $delimiter))">
    355           <xsl:call-template name="str.tokenize.keep.delimiters-delimiters">
    356             <xsl:with-param name="string" select="substring-before($string, $delimiter)"/>
    357             <xsl:with-param name="delimiters" select="substring($delimiters, 2)"/>
    358           </xsl:call-template>
    359         </xsl:if>
    360         <!-- output each delimiter -->
    361         <xsl:value-of select="$delimiter"/>
    362         <xsl:call-template name="str.tokenize.keep.delimiters-delimiters">
    363           <xsl:with-param name="string" select="substring-after($string, $delimiter)"/>
    364           <xsl:with-param name="delimiters" select="$delimiters"/>
    365         </xsl:call-template>
     348        <xsl:if test="not(starts-with($string, $delimiter))">
     349          <xsl:call-template name="str.tokenize.keep.delimiters-delimiters">
     350            <xsl:with-param name="string" select="substring-before($string, $delimiter)"/>
     351            <xsl:with-param name="delimiters" select="substring($delimiters, 2)"/>
     352          </xsl:call-template>
     353        </xsl:if>
     354        <!-- output each delimiter -->
     355        <xsl:value-of select="$delimiter"/>
     356        <xsl:call-template name="str.tokenize.keep.delimiters-delimiters">
     357          <xsl:with-param name="string" select="substring-after($string, $delimiter)"/>
     358          <xsl:with-param name="delimiters" select="$delimiters"/>
     359        </xsl:call-template>
    366360      </xsl:when>
    367361      <xsl:otherwise>
    368         <xsl:call-template name="str.tokenize.keep.delimiters-delimiters">
    369           <xsl:with-param name="string" select="$string"/>
    370           <xsl:with-param name="delimiters" select="substring($delimiters, 2)"/>
    371         </xsl:call-template>
     362        <xsl:call-template name="str.tokenize.keep.delimiters-delimiters">
     363          <xsl:with-param name="string" select="$string"/>
     364          <xsl:with-param name="delimiters" select="substring($delimiters, 2)"/>
     365        </xsl:call-template>
    372366      </xsl:otherwise>
    373367    </xsl:choose>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/admon.xsl

    r3ca2208 r00b1e11  
    114114    </xsl:if>
    115115
    116     <h3 class="title">
    117       <xsl:call-template name="anchor"/>
    118       <xsl:if test="$admon.textlabel != 0 or title or info/title">
     116    <xsl:if test="$admon.textlabel != 0 or title or info/title">
     117      <h3 class="title">
     118        <xsl:call-template name="anchor"/>
    119119        <xsl:apply-templates select="." mode="object.title.markup"/>
    120       </xsl:if>
    121     </h3>
     120      </h3>
     121    </xsl:if>
    122122
    123123    <xsl:apply-templates/>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/autotoc.xsl

    r3ca2208 r00b1e11  
    310310      <xsl:call-template name="href.target">
    311311        <xsl:with-param name="context" select="$toc-context"/>
     312        <xsl:with-param name="toc-context" select="$toc-context"/>
    312313      </xsl:call-template>
    313314    </xsl:attribute>
     
    483484      <a>
    484485        <xsl:attribute name="href">
    485           <xsl:call-template name="href.target"/>
     486          <xsl:call-template name="href.target">
     487            <xsl:with-param name="toc-context" select="$toc-context"/>
     488          </xsl:call-template>
    486489        </xsl:attribute>
    487490        <xsl:copy-of select="$title"/>
     
    506509      <xsl:call-template name="href.target">
    507510        <xsl:with-param name="object" select=".."/>
     511        <xsl:with-param name="toc-context" select="$toc-context"/>
    508512      </xsl:call-template>
    509513    </xsl:attribute>
     
    533537          <xsl:call-template name="href.target">
    534538            <xsl:with-param name="object" select="$node"/>
     539            <xsl:with-param name="toc-context" select="$toc-context"/>
    535540          </xsl:call-template>
    536541        </xsl:attribute>
     
    603608    <a>
    604609      <xsl:attribute name="href">
    605         <xsl:call-template name="href.target"/>
     610        <xsl:call-template name="href.target">
     611          <xsl:with-param name="toc-context" select="$toc-context"/>
     612        </xsl:call-template>
    606613      </xsl:attribute>
    607614      <xsl:apply-templates select="." mode="titleabbrev.markup"/>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/chunk-code.xsl

    r3ca2208 r00b1e11  
    6565
    6666  <xsl:variable name="dbhtml-filename">
    67     <xsl:call-template name="dbhtml-filename"/>
     67    <xsl:call-template name="pi.dbhtml_filename"/>
    6868  </xsl:variable>
    6969
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/chunk-common.xsl

    r3ca2208 r00b1e11  
    738738  <xsl:param name="context" select="."/>
    739739  <xsl:param name="object" select="."/>
    740 
     740  <xsl:param name="toc-context" select="."/>
     741  <!-- * If $toc-context contains some node other than the current node, -->
     742  <!-- * it means we're processing a link in a TOC. In that case, to -->
     743  <!-- * ensure the link will work correctly, we need to take a look at -->
     744  <!-- * where the file containing the TOC will get written, and where -->
     745  <!-- * the file that's being linked to will get written. -->
     746  <xsl:variable name="toc-output-dir">
     747    <xsl:if test="not($toc-context = .)">
     748      <!-- * Get the $toc-context node and all its ancestors, look down -->
     749      <!-- * through them to find the last/closest node to the -->
     750      <!-- * toc-context node that has a "dbhtml dir" PI, and get the -->
     751      <!-- * directory name from that. That's the name of the directory -->
     752      <!-- * to which the current toc output file will get written. -->
     753      <xsl:call-template name="dbhtml-dir">
     754        <xsl:with-param name="context" select="$toc-context/ancestor-or-self::*[processing-instruction('dbhtml')[contains(.,'dir')]][last()]"/>
     755      </xsl:call-template>
     756    </xsl:if>
     757  </xsl:variable>
     758  <xsl:variable name="linked-file-output-dir">
     759    <xsl:if test="not($toc-context = .)">
     760      <!-- * Get the current node and all its ancestors, look down -->
     761      <!-- * through them to find the last/closest node to the current -->
     762      <!-- * node that has a "dbhtml dir" PI, and get the directory name -->
     763      <!-- * from that.  That's the name of the directory to which the -->
     764      <!-- * file that's being linked to will get written. -->
     765      <xsl:call-template name="dbhtml-dir">
     766        <xsl:with-param name="context" select="ancestor-or-self::*[processing-instruction('dbhtml')[contains(.,'dir')]][last()]"/>
     767      </xsl:call-template>
     768    </xsl:if>
     769  </xsl:variable>
    741770  <xsl:variable name="href.to.uri">
    742771    <xsl:call-template name="href.target.uri">
     
    744773    </xsl:call-template>
    745774  </xsl:variable>
    746 
    747775  <xsl:variable name="href.from.uri">
    748776    <xsl:call-template name="href.target.uri">
     
    750778    </xsl:call-template>
    751779  </xsl:variable>
    752  
    753   <!--
    754   <xsl:message>href.to.uri: <xsl:value-of select="$href.to.uri"/></xsl:message>
    755   <xsl:message>href.from.uri: <xsl:value-of select="$href.from.uri"/></xsl:message>
    756   -->
    757 
     780  <!-- * <xsl:message>toc-context: <xsl:value-of select="local-name($toc-context)"/></xsl:message> -->
     781  <!-- * <xsl:message>node: <xsl:value-of select="local-name(.)"/></xsl:message> -->
     782  <!-- * <xsl:message>context: <xsl:value-of select="local-name($context)"/></xsl:message> -->
     783  <!-- * <xsl:message>object: <xsl:value-of select="local-name($object)"/></xsl:message> -->
     784  <!-- * <xsl:message>toc-output-dir: <xsl:value-of select="$toc-output-dir"/></xsl:message> -->
     785  <!-- * <xsl:message>linked-file-output-dir: <xsl:value-of select="$linked-file-output-dir"/></xsl:message> -->
     786  <!-- * <xsl:message>href.to.uri: <xsl:value-of select="$href.to.uri"/></xsl:message> -->
     787  <!-- * <xsl:message>href.from.uri: <xsl:value-of select="$href.from.uri"/></xsl:message> -->
    758788  <xsl:variable name="href.to">
    759     <xsl:call-template name="trim.common.uri.paths">
    760       <xsl:with-param name="uriA" select="$href.to.uri"/>
    761       <xsl:with-param name="uriB" select="$href.from.uri"/>
    762       <xsl:with-param name="return" select="'A'"/>
    763     </xsl:call-template>
    764   </xsl:variable>
    765 
     789    <xsl:choose>
     790      <!-- * 2007-07-19, MikeSmith: Added the following conditional to -->
     791      <!-- * deal with a problem case for links in TOCs. It checks to see -->
     792      <!-- * if the output dir that a TOC will get written to is -->
     793      <!-- * different from the output dir of the file being linked to. -->
     794      <!-- * If it is different, we do not call trim.common.uri.paths. -->
     795      <!-- *  -->
     796      <!-- * Reason why I added that conditional is: I ran into a bug for -->
     797      <!-- * this case: -->
     798      <!-- *  -->
     799      <!-- * 1. we are chunking into separate dirs -->
     800      <!-- *  -->
     801      <!-- * 2. output for the TOC is written to current dir, but the file -->
     802      <!-- *    being linked to is written to some subdir "foo". -->
     803      <!-- *  -->
     804      <!-- * For that case, links to that file in that TOC did not show -->
     805      <!-- * the correct path - they omitted the "foo". -->
     806      <!-- *  -->
     807      <!-- * The cause of that problem was that the trim.common.uri.paths -->
     808      <!-- * template[1] was being called under all conditions. But it's -->
     809      <!-- * apparent that we don't want to call trim.common.uri.paths in -->
     810      <!-- * the case where a linked file is being written to a different -->
     811      <!-- * directory than the TOC that contains the link, because doing -->
     812      <!-- * so will cause a necessary (not redundant) directory-name -->
     813      <!-- * part of the link to get inadvertently trimmed, resulting in -->
     814      <!-- * a broken link to that file. Thus, added the conditional. -->
     815      <!-- *  -->
     816      <!-- * [1] The purpose of the trim.common.uri.paths template is to -->
     817      <!-- * prevent cases where, if we didn't call it, we end up with -->
     818      <!-- * unnecessary, redundant directory names getting output; for -->
     819      <!-- * example, "foo/foo/refname.html". -->
     820      <xsl:when test="not($toc-output-dir = $linked-file-output-dir)">
     821        <xsl:value-of select="$href.to.uri"/>
     822      </xsl:when>
     823      <xsl:otherwise>
     824        <xsl:call-template name="trim.common.uri.paths">
     825          <xsl:with-param name="uriA" select="$href.to.uri"/>
     826          <xsl:with-param name="uriB" select="$href.from.uri"/>
     827          <xsl:with-param name="return" select="'A'"/>
     828        </xsl:call-template>
     829      </xsl:otherwise>
     830    </xsl:choose>
     831  </xsl:variable>
    766832  <xsl:variable name="href.from">
    767833    <xsl:call-template name="trim.common.uri.paths">
     
    771837    </xsl:call-template>
    772838  </xsl:variable>
    773 
    774839  <xsl:variable name="depth">
    775840    <xsl:call-template name="count.uri.path.depth">
     
    777842    </xsl:call-template>
    778843  </xsl:variable>
    779 
    780844  <xsl:variable name="href">
    781845    <xsl:call-template name="copy-string">
     
    785849    <xsl:value-of select="$href.to"/>
    786850  </xsl:variable>
    787 
    788851  <!--
    789852  <xsl:message>
     
    800863  </xsl:message>
    801864  -->
    802 
    803865  <xsl:value-of select="$href"/>
    804866</xsl:template>
     
    14451507</xsl:template>
    14461508
     1509<!-- ==================================================================== -->
     1510
     1511<xsl:template name="dbhtml-dir">
     1512  <xsl:param name="context" select="."/>
     1513  <!-- directories are now inherited from previous levels -->
     1514  <xsl:variable name="ppath">
     1515    <xsl:if test="$context/parent::*">
     1516      <xsl:call-template name="dbhtml-dir">
     1517        <xsl:with-param name="context" select="$context/parent::*"/>
     1518      </xsl:call-template>
     1519    </xsl:if>
     1520  </xsl:variable>
     1521  <xsl:variable name="path">
     1522    <xsl:call-template name="pi.dbhtml_dir">
     1523      <xsl:with-param name="node" select="$context"/>
     1524    </xsl:call-template>
     1525  </xsl:variable>
     1526  <xsl:choose>
     1527    <xsl:when test="$path = ''">
     1528      <xsl:if test="$ppath != ''">
     1529        <xsl:value-of select="$ppath"/>
     1530      </xsl:if>
     1531    </xsl:when>
     1532    <xsl:otherwise>
     1533      <xsl:if test="$ppath != ''">
     1534        <xsl:value-of select="$ppath"/>
     1535        <xsl:if test="substring($ppath, string-length($ppath), 1) != '/'">
     1536          <xsl:text>/</xsl:text>
     1537        </xsl:if>
     1538      </xsl:if>
     1539      <xsl:value-of select="$path"/>
     1540      <xsl:text>/</xsl:text>
     1541    </xsl:otherwise>
     1542  </xsl:choose>
     1543</xsl:template>
     1544
    14471545</xsl:stylesheet>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/chunktoc.xsl

    r3ca2208 r00b1e11  
    5050  <xsl:variable name="chunk" select="$chunks//tocentry[@linkend=$id]"/>
    5151  <xsl:variable name="filename">
    52     <xsl:call-template name="dbhtml-filename">
    53       <xsl:with-param name="pis" select="$chunk/processing-instruction('dbhtml')"/>
     52    <xsl:call-template name="pi.dbhtml_filename">
     53      <xsl:with-param name="node" select="$chunk"/>
    5454    </xsl:call-template>
    5555  </xsl:variable>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/component.xsl

    r3ca2208 r00b1e11  
    3838  <xsl:element name="h{$level+1}" namespace="http://www.w3.org/1999/xhtml">
    3939    <xsl:attribute name="class">title</xsl:attribute>
    40     <xsl:call-template name="anchor">
    41       <xsl:with-param name="node" select="$node"/>
    42       <xsl:with-param name="conditional" select="0"/>
    43     </xsl:call-template>
    44     <xsl:apply-templates select="$node" mode="object.title.markup">
     40    <xsl:if test="$generate.id.attributes = 0">
     41      <xsl:call-template name="anchor">
     42        <xsl:with-param name="node" select="$node"/>
     43        <xsl:with-param name="conditional" select="0"/>
     44      </xsl:call-template>
     45    </xsl:if>
     46      <xsl:apply-templates select="$node" mode="object.title.markup">
    4547      <xsl:with-param name="allow-anchors" select="1"/>
    4648    </xsl:apply-templates>
     
    351353</xsl:template>
    352354
    353 <xsl:template match="article/title" mode="titlepage.mode" priority="2">
     355<xsl:template match="article/title|article/articleinfo/title" mode="titlepage.mode" priority="2">
    354356  <xsl:call-template name="component.title">
    355357    <xsl:with-param name="node" select="ancestor::article[1]"/>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/division.xsl

    r3ca2208 r00b1e11  
    214214  <h1>
    215215    <xsl:attribute name="class">title</xsl:attribute>
    216     <xsl:call-template name="anchor">
    217       <xsl:with-param name="node" select="$node"/>
    218       <xsl:with-param name="conditional" select="0"/>
    219     </xsl:call-template>
    220     <xsl:apply-templates select="$node" mode="object.title.markup">
     216    <xsl:if test="$generate.id.attributes = 0">
     217      <xsl:call-template name="anchor">
     218        <xsl:with-param name="node" select="$node"/>
     219        <xsl:with-param name="conditional" select="0"/>
     220      </xsl:call-template>
     221    </xsl:if>
     222      <xsl:apply-templates select="$node" mode="object.title.markup">
    221223      <xsl:with-param name="allow-anchors" select="1"/>
    222224    </xsl:apply-templates>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/formal.xsl

    r3ca2208 r00b1e11  
    104104    <div class="{$class}">
    105105      <xsl:if test="$spacing.paras != 0"><p/></xsl:if>
    106       <xsl:call-template name="anchor"/>
     106      <xsl:call-template name="anchor">
     107        <xsl:with-param name="conditional" select="0"/>
     108      </xsl:call-template>
    107109      <xsl:apply-templates/>
    108110 
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/graphics.xsl

    r3ca2208 r00b1e11  
    222222
    223223  <xsl:variable name="img.src.path.pi">
    224     <xsl:call-template name="dbhtml-attribute">
    225       <xsl:with-param name="pis" select="../processing-instruction('dbhtml')"/>
    226       <xsl:with-param name="attribute" select="'img.src.path'"/>
     224    <xsl:call-template name="pi.dbhtml_img.src.path">
     225      <xsl:with-param name="node" select=".."/>
    227226    </xsl:call-template>
    228227  </xsl:variable>
     
    599598
    600599  <xsl:variable name="bgcolor">
    601     <xsl:call-template name="dbhtml-attribute">
    602       <xsl:with-param name="pis" select="../processing-instruction('dbhtml')"/>
    603       <xsl:with-param name="attribute" select="'background-color'"/>
     600    <xsl:call-template name="pi.dbhtml_background-color">
     601      <xsl:with-param name="node" select=".."/>
    604602    </xsl:call-template>
    605603  </xsl:variable>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/lists.xsl

    r3ca2208 r00b1e11  
    197197<xsl:template match="variablelist">
    198198  <xsl:variable name="pi-presentation">
    199     <xsl:call-template name="dbhtml-attribute">
    200       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    201       <xsl:with-param name="attribute" select="'list-presentation'"/>
    202     </xsl:call-template>
     199    <xsl:call-template name="pi.dbhtml_list-presentation"/>
    203200  </xsl:variable>
    204201
     
    218215
    219216  <xsl:variable name="list-width">
    220     <xsl:call-template name="dbhtml-attribute">
    221       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    222       <xsl:with-param name="attribute" select="'list-width'"/>
    223     </xsl:call-template>
     217    <xsl:call-template name="pi.dbhtml_list-width"/>
    224218  </xsl:variable>
    225219
    226220  <xsl:variable name="term-width">
    227     <xsl:call-template name="dbhtml-attribute">
    228       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    229       <xsl:with-param name="attribute" select="'term-width'"/>
    230     </xsl:call-template>
     221    <xsl:call-template name="pi.dbhtml_term-width"/>
    231222  </xsl:variable>
    232223
    233224  <xsl:variable name="table-summary">
    234     <xsl:call-template name="dbhtml-attribute">
    235       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    236       <xsl:with-param name="attribute" select="'table-summary'"/>
    237     </xsl:call-template>
     225    <xsl:call-template name="pi.dbhtml_table-summary"/>
    238226  </xsl:variable>
    239227
     
    335323<xsl:template match="varlistentry" mode="varlist-table">
    336324  <xsl:variable name="presentation">
    337     <xsl:call-template name="dbhtml-attribute">
    338       <xsl:with-param name="pis" select="../processing-instruction('dbhtml')"/>
    339       <xsl:with-param name="attribute" select="'term-presentation'"/>
     325    <xsl:call-template name="pi.dbhtml_term-presentation">
     326      <xsl:with-param name="node" select=".."/>
    340327    </xsl:call-template>
    341328  </xsl:variable>
    342329
    343330  <xsl:variable name="separator">
    344     <xsl:call-template name="dbhtml-attribute">
    345       <xsl:with-param name="pis" select="../processing-instruction('dbhtml')"/>
    346       <xsl:with-param name="attribute" select="'term-separator'"/>
     331    <xsl:call-template name="pi.dbhtml_term-separator">
     332      <xsl:with-param name="node" select=".."/>
    347333    </xsl:call-template>
    348334  </xsl:variable>
     
    463449    <xsl:choose>
    464450      <xsl:when test="processing-instruction('dbchoice')">
    465         <xsl:call-template name="select.choice.separator"/>
    466       </xsl:when>
    467       <xsl:otherwise>
    468         <!-- empty -->
     451        <xsl:call-template name="select.choice.separator"/>
     452      </xsl:when>
     453      <xsl:otherwise>
     454        <!-- empty -->
    469455      </xsl:otherwise>
    470456    </xsl:choose>
     
    744730<xsl:template match="segmentedlist">
    745731  <xsl:variable name="presentation">
    746     <xsl:call-template name="dbhtml-attribute">
    747       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    748       <xsl:with-param name="attribute" select="'list-presentation'"/>
    749     </xsl:call-template>
     732    <xsl:call-template name="pi.dbhtml_list-presentation"/>
    750733  </xsl:variable>
    751734
     
    815798<xsl:template match="segmentedlist" mode="seglist-table">
    816799  <xsl:variable name="table-summary">
    817     <xsl:call-template name="dbhtml-attribute">
    818       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    819       <xsl:with-param name="attribute" select="'table-summary'"/>
    820     </xsl:call-template>
     800    <xsl:call-template name="pi.dbhtml_table-summary"/>
    821801  </xsl:variable>
    822802
    823803  <xsl:variable name="list-width">
    824     <xsl:call-template name="dbhtml-attribute">
    825       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    826       <xsl:with-param name="attribute" select="'list-width'"/>
    827     </xsl:call-template>
     804    <xsl:call-template name="pi.dbhtml_list-width"/>
    828805  </xsl:variable>
    829806
     
    10531030<!-- ==================================================================== -->
    10541031
     1032<xsl:template name="orderedlist-starting-number">
     1033  <xsl:param name="list" select="."/>
     1034  <xsl:variable name="pi-start">
     1035    <xsl:call-template name="pi.dbhtml_start">
     1036      <xsl:with-param name="node" select="$list"/>
     1037    </xsl:call-template>
     1038  </xsl:variable>
     1039  <xsl:call-template name="output-orderedlist-starting-number">
     1040    <xsl:with-param name="list" select="$list"/>
     1041    <xsl:with-param name="pi-start" select="$pi-start"/>
     1042  </xsl:call-template>
     1043</xsl:template>
     1044
    10551045</xsl:stylesheet>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/math.xsl

    r3ca2208 r00b1e11  
    268268<xsl:template name="tex.math.output.delims">
    269269  <xsl:variable name="pi.delims">
    270     <xsl:call-template name="pi-attribute">
    271       <xsl:with-param name="pis" select=".//processing-instruction('dbtex')"/>
    272       <xsl:with-param name="attribute" select="'delims'"/>
     270    <xsl:call-template name="pi.dbtex_delims">
     271      <xsl:with-param name="node" select="descendant-or-self::*"/>
    273272    </xsl:call-template>
    274273  </xsl:variable>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/param.xsl

    r3ca2208 r00b1e11  
    33<!--from the HTML stylesheets.-->
    44<!-- This file is generated from param.xweb -->
    5 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
     5<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" xmlns="http://docbook.org/ns/docbook" exclude-result-prefixes="src" version="1.0">
    66
    77<!-- ********************************************************************
     
    6666                     }
    6767</xsl:param>
    68 <xsl:param name="annotation.js" select="'http://docbook.sourceforge.net/release/script/AnchorPosition.js             http://docbook.sourceforge.net/release/script/PopupWindow.js'"/>
     68<xsl:param name="annotation.js" select="'http://docbook.sourceforge.net/release/script/AnchorPosition.js http://docbook.sourceforge.net/release/script/PopupWindow.js'"/>
    6969<xsl:param name="annotation.graphic.open" select="'http://docbook.sourceforge.net/release/images/annot-open.png'"/>
    7070<xsl:param name="annotation.graphic.close" select="'http://docbook.sourceforge.net/release/images/annot-close.png'"/>
     
    122122<xsl:param name="ebnf.table.border" select="1"/>
    123123<xsl:param name="ebnf.assignment">
    124 <code>::=</code>
     124<code xmlns="http://www.w3.org/1999/xhtml">::=</code>
    125125</xsl:param>
    126126
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/pi.xsl

    r3ca2208 r00b1e11  
    22<!--This file was created automatically by html2xhtml-->
    33<!--from the HTML stylesheets.-->
    4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
     4<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="doc" version="1.0">
    55
    66<!-- ********************************************************************
     
    1414     ******************************************************************** -->
    1515
    16 <xsl:template match="processing-instruction()">
    17 </xsl:template>
    18 
    19 <xsl:template match="processing-instruction('dbhtml')">
    20   <!-- nop -->
    21 </xsl:template>
     16<doc:reference xmlns=""><info xmlns="http://www.w3.org/1999/xhtml"><title>HTML Processing Instruction Reference</title>
     17    <releaseinfo role="meta">
     18      $Id$
     19    </releaseinfo>
     20  </info>
     21  <partintro xmlns="http://www.w3.org/1999/xhtml" xml:id="partintro">
     22    <title>Introduction</title>
     23    <para>This is generated reference documentation for all
     24      user-specifiable processing instructions (PIs) in the DocBook
     25      XSL stylesheets for HTML output.
     26      <note>
     27        <para>You add these PIs at particular points in a document to
     28          cause specific &#8220;exceptions&#8221; to formatting/output behavior. To
     29          make global changes in formatting/output behavior across an
     30          entire document, it&#8217;s better to do it by setting an
     31          appropriate stylesheet parameter (if there is one).</para>
     32      </note>
     33    </para>
     34  </partintro>
     35</doc:reference>
    2236
    2337<!-- ==================================================================== -->
    2438
    25 <xsl:template name="dbhtml-attribute">
    26   <xsl:param name="pis" select="processing-instruction('dbhtml')"/>
    27   <xsl:param name="attribute">filename</xsl:param>
    28 
     39<doc:pi xmlns="" name="dbhtml_background-color">
     40  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Sets background color for an image</refpurpose>
     41  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     42    <para>Use the <tag>dbhtml background-color</tag> PI before or
     43      after an image (<tag>graphic</tag>, <tag>inlinegraphic</tag>,
     44      <tag>imagedata</tag>, or <tag>videodata</tag> element) as a
     45      sibling to the element, to set a background color for the
     46      image.</para>
     47  </refdescription>
     48  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     49    <synopsis><tag class="xmlpi">dbhtml background-color="<replaceable>color</replaceable>"</tag></synopsis>
     50  </refsynopsisdiv>
     51  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     52    <variablelist>
     53      <varlistentry><term>background-color="<replaceable>color</replaceable>"</term>
     54        <listitem>
     55          <para>An HTML color value</para>
     56        </listitem>
     57      </varlistentry>
     58    </variablelist>
     59  </refparameter>
     60  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     61    <para><link role="tcg" xlink:href="BGcolor.html">Background color</link></para>
     62  </refsee>
     63</doc:pi>
     64<xsl:template name="pi.dbhtml_background-color">
     65  <xsl:param name="node" select="."/>
     66  <xsl:call-template name="dbhtml-attribute">
     67    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     68    <xsl:with-param name="attribute" select="'background-color'"/>
     69  </xsl:call-template>
     70</xsl:template>
     71
     72<doc:pi xmlns="" name="dbhtml_bgcolor">
     73  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Sets background color on a table row or table cell</refpurpose>
     74  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     75    <para>Use the <tag>dbhtml bgcolor</tag> PI as child of a table row
     76      or cell to set a background color for that table row or cell.</para>
     77  </refdescription>
     78  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     79    <synopsis><tag class="xmlpi">dbhtml bgcolor="<replaceable>color</replaceable>"</tag></synopsis>
     80  </refsynopsisdiv>
     81  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     82    <variablelist>
     83      <varlistentry><term>bgcolor="<replaceable>color</replaceable>"</term>
     84        <listitem>
     85          <para>An HTML color value</para>
     86        </listitem>
     87      </varlistentry>
     88    </variablelist>
     89  </refparameter>
     90  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     91    <para><link role="tcg" xlink:href="BGtableColor.html#CellBGColor">Cell background color</link></para>
     92  </refsee>
     93</doc:pi>
     94<xsl:template name="pi.dbhtml_bgcolor">
     95  <xsl:param name="node" select="."/>
     96  <xsl:call-template name="dbhtml-attribute">
     97    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     98    <xsl:with-param name="attribute" select="'bgcolor'"/>
     99  </xsl:call-template>
     100</xsl:template>
     101
     102<doc:pi xmlns="" name="dbhtml_cellpadding">
     103  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies cellpadding in table or qandaset output</refpurpose>
     104  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     105    <para>Use the <tag>dbhtml cellpadding</tag> PI as a child of a
     106      <tag>table</tag> or <tag>qandaset</tag> to specify the value
     107      for the HTML <literal>cellpadding</literal> attribute in the
     108      output HTML table.</para>
     109  </refdescription>
     110  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     111    <synopsis><tag class="xmlpi">dbhtml cellpadding="<replaceable>number</replaceable>"</tag></synopsis>
     112  </refsynopsisdiv>
     113  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     114    <variablelist>
     115      <varlistentry><term>cellpadding="<replaceable>number</replaceable>"</term>
     116        <listitem>
     117          <para>Specifies the cellpadding</para>
     118        </listitem>
     119      </varlistentry>
     120    </variablelist>
     121  </refparameter>
     122  <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
     123    <para><parameter>html.cellpadding</parameter></para>
     124  </refsee>
     125  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     126    <para><link role="tcg" xlink:href="CellSpacing.html">Cell spacing and cell padding</link>,
     127      <link role="tcg" xlink:href="QandAformat.html">Q and A formatting</link></para>
     128  </refsee>
     129</doc:pi>
     130<xsl:template name="pi.dbhtml_cellpadding">
     131  <xsl:param name="node" select="."/>
     132  <xsl:call-template name="dbhtml-attribute">
     133    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     134    <xsl:with-param name="attribute" select="'cellpadding'"/>
     135  </xsl:call-template>
     136</xsl:template>
     137
     138<doc:pi xmlns="" name="dbhtml_cellspacing">
     139  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies cellspacing in table or qandaset output</refpurpose>
     140  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     141    <para>Use the <tag>dbhtml cellspacing</tag> PI as a child of a
     142      <tag>table</tag> or <tag>qandaset</tag> to specify the value
     143      for the HTML <literal>cellspacing</literal> attribute in the
     144      output HTML table.</para>
     145  </refdescription>
     146  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     147    <synopsis><tag class="xmlpi">dbhtml cellspacing="<replaceable>number</replaceable>"</tag></synopsis>
     148  </refsynopsisdiv>
     149  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     150    <variablelist>
     151      <varlistentry><term>cellspacing="<replaceable>number</replaceable>"</term>
     152        <listitem>
     153          <para>Specifies the cellspacing</para>
     154        </listitem>
     155      </varlistentry>
     156    </variablelist>
     157  </refparameter>
     158  <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
     159    <para><parameter>html.cellspacing</parameter></para>
     160  </refsee>
     161  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     162    <para><link role="tcg" xlink:href="CellSpacing.html">Cell spacing and cell padding</link>,
     163      <link role="tcg" xlink:href="QandAformat.html">Q and A formatting</link></para>
     164    </refsee>
     165</doc:pi>
     166<xsl:template name="pi.dbhtml_cellspacing">
     167  <xsl:param name="node" select="."/>
     168  <xsl:call-template name="dbhtml-attribute">
     169    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     170    <xsl:with-param name="attribute" select="'cellspacing'"/>
     171  </xsl:call-template>
     172</xsl:template>
     173
     174<doc:pi xmlns="" name="dbhtml_class">
     175  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Set value of the class attribute for a table row</refpurpose>
     176  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     177    <para>Use the <tag>dbhtml class</tag> PI as a child of a
     178      <tag>row</tag> to specify a <literal>class</literal>
     179      attribute and value in the HTML output for that row.</para>
     180  </refdescription>
     181  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     182    <synopsis><tag class="xmlpi">dbhtml class="<replaceable>name</replaceable>"</tag></synopsis>
     183  </refsynopsisdiv>
     184  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     185    <variablelist>
     186      <varlistentry><term>class="<replaceable>name</replaceable>"</term>
     187        <listitem>
     188          <para>Specifies the class name</para>
     189        </listitem>
     190      </varlistentry>
     191    </variablelist>
     192  </refparameter>
     193  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     194    <para><link role="tcg" xlink:href="CSSTableCells.html">Table styles in HTML output</link></para>
     195  </refsee>
     196</doc:pi>
     197<xsl:template name="pi.dbhtml_class">
     198  <xsl:param name="node" select="."/>
     199  <xsl:call-template name="dbhtml-attribute">
     200    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     201    <xsl:with-param name="attribute" select="'class'"/>
     202  </xsl:call-template>
     203</xsl:template>
     204
     205<doc:pi xmlns="" name="dbhtml_dir">
     206  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies a directory name in which to write files</refpurpose>
     207  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     208    <para>When chunking output, use the <tag>dbhtml dir</tag> PI
     209      as a child of a chunk source to cause the output of that
     210      chunk to be written to the specified directory; also, use it
     211      as a child of a <tag>mediaobject</tag> to specify a
     212      directory into which any long-description files for that
     213      <tag>mediaobject</tag> will be written.</para>
     214  </refdescription>
     215  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     216    <synopsis><tag class="xmlpi">dbhtml dir="<replaceable>path</replaceable>"</tag></synopsis>
     217  </refsynopsisdiv>
     218  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     219    <variablelist>
     220      <varlistentry><term>dir="<replaceable>path</replaceable>"</term>
     221        <listitem>
     222          <para>Specifies the pathname for the directory</para>
     223        </listitem>
     224      </varlistentry>
     225    </variablelist>
     226  </refparameter>
     227  <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
     228    <para><parameter>base.dir</parameter></para>
     229  </refsee>
     230  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     231    <para><link role="tcg" xlink:href="Chunking.html#dbhtmlDirPI">dbhtml dir processing instruction</link></para>
     232  </refsee>
     233</doc:pi>
     234<xsl:template name="pi.dbhtml_dir">
     235  <xsl:param name="node" select="."/>
     236  <xsl:call-template name="dbhtml-attribute">
     237    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     238    <xsl:with-param name="attribute" select="'dir'"/>
     239  </xsl:call-template>
     240</xsl:template>
     241
     242<doc:pi xmlns="" name="dbhtml_filename">
     243  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies a filename for a chunk</refpurpose>
     244  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     245    <para>When chunking output, use the <tag>dbhtml filename</tag>
     246      PI as a child of a chunk source to specify a filename for
     247      the output file for that chunk.</para>
     248  </refdescription>
     249  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     250    <synopsis><tag class="xmlpi">dbhtml filename="<replaceable>filename</replaceable>"</tag></synopsis>
     251  </refsynopsisdiv>
     252  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     253    <variablelist>
     254      <varlistentry><term>filename="<replaceable>path</replaceable>"</term>
     255        <listitem>
     256          <para>Specifies the filename for the file</para>
     257        </listitem>
     258      </varlistentry>
     259    </variablelist>
     260  </refparameter>
     261  <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
     262    <para><parameter>use.id.as.filename</parameter></para>
     263  </refsee>
     264  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     265    <para><link role="tcg" xlink:href="Chunking.html#DbhtmlFilenames">dbhtml filenames</link></para>
     266  </refsee>
     267</doc:pi>
     268<xsl:template name="pi.dbhtml_filename">
     269  <xsl:param name="node" select="."/>
     270  <xsl:call-template name="dbhtml-attribute">
     271    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     272    <xsl:with-param name="attribute" select="'filename'"/>
     273  </xsl:call-template>
     274</xsl:template>
     275
     276<doc:pi xmlns="" name="dbhtml_funcsynopsis-style">
     277  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies presentation style for a funcsynopsis</refpurpose>
     278  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     279    <para>Use the <tag>dbhtml funcsynopsis-style</tag> PI as a child of
     280      a <tag>funcprototype</tag> or anywhere within a funcprototype
     281      control the presentation style for the <tag>funcsynopsis</tag>
     282      in output.</para>
     283  </refdescription>
     284  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     285    <synopsis><tag class="xmlpi">dbhtml funcsynopsis-style="kr"|"ansi"</tag></synopsis>
     286  </refsynopsisdiv>
     287  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     288    <variablelist>
     289      <varlistentry><term>funcsynopsis-style="kr"</term>
     290        <listitem>
     291          <para>Displays the <tag>funcprototype</tag> in K&amp;R style</para>
     292        </listitem>
     293      </varlistentry>
     294      <varlistentry><term>funcsynopsis-style="ansi"</term>
     295        <listitem>
     296          <para>Displays the <tag>funcprototype</tag> in ANSI style</para>
     297        </listitem>
     298      </varlistentry>
     299    </variablelist>
     300  </refparameter>
     301  <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
     302    <para><parameter>funcsynopsis.style</parameter></para>
     303  </refsee>
     304</doc:pi>
     305<xsl:template name="pi.dbhtml_funcsynopsis-style">
     306  <xsl:param name="node" select="."/>
     307  <xsl:call-template name="dbhtml-attribute">
     308    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     309    <xsl:with-param name="attribute" select="'funcsynopsis-style'"/>
     310  </xsl:call-template>
     311</xsl:template>
     312
     313<doc:pi xmlns="" name="dbhtml_img.src.path">
     314  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies a path to the location of an image file</refpurpose>
     315  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     316    <para>Use the <tag>dbhtml img.src.path</tag> PI before or
     317      after an image (<tag>graphic</tag>,
     318      <tag>inlinegraphic</tag>, <tag>imagedata</tag>, or
     319      <tag>videodata</tag> element) as a sibling to the element,
     320      to specify a path to the location of the image; in HTML
     321      output, the value specified for the
     322      <code>img.src.path</code> attribute is prepended to the
     323      filename.</para>
     324  </refdescription>
     325  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     326    <synopsis><tag class="xmlpi">dbhtml img.src.path="<replaceable>path</replaceable>"</tag></synopsis>
     327  </refsynopsisdiv>
     328  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     329    <variablelist>
     330      <varlistentry><term>img.src.path="<replaceable>path</replaceable>"</term>
     331        <listitem>
     332          <para>Specifies the pathname to prepend to the name of the image file</para>
     333        </listitem>
     334      </varlistentry>
     335    </variablelist>
     336  </refparameter>
     337  <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
     338    <para><parameter>img.src.path</parameter></para>
     339  </refsee>
     340  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     341    <para><link role="tcg" xlink:href="GraphicsLocations.html#UsingFileref">Using fileref</link></para>
     342  </refsee>
     343</doc:pi>
     344<xsl:template name="pi.dbhtml_img.src.path">
     345  <xsl:param name="node" select="."/>
     346  <xsl:call-template name="dbhtml-attribute">
     347    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     348    <xsl:with-param name="attribute" select="'img.src.path'"/>
     349  </xsl:call-template>
     350</xsl:template>
     351
     352<doc:pi xmlns="" name="dbhtml_label-width">
     353  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies the label width for a qandaset</refpurpose>
     354  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     355    <para>Use the <tag>dbhtml label-width</tag> PI as a child of a
     356      <tag>qandaset</tag> to specify the width of labels.</para>
     357  </refdescription>
     358  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     359    <synopsis><tag class="xmlpi">dbhtml label-width="<replaceable>width</replaceable>"</tag></synopsis>
     360  </refsynopsisdiv>
     361  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     362    <variablelist>
     363      <varlistentry><term>label-width="<replaceable>width</replaceable>"</term>
     364        <listitem>
     365          <para>Specifies the label width (including units)</para>
     366        </listitem>
     367      </varlistentry>
     368    </variablelist>
     369  </refparameter>
     370  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     371    <para><link role="tcg" xlink:href="QandAformat.html">Q and A formatting</link></para>
     372  </refsee>
     373</doc:pi>
     374<xsl:template name="pi.dbhtml_label-width">
     375  <xsl:param name="node" select="."/>
     376  <xsl:call-template name="dbhtml-attribute">
     377    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     378    <xsl:with-param name="attribute" select="'label-width'"/>
     379  </xsl:call-template>
     380</xsl:template>
     381
     382<doc:pi xmlns="" name="dbhtml_linenumbering.everyNth">
     383  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies interval for lines numbers in verbatims</refpurpose>
     384  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     385    <para>Use the <tag>dbhtml linenumbering.everyNth</tag> PI as a child
     386      of a &#8220;verbatim&#8221; element &#8211; <tag>programlisting</tag>,
     387      <tag>screen</tag>, <tag>synopsis</tag> &#8212; to specify
     388      the interval at which lines are numbered.</para>
     389  </refdescription>
     390  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     391    <synopsis><tag class="xmlpi">dbhtml linenumbering.everyNth="<replaceable>N</replaceable>"</tag></synopsis>
     392  </refsynopsisdiv>
     393  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     394    <variablelist>
     395      <varlistentry><term>linenumbering.everyNth="<replaceable>N</replaceable>"</term>
     396        <listitem>
     397          <para>Specifies numbering interval; a number is output
     398            before every <replaceable>N</replaceable>th line</para>
     399        </listitem>
     400      </varlistentry>
     401    </variablelist>
     402  </refparameter>
     403  <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
     404    <para><parameter>linenumbering.everyNth</parameter></para>
     405  </refsee>
     406  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     407    <para><link role="tcg" xlink:href="AnnotateListing.html#LineNumbering">Line numbering</link></para>
     408  </refsee>
     409</doc:pi>
     410<xsl:template name="pi.dbhtml_linenumbering.everyNth">
     411  <xsl:param name="node" select="."/>
     412  <xsl:call-template name="dbhtml-attribute">
     413    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     414    <xsl:with-param name="attribute" select="'linenumbering.everyNth'"/>
     415  </xsl:call-template>
     416</xsl:template>
     417
     418<doc:pi xmlns="" name="dbhtml_linenumbering.separator">
     419  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies separator text for line numbers in verbatims</refpurpose>
     420  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     421    <para>Use the <tag>dbhtml linenumbering.separator</tag> PI as a child
     422      of a &#8220;verbatim&#8221; element &#8211; <tag>programlisting</tag>,
     423      <tag>screen</tag>, <tag>synopsis</tag> &#8212; to specify
     424      the separator text output between the line numbers and content.</para>
     425  </refdescription>
     426  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     427    <synopsis><tag class="xmlpi">dbhtml linenumbering.separator="<replaceable>text</replaceable>"</tag></synopsis>
     428  </refsynopsisdiv>
     429  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     430    <variablelist>
     431      <varlistentry><term>linenumbering.separator="<replaceable>text</replaceable>"</term>
     432        <listitem>
     433          <para>Specifies the text (zero or more characters)</para>
     434        </listitem>
     435      </varlistentry>
     436    </variablelist>
     437  </refparameter>
     438  <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
     439    <para><parameter>linenumbering.separator</parameter></para>
     440  </refsee>
     441  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     442    <para><link role="tcg" xlink:href="AnnotateListing.html#LineNumbering">Line numbering</link></para>
     443  </refsee>
     444</doc:pi>
     445<xsl:template name="pi.dbhtml_linenumbering.separator">
     446  <xsl:param name="node" select="."/>
     447  <xsl:call-template name="dbhtml-attribute">
     448    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     449    <xsl:with-param name="attribute" select="'linenumbering.separator'"/>
     450  </xsl:call-template>
     451</xsl:template>
     452
     453<doc:pi xmlns="" name="dbhtml_linenumbering.width">
     454  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies width for line numbers in verbatims</refpurpose>
     455  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     456    <para>Use the <tag>dbhtml linenumbering.width</tag> PI as a child
     457      of a &#8220;verbatim&#8221; element &#8211; <tag>programlisting</tag>,
     458      <tag>screen</tag>, <tag>synopsis</tag> &#8212; to specify
     459      the width set aside for line numbers.</para>
     460  </refdescription>
     461  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     462    <synopsis><tag class="xmlpi">dbhtml linenumbering.width="<replaceable>width</replaceable>"</tag></synopsis>
     463  </refsynopsisdiv>
     464  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     465    <variablelist>
     466      <varlistentry><term>linenumbering.width="<replaceable>width</replaceable>"</term>
     467        <listitem>
     468          <para>Specifies the width (inluding units)</para>
     469        </listitem>
     470      </varlistentry>
     471    </variablelist>
     472  </refparameter>
     473  <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
     474    <para><parameter>linenumbering.width</parameter></para>
     475  </refsee>
     476  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     477    <para><link role="tcg" xlink:href="AnnotateListing.html#LineNumbering">Line numbering</link></para>
     478  </refsee>
     479</doc:pi>
     480<xsl:template name="pi.dbhtml_linenumbering.width">
     481  <xsl:param name="node" select="."/>
     482  <xsl:call-template name="dbhtml-attribute">
     483    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     484    <xsl:with-param name="attribute" select="'linenumbering.width'"/>
     485  </xsl:call-template>
     486</xsl:template>
     487
     488<doc:pi xmlns="" name="dbhtml_list-presentation">
     489  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies presentation style for a variablelist or
     490    segmentedlist</refpurpose>
     491  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     492    <para>Use the <tag>dbhtml list-presentation</tag> PI as a child of
     493      a <tag>variablelist</tag> or <tag>segmentedlist</tag> to
     494      control the presentation style for the list (to cause it, for
     495      example, to be displayed as a table).</para>
     496  </refdescription>
     497  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     498    <synopsis><tag class="xmlpi">dbhtml list-presentation="list"|"table"</tag></synopsis>
     499  </refsynopsisdiv>
     500  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     501    <variablelist>
     502      <varlistentry><term>list-presentation="list"</term>
     503        <listitem>
     504          <para>Displays the list as a list</para>
     505        </listitem>
     506      </varlistentry>
     507      <varlistentry><term>list-presentation="table"</term>
     508        <listitem>
     509          <para>Displays the list as a table</para>
     510        </listitem>
     511      </varlistentry>
     512    </variablelist>
     513  </refparameter>
     514  <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
     515    <itemizedlist>
     516      <listitem>
     517        <para><parameter>variablelist.as.table</parameter></para>
     518      </listitem>
     519      <listitem>
     520        <para><parameter>segmentedlist.as.table</parameter></para>
     521      </listitem>
     522    </itemizedlist>
     523  </refsee>
     524  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     525    <para><link role="tcg" xlink:href="Variablelists.html#VarListFormatting">Variable list formatting in HTML</link></para>
     526  </refsee>
     527</doc:pi>
     528<xsl:template name="pi.dbhtml_list-presentation">
     529  <xsl:param name="node" select="."/>
     530  <xsl:call-template name="dbhtml-attribute">
     531    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     532    <xsl:with-param name="attribute" select="'list-presentation'"/>
     533  </xsl:call-template>
     534</xsl:template>
     535
     536<doc:pi xmlns="" name="dbhtml_list-width">
     537  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies the width of a variablelist or simplelist</refpurpose>
     538  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     539    <para>Use the <tag>dbhtml list-width</tag> PI as a child of a
     540      <tag>variablelist</tag> or a <tag>simplelist</tag> presented
     541      as a table, to specify the output width.</para>
     542  </refdescription>
     543  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     544    <synopsis><tag class="xmlpi">dbhtml list-width="<replaceable>width</replaceable>"</tag></synopsis>
     545  </refsynopsisdiv>
     546  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     547    <variablelist>
     548      <varlistentry><term>list-width="<replaceable>width</replaceable>"</term>
     549        <listitem>
     550          <para>Specifies the output width (including units)</para>
     551        </listitem>
     552      </varlistentry>
     553    </variablelist>
     554  </refparameter>
     555  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     556    <para><link role="tcg" xlink:href="Variablelists.html#VarListFormatting">Variable list formatting in HTML</link></para>
     557  </refsee>
     558</doc:pi>
     559<xsl:template name="pi.dbhtml_list-width">
     560  <xsl:param name="node" select="."/>
     561  <xsl:call-template name="dbhtml-attribute">
     562    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     563    <xsl:with-param name="attribute" select="'list-width'"/>
     564  </xsl:call-template>
     565</xsl:template>
     566
     567<doc:pi xmlns="" name="dbhtml_row-height">
     568  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies the height for a table row</refpurpose>
     569  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     570    <para>Use the <tag>dbhtml row-height</tag> PI as a child of a
     571      <tag>row</tag> to specify the height of the row.</para>
     572  </refdescription>
     573  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     574    <synopsis><tag class="xmlpi">dbhtml row-height="<replaceable>height</replaceable>"</tag></synopsis>
     575  </refsynopsisdiv>
     576  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     577    <variablelist>
     578      <varlistentry><term>row-height="<replaceable>height</replaceable>"</term>
     579        <listitem>
     580          <para>Specifies the label height (including units)</para>
     581        </listitem>
     582      </varlistentry>
     583    </variablelist>
     584  </refparameter>
     585  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     586    <para><link role="tcg" xlink:href="RowHeight.html">Row height</link></para>
     587  </refsee>
     588</doc:pi>
     589<xsl:template name="pi.dbhtml_row-height">
     590  <xsl:param name="node" select="."/>
     591  <xsl:call-template name="dbhtml-attribute">
     592    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     593    <xsl:with-param name="attribute" select="'row-height'"/>
     594  </xsl:call-template>
     595</xsl:template>
     596
     597<doc:pi xmlns="" name="dbhtml_start">
     598  <refpurpose xmlns="http://www.w3.org/1999/xhtml">(obsolete) Sets the starting number on an ordered list</refpurpose>
     599  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     600    <para><emphasis>This PI is obsolete</emphasis>. The intent of
     601      this PI was to provide a means for setting a specific starting
     602      number for an ordered list. Instead of this PI, set a value
     603      for the <literal>override</literal> attribute on the first
     604      <tag>listitem</tag> in the list; that will have the same
     605      effect as what this PI was intended for.</para>
     606  </refdescription>
     607  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     608    <synopsis><tag class="xmlpi">dbhtml start="<replaceable>character</replaceable>"</tag></synopsis>
     609  </refsynopsisdiv>
     610  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     611    <variablelist>
     612      <varlistentry><term>start="<replaceable>character</replaceable>"</term>
     613        <listitem>
     614          <para>Specifies the character to use as the starting
     615            number; use 0-9, a-z, A-Z, or lowercase or uppercase
     616            Roman numerals</para>
     617        </listitem>
     618      </varlistentry>
     619    </variablelist>
     620  </refparameter>
     621  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     622    <para><link role="tcg" xlink:href="Orderedlists.html#ListStartNum">List starting number</link></para>
     623  </refsee>
     624</doc:pi>
     625<xsl:template name="pi.dbhtml_start">
     626  <xsl:param name="node" select="."/>
    29627  <xsl:call-template name="pi-attribute">
    30     <xsl:with-param name="pis" select="$pis"/>
    31     <xsl:with-param name="attribute" select="$attribute"/>
    32   </xsl:call-template>
    33 </xsl:template>
    34 
    35 <xsl:template name="dbhtml-filename">
    36   <xsl:param name="pis" select="./processing-instruction('dbhtml')"/>
    37   <xsl:call-template name="dbhtml-attribute">
    38     <xsl:with-param name="pis" select="$pis"/>
    39     <xsl:with-param name="attribute">filename</xsl:with-param>
    40   </xsl:call-template>
    41 </xsl:template>
    42 
    43 <!--
    44 <xsl:template name="dbhtml-dir">
    45   <xsl:param name="pis" select="./processing-instruction('dbhtml')"/>
    46   <xsl:call-template name="dbhtml-attribute">
    47     <xsl:with-param name="pis" select="$pis"/>
    48     <xsl:with-param name="attribute">dir</xsl:with-param>
    49   </xsl:call-template>
    50 </xsl:template>
    51 -->
    52 
    53 <xsl:template name="dbhtml-dir">
    54   <xsl:param name="context" select="."/>
    55 
    56   <!-- directories are now inherited from previous levels -->
    57 
    58   <xsl:variable name="ppath">
    59     <xsl:if test="$context/parent::*">
    60       <xsl:call-template name="dbhtml-dir">
    61         <xsl:with-param name="context" select="$context/parent::*"/>
    62       </xsl:call-template>
    63     </xsl:if>
    64   </xsl:variable>
    65 
    66   <xsl:variable name="path">
    67     <xsl:call-template name="dbhtml-attribute">
    68       <xsl:with-param name="pis" select="$context/processing-instruction('dbhtml')"/>
    69       <xsl:with-param name="attribute">dir</xsl:with-param>
    70     </xsl:call-template>
    71   </xsl:variable>
    72 
    73   <xsl:choose>
    74     <xsl:when test="$path = ''">
    75       <xsl:if test="$ppath != ''">
    76         <xsl:value-of select="$ppath"/>
    77       </xsl:if>
    78     </xsl:when>
    79     <xsl:otherwise>
    80       <xsl:if test="$ppath != ''">
    81         <xsl:value-of select="$ppath"/>
    82         <xsl:if test="substring($ppath, string-length($ppath), 1) != '/'">
    83           <xsl:text>/</xsl:text>
    84         </xsl:if>
    85       </xsl:if>
    86       <xsl:value-of select="$path"/>
    87       <xsl:text>/</xsl:text>
    88     </xsl:otherwise>
    89   </xsl:choose>
    90 </xsl:template>
    91 
    92 <!-- ==================================================================== -->
    93 
    94 <xsl:template name="process.cmdsynopsis.list">
    95   <xsl:param name="cmdsynopses"/><!-- empty node list by default -->
    96   <xsl:param name="count" select="1"/>
    97 
    98   <xsl:choose>
    99     <xsl:when test="$count&gt;count($cmdsynopses)"/>
    100     <xsl:otherwise>
    101       <xsl:variable name="cmdsyn" select="$cmdsynopses[$count]"/>
    102 
    103        <dt>
    104        <a>
    105          <xsl:attribute name="href">
    106            <xsl:call-template name="object.id">
    107              <xsl:with-param name="object" select="$cmdsyn"/>
    108            </xsl:call-template>
    109          </xsl:attribute>
    110 
    111          <xsl:choose>
    112            <xsl:when test="$cmdsyn/@xreflabel">
    113              <xsl:call-template name="xref.xreflabel">
    114                <xsl:with-param name="target" select="$cmdsyn"/>
    115              </xsl:call-template>
    116            </xsl:when>
    117            <xsl:otherwise>
    118              <xsl:apply-templates select="$cmdsyn" mode="xref-to">
    119                <xsl:with-param name="target" select="$cmdsyn"/>
    120              </xsl:apply-templates>
    121            </xsl:otherwise>
    122          </xsl:choose>
    123        </a>
    124        </dt>
    125 
    126         <xsl:call-template name="process.cmdsynopsis.list">
    127           <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/>
    128           <xsl:with-param name="count" select="$count+1"/>
    129         </xsl:call-template>
    130       </xsl:otherwise>
    131     </xsl:choose>
    132 </xsl:template>
    133 
    134 <xsl:template match="processing-instruction('dbcmdlist')">
     628    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     629    <xsl:with-param name="attribute" select="'start'"/>
     630  </xsl:call-template>
     631</xsl:template>
     632
     633<doc:pi xmlns="" name="dbhtml_table-summary">
     634  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies summary for table, variablelist, segmentedlist, or qandaset output</refpurpose>
     635  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     636    <para>Use the <tag>dbhtml table-summary</tag> PI as a child of
     637      a <tag>table</tag>, <tag>variablelist</tag>,
     638      <tag>segmentedlist</tag>, or <tag>qandaset</tag> to specify
     639      the text for the HTML <literal>summary</literal> attribute
     640      in the output HTML table.</para>
     641  </refdescription>
     642  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     643    <synopsis><tag class="xmlpi">dbhtml table-summary="<replaceable>text</replaceable>"</tag></synopsis>
     644  </refsynopsisdiv>
     645  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     646    <variablelist>
     647      <varlistentry><term>table-summary="<replaceable>text</replaceable>"</term>
     648        <listitem>
     649          <para>Specifies the summary text (zero or more characters)</para>
     650        </listitem>
     651      </varlistentry>
     652    </variablelist>
     653  </refparameter>
     654  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     655    <para><link role="tcg" xlink:href="Variablelists.html#VarListFormatting">Variable list formatting in HTML</link>,
     656      <link role="tcg" xlink:href="TableSummary.html">Table summary text</link></para>
     657  </refsee>
     658</doc:pi>
     659<xsl:template name="pi.dbhtml_table-summary">
     660  <xsl:param name="node" select="."/>
     661  <xsl:call-template name="dbhtml-attribute">
     662    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     663    <xsl:with-param name="attribute" select="'table-summary'"/>
     664  </xsl:call-template>
     665</xsl:template>
     666
     667<doc:pi xmlns="" name="dbhtml_table-width">
     668  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies the width for a table</refpurpose>
     669  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     670    <para>Use the <tag>dbhtml table-width</tag> PI as a child of a
     671      <tag>table</tag> to specify the width of the table in
     672      output.</para>
     673  </refdescription>
     674  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     675    <synopsis><tag class="xmlpi">dbhtml table-width="<replaceable>width</replaceable>"</tag></synopsis>
     676  </refsynopsisdiv>
     677  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     678    <variablelist>
     679      <varlistentry><term>table-width="<replaceable>width</replaceable>"</term>
     680        <listitem>
     681          <para>Specifies the table width (including units or as a percentage)</para>
     682        </listitem>
     683      </varlistentry>
     684    </variablelist>
     685  </refparameter>
     686  <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
     687    <para><parameter>default.table.width</parameter></para>
     688  </refsee>
     689  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     690    <para><link role="tcg" xlink:href="Tables.html#TableWidth">Table width</link></para>
     691  </refsee>
     692</doc:pi>
     693<xsl:template name="pi.dbhtml_table-width">
     694  <xsl:param name="node" select="."/>
     695  <xsl:call-template name="dbhtml-attribute">
     696    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     697    <xsl:with-param name="attribute" select="'table-width'"/>
     698  </xsl:call-template>
     699</xsl:template>
     700
     701<doc:pi xmlns="" name="dbhtml_term-presentation">
     702  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Sets character formatting for terms in a variablelist</refpurpose>
     703  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     704    <para>Use the <tag>dbhtml term-presentation</tag> PI as a child
     705      of a <tag>variablelist</tag> to set character formatting for
     706      the <tag>term</tag> output of the list.</para>
     707  </refdescription>
     708  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     709    <synopsis><tag class="xmlpi">dbhtml term-presentation="bold"|"italic"|"bold-italic"</tag></synopsis>
     710  </refsynopsisdiv>
     711  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     712    <variablelist>
     713      <varlistentry><term>term-presentation="<replaceable>bold</replaceable>"</term>
     714        <listitem>
     715          <para>Specifies that terms are displayed in bold</para>
     716        </listitem>
     717      </varlistentry>
     718      <varlistentry><term>term-presentation="<replaceable>italic</replaceable>"</term>
     719        <listitem>
     720          <para>Specifies that terms are displayed in italic</para>
     721        </listitem>
     722      </varlistentry>
     723      <varlistentry><term>term-presentation="<replaceable>bold-italic</replaceable>"</term>
     724        <listitem>
     725          <para>Specifies that terms are displayed in bold-italic</para>
     726        </listitem>
     727      </varlistentry>
     728    </variablelist>
     729  </refparameter>
     730  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     731    <para><link role="tcg" xlink:href="Variablelists.html#VarListFormatting">Variable list formatting in HTML</link></para>
     732  </refsee>
     733</doc:pi>
     734<xsl:template name="pi.dbhtml_term-presentation">
     735  <xsl:param name="node" select="."/>
     736  <xsl:call-template name="dbhtml-attribute">
     737    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     738    <xsl:with-param name="attribute" select="'term-presentation'"/>
     739  </xsl:call-template>
     740</xsl:template>
     741
     742<doc:pi xmlns="" name="dbhtml_term-separator">
     743  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies separator text among terms in a varlistentry</refpurpose>
     744  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     745    <para>Use the <tag>dbhtml term-separator</tag> PI as a child
     746      of a <tag>variablelist</tag> to specify the separator text
     747      among <tag>term</tag> instances.</para>
     748  </refdescription>
     749  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     750    <synopsis><tag class="xmlpi">dbhtml term-separator="<replaceable>text</replaceable>"</tag></synopsis>
     751  </refsynopsisdiv>
     752  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     753    <variablelist>
     754      <varlistentry><term>term-separator="<replaceable>text</replaceable>"</term>
     755        <listitem>
     756          <para>Specifies the text (zero or more characters)</para>
     757        </listitem>
     758      </varlistentry>
     759    </variablelist>
     760  </refparameter>
     761  <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
     762    <para><parameter>variablelist.term.separator</parameter></para>
     763  </refsee>
     764  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     765    <para><link role="tcg" xlink:href="Variablelists.html#VarListFormatting">Variable list formatting in HTML</link></para>
     766  </refsee>
     767</doc:pi>
     768<xsl:template name="pi.dbhtml_term-separator">
     769  <xsl:param name="node" select="."/>
     770  <xsl:call-template name="dbhtml-attribute">
     771    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     772    <xsl:with-param name="attribute" select="'term-separator'"/>
     773  </xsl:call-template>
     774</xsl:template>
     775
     776<doc:pi xmlns="" name="dbhtml_term-width">
     777  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Specifies the term width for a variablelist</refpurpose>
     778  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     779    <para>Use the <tag>dbhtml term-width</tag> PI as a child of a
     780      <tag>variablelist</tag> to specify the width for
     781      <tag>term</tag> output.</para>
     782  </refdescription>
     783  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     784    <synopsis><tag class="xmlpi">dbhtml term-width="<replaceable>width</replaceable>"</tag></synopsis>
     785  </refsynopsisdiv>
     786  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     787    <variablelist>
     788      <varlistentry><term>term-width="<replaceable>width</replaceable>"</term>
     789        <listitem>
     790          <para>Specifies the term width (including units)</para>
     791        </listitem>
     792      </varlistentry>
     793    </variablelist>
     794  </refparameter>
     795  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     796    <para><link role="tcg" xlink:href="Variablelists.html#VarListFormatting">Variable list formatting in HTML</link></para>
     797  </refsee>
     798</doc:pi>
     799<xsl:template name="pi.dbhtml_term-width">
     800  <xsl:param name="node" select="."/>
     801  <xsl:call-template name="dbhtml-attribute">
     802    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     803    <xsl:with-param name="attribute" select="'term-width'"/>
     804  </xsl:call-template>
     805</xsl:template>
     806
     807<doc:pi xmlns="" name="dbhtml_toc">
     808  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Species whether a TOC should be generated for a qandaset</refpurpose>
     809  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     810    <para>Use the <tag>dbhtml toc</tag> PI as a child of a
     811      <tag>qandaset</tag> to specify whether a table of contents
     812      (TOC) is generated for the <tag>qandaset</tag>.</para>
     813  </refdescription>
     814  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     815    <synopsis><tag class="xmlpi">dbhtml toc="0"|"1"</tag></synopsis>
     816  </refsynopsisdiv>
     817  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     818    <variablelist>
     819      <varlistentry><term>toc="0"</term>
     820        <listitem>
     821          <para>If zero, no TOC is generated</para>
     822        </listitem>
     823      </varlistentry>
     824      <varlistentry><term>toc="1"</term>
     825        <listitem>
     826          <para>If <code>1</code> (or any non-zero value),
     827            a TOC is generated</para>
     828        </listitem>
     829      </varlistentry>
     830    </variablelist>
     831  </refparameter>
     832  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     833    <para><link role="tcg" xlink:href="QandAtoc.html">Q and A list of questions</link>,
     834      <link role="tcg" xlink:href="QandAformat.html">Q and A formatting</link></para>
     835  </refsee>
     836</doc:pi>
     837<xsl:template name="pi.dbhtml_toc">
     838  <xsl:param name="node" select="."/>
     839  <xsl:call-template name="dbhtml-attribute">
     840    <xsl:with-param name="pis" select="$node/processing-instruction('dbhtml')"/>
     841    <xsl:with-param name="attribute" select="'toc'"/>
     842  </xsl:call-template>
     843</xsl:template>
     844
     845<doc:pi xmlns="" name="dbcmdlist">
     846  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Generates a hyperlinked list of commands</refpurpose>
     847  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     848    <para>Use the <tag>dbcmdlist</tag> PI as the child of a
     849      <tag>refsynopsisdiv</tag> containing multiple
     850      <tag>cmdsynopsis</tag> instances; a hyperlinked navigational
     851      &#8220;command list&#8221; will be generated at the top of the
     852      <tag>refsynopsisdiv</tag>, enabling users to quickly jump
     853      to to each command synopsis.</para>
     854  </refdescription>
     855  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     856    <synopsis><tag class="xmlpi">dbcmdlist</tag></synopsis>
     857  </refsynopsisdiv>
     858  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     859    <para>[No parameters]</para>
     860  </refparameter>
     861</doc:pi>
     862<xsl:template name="pi.dbcmdlist">
    135863  <xsl:variable name="cmdsynopses" select="..//cmdsynopsis"/>
    136 
    137864  <xsl:if test="count($cmdsynopses)&lt;1">
    138865    <xsl:message><xsl:text>No cmdsynopsis elements matched dbcmdlist PI, perhaps it's nested too deep?</xsl:text>
    139866    </xsl:message>
    140867  </xsl:if>
    141 
    142868  <dl>
    143869    <xsl:call-template name="process.cmdsynopsis.list">
     
    147873</xsl:template>
    148874
    149 <!-- ==================================================================== -->
    150 
    151 <xsl:template name="process.funcsynopsis.list">
    152   <xsl:param name="funcsynopses"/><!-- empty node list by default -->
    153   <xsl:param name="count" select="1"/>
    154 
    155   <xsl:choose>
    156     <xsl:when test="$count&gt;count($funcsynopses)"/>
    157     <xsl:otherwise>
    158       <xsl:variable name="cmdsyn" select="$funcsynopses[$count]"/>
    159 
    160        <dt>
    161        <a>
    162          <xsl:attribute name="href">
    163            <xsl:call-template name="object.id">
    164              <xsl:with-param name="object" select="$cmdsyn"/>
    165            </xsl:call-template>
    166          </xsl:attribute>
    167 
    168          <xsl:choose>
    169            <xsl:when test="$cmdsyn/@xreflabel">
    170              <xsl:call-template name="xref.xreflabel">
    171                <xsl:with-param name="target" select="$cmdsyn"/>
    172              </xsl:call-template>
    173            </xsl:when>
    174            <xsl:otherwise>
    175               <xsl:apply-templates select="$cmdsyn" mode="xref-to">
    176                 <xsl:with-param name="target" select="$cmdsyn"/>
    177               </xsl:apply-templates>
    178            </xsl:otherwise>
    179          </xsl:choose>
    180        </a>
    181        </dt>
    182 
    183         <xsl:call-template name="process.funcsynopsis.list">
    184           <xsl:with-param name="funcsynopses" select="$funcsynopses"/>
    185           <xsl:with-param name="count" select="$count+1"/>
    186         </xsl:call-template>
    187       </xsl:otherwise>
    188     </xsl:choose>
    189 </xsl:template>
    190 
    191 <xsl:template match="processing-instruction('dbfunclist')">
     875<doc:pi xmlns="" name="dbfunclist">
     876  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Generates a hyperlinked list of functions</refpurpose>
     877  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     878    <para>Use the <tag>dbfunclist</tag> PI as the child of a
     879      <tag>refsynopsisdiv</tag> containing multiple
     880      <tag>funcsynopsis</tag> instances; a hyperlinked
     881      navigational &#8220;function list&#8221; will be generated at the top of
     882      the <tag>refsynopsisdiv</tag>, enabling users to quickly
     883      jump to to each function synopsis.</para>
     884  </refdescription>
     885  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     886    <synopsis><tag class="xmlpi">dbfunclist</tag></synopsis>
     887  </refsynopsisdiv>
     888  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     889    <para>[No parameters]</para>
     890  </refparameter>
     891</doc:pi>
     892<xsl:template name="pi.dbfunclist">
    192893  <xsl:variable name="funcsynopses" select="..//funcsynopsis"/>
    193 
    194894  <xsl:if test="count($funcsynopses)&lt;1">
    195895    <xsl:message><xsl:text>No funcsynopsis elements matched dbfunclist PI, perhaps it's nested too deep?</xsl:text>
    196896    </xsl:message>
    197897  </xsl:if>
    198 
    199898  <dl>
    200899    <xsl:call-template name="process.funcsynopsis.list">
     
    204903</xsl:template>
    205904
    206 <!-- ==================================================================== -->
    207 
    208 <!-- Copy well-formed external HTML content to the output. -->
    209 <!-- An optional <html> wrapper will be removed before content is copied
    210      to support multiple elements in output without a wrapper.
    211      No other processing is done to the content. -->
    212 <xsl:template match="processing-instruction('dbhtml-include')">
     905<doc:pi xmlns="" name="dbhtml-include_href">
     906  <refpurpose xmlns="http://www.w3.org/1999/xhtml">Copies an external well-formed HTML/XML file into current doc</refpurpose>
     907  <refdescription xmlns="http://www.w3.org/1999/xhtml">
     908    <para>Use the <tag>dbhtml-include href</tag> PI anywhere in a
     909      document to cause the contents of the file referenced by the
     910      <code>href</code> pseudo-attribute to be copied/inserted &#8220;as
     911      is&#8221; into your HTML output at the point in document order
     912      where the PI occurs in the source.</para>
     913    <note>
     914      <para>The referenced file may contain plain text (as long as
     915        it is &#8220;wrapped&#8221; in an <tag>html</tag> element &#8212; see the
     916        note below) or markup in any arbitrary vocabulary,
     917        including HTML &#8212; but it must conform to XML
     918        well-formedness constraints (because the feature in XSLT
     919        1.0 for opening external files, the
     920        <function>document()</function> function, can only handle
     921        files that meet XML well-formedness constraints).</para>
     922      <para>Among other things, XML well-formedness constraints
     923        require a document to have <emphasis>a single root
     924          element</emphasis>. So if the content you want to
     925        include is plain text or is markup that does
     926        <emphasis>not</emphasis> have a single root element,
     927        <emphasis role="strong">wrap the content in an
     928          <tag>html</tag> element</emphasis>. The stylesheets will
     929        strip out that surrounding <tag>html</tag> &#8220;wrapper&#8221; when
     930        they find it, leaving just the content you want to
     931        insert.</para>
     932    </note>
     933  </refdescription>
     934  <refsynopsisdiv xmlns="http://www.w3.org/1999/xhtml">
     935    <synopsis><tag class="xmlpi">dbhtml href="<replaceable>URI</replaceable>"</tag></synopsis>
     936  </refsynopsisdiv>
     937  <refparameter xmlns="http://www.w3.org/1999/xhtml">
     938    <variablelist>
     939      <varlistentry><term>href="<replaceable>URI</replaceable>"</term>
     940        <listitem>
     941          <para>Specifies the URI for the file to include; the URI
     942            can be, for example, a remote <literal>http:</literal>
     943            URI, or a local filesystem <literal>file:</literal>
     944            URI</para>
     945        </listitem>
     946      </varlistentry>
     947    </variablelist>
     948  </refparameter>
     949  <refsee xmlns="http://www.w3.org/1999/xhtml" role="params">
     950    <para><parameter>textinsert.extension</parameter></para>
     951  </refsee>
     952  <refsee xmlns="http://www.w3.org/1999/xhtml" role="tcg">
     953    <para><link role="tcg" xlink:href="InsertExtHtml.html">Inserting external HTML code</link>,
     954      <link xlink:href="ExternalCode.html">External code files</link></para>
     955  </refsee>
     956</doc:pi>
     957<xsl:template name="pi.dbhtml-include">
    213958  <xsl:param name="href">
    214959    <xsl:call-template name="dbhtml-attribute">
     
    217962    </xsl:call-template>
    218963  </xsl:param>
    219 
    220964  <xsl:choose>
    221965    <xsl:when test="$href != ''">
     
    250994</xsl:template>
    251995
     996<!-- ==================================================================== -->
     997
     998<xsl:template name="dbhtml-attribute">
     999  <!-- * dbhtml-attribute is an interal utility template for retrieving -->
     1000  <!-- * pseudo-attributes/parameters from PIs -->
     1001  <xsl:param name="pis" select="processing-instruction('dbhtml')"/>
     1002  <xsl:param name="attribute">filename</xsl:param>
     1003  <xsl:call-template name="pi-attribute">
     1004    <xsl:with-param name="pis" select="$pis"/>
     1005    <xsl:with-param name="attribute" select="$attribute"/>
     1006  </xsl:call-template>
     1007</xsl:template>
     1008
     1009<!-- ==================================================================== -->
     1010
     1011<xsl:template match="processing-instruction()">
     1012</xsl:template>
     1013
     1014<xsl:template match="processing-instruction('dbhtml')">
     1015  <!-- nop -->
     1016</xsl:template>
     1017
     1018<!-- ==================================================================== -->
     1019
     1020<xsl:template match="processing-instruction('dbcmdlist')">
     1021  <xsl:call-template name="pi.dbcmdlist"/>
     1022</xsl:template>
     1023<xsl:template name="process.cmdsynopsis.list">
     1024  <xsl:param name="cmdsynopses"/><!-- empty node list by default -->
     1025  <xsl:param name="count" select="1"/>
     1026
     1027  <xsl:choose>
     1028    <xsl:when test="$count&gt;count($cmdsynopses)"/>
     1029    <xsl:otherwise>
     1030      <xsl:variable name="cmdsyn" select="$cmdsynopses[$count]"/>
     1031
     1032       <dt>
     1033       <a>
     1034         <xsl:attribute name="href">
     1035           <xsl:text>#</xsl:text>
     1036           <xsl:call-template name="object.id">
     1037             <xsl:with-param name="object" select="$cmdsyn"/>
     1038           </xsl:call-template>
     1039         </xsl:attribute>
     1040
     1041         <xsl:choose>
     1042           <xsl:when test="$cmdsyn/@xreflabel">
     1043             <xsl:call-template name="xref.xreflabel">
     1044               <xsl:with-param name="target" select="$cmdsyn"/>
     1045             </xsl:call-template>
     1046           </xsl:when>
     1047           <xsl:otherwise>
     1048             <xsl:apply-templates select="$cmdsyn" mode="xref-to">
     1049               <xsl:with-param name="target" select="$cmdsyn"/>
     1050             </xsl:apply-templates>
     1051           </xsl:otherwise>
     1052         </xsl:choose>
     1053       </a>
     1054       </dt>
     1055
     1056        <xsl:call-template name="process.cmdsynopsis.list">
     1057          <xsl:with-param name="cmdsynopses" select="$cmdsynopses"/>
     1058          <xsl:with-param name="count" select="$count+1"/>
     1059        </xsl:call-template>
     1060      </xsl:otherwise>
     1061    </xsl:choose>
     1062</xsl:template>
     1063
     1064<!-- ==================================================================== -->
     1065
     1066<xsl:template match="processing-instruction('dbfunclist')">
     1067  <xsl:call-template name="pi.dbfunclist"/>
     1068</xsl:template>
     1069<xsl:template name="process.funcsynopsis.list">
     1070  <xsl:param name="funcsynopses"/><!-- empty node list by default -->
     1071  <xsl:param name="count" select="1"/>
     1072
     1073  <xsl:choose>
     1074    <xsl:when test="$count&gt;count($funcsynopses)"/>
     1075    <xsl:otherwise>
     1076      <xsl:variable name="cmdsyn" select="$funcsynopses[$count]"/>
     1077
     1078       <dt>
     1079       <a>
     1080         <xsl:attribute name="href">
     1081           <xsl:text>#</xsl:text>
     1082           <xsl:call-template name="object.id">
     1083             <xsl:with-param name="object" select="$cmdsyn"/>
     1084           </xsl:call-template>
     1085         </xsl:attribute>
     1086
     1087         <xsl:choose>
     1088           <xsl:when test="$cmdsyn/@xreflabel">
     1089             <xsl:call-template name="xref.xreflabel">
     1090               <xsl:with-param name="target" select="$cmdsyn"/>
     1091             </xsl:call-template>
     1092           </xsl:when>
     1093           <xsl:otherwise>
     1094              <xsl:apply-templates select="$cmdsyn" mode="xref-to">
     1095                <xsl:with-param name="target" select="$cmdsyn"/>
     1096              </xsl:apply-templates>
     1097           </xsl:otherwise>
     1098         </xsl:choose>
     1099       </a>
     1100       </dt>
     1101
     1102        <xsl:call-template name="process.funcsynopsis.list">
     1103          <xsl:with-param name="funcsynopses" select="$funcsynopses"/>
     1104          <xsl:with-param name="count" select="$count+1"/>
     1105        </xsl:call-template>
     1106      </xsl:otherwise>
     1107    </xsl:choose>
     1108</xsl:template>
     1109
     1110<!-- ==================================================================== -->
     1111
     1112<xsl:template match="processing-instruction('dbhtml-include')">
     1113  <xsl:call-template name="pi.dbhtml-include"/>
     1114</xsl:template>
     1115
     1116<!-- ==================================================================== -->
     1117
     1118<xsl:template name="dbhtml-dir">
     1119  <xsl:param name="context" select="."/>
     1120  <!-- directories are now inherited from previous levels -->
     1121  <xsl:variable name="ppath">
     1122    <xsl:if test="$context/parent::*">
     1123      <xsl:call-template name="dbhtml-dir">
     1124        <xsl:with-param name="context" select="$context/parent::*"/>
     1125      </xsl:call-template>
     1126    </xsl:if>
     1127  </xsl:variable>
     1128  <xsl:variable name="path">
     1129    <xsl:call-template name="pi.dbhtml_dir">
     1130      <xsl:with-param name="node" select="$context"/>
     1131    </xsl:call-template>
     1132  </xsl:variable>
     1133  <xsl:choose>
     1134    <xsl:when test="$path = ''">
     1135      <xsl:if test="$ppath != ''">
     1136        <xsl:value-of select="$ppath"/>
     1137      </xsl:if>
     1138    </xsl:when>
     1139    <xsl:otherwise>
     1140      <xsl:if test="$ppath != ''">
     1141        <xsl:value-of select="$ppath"/>
     1142        <xsl:if test="substring($ppath, string-length($ppath), 1) != '/'">
     1143          <xsl:text>/</xsl:text>
     1144        </xsl:if>
     1145      </xsl:if>
     1146      <xsl:value-of select="$path"/>
     1147      <xsl:text>/</xsl:text>
     1148    </xsl:otherwise>
     1149  </xsl:choose>
     1150</xsl:template>
     1151
    2521152</xsl:stylesheet>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/profile-chunk-code.xsl

    r3ca2208 r00b1e11  
    6767
    6868  <xsl:variable name="dbhtml-filename">
    69     <xsl:call-template name="dbhtml-filename"/>
     69    <xsl:call-template name="pi.dbhtml_filename"/>
    7070  </xsl:variable>
    7171
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/qandaset.xsl

    r3ca2208 r00b1e11  
    2020  <xsl:variable name="preamble" select="*[local-name(.) != 'title'                                           and local-name(.) != 'titleabbrev'                                           and local-name(.) != 'qandadiv'                                           and local-name(.) != 'qandaentry']"/>
    2121  <xsl:variable name="toc">
    22     <xsl:call-template name="dbhtml-attribute">
    23       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    24       <xsl:with-param name="attribute" select="'toc'"/>
    25     </xsl:call-template>
     22    <xsl:call-template name="pi.dbhtml_toc"/>
    2623  </xsl:variable>
    2724
     
    7673
    7774  <xsl:variable name="toc">
    78     <xsl:call-template name="dbhtml-attribute">
    79       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    80       <xsl:with-param name="attribute" select="'toc'"/>
    81     </xsl:call-template>
     75    <xsl:call-template name="pi.dbhtml_toc"/>
    8276  </xsl:variable>
    8377
     
    317311
    318312  <xsl:variable name="label-width">
    319     <xsl:call-template name="dbhtml-attribute">
    320       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    321       <xsl:with-param name="attribute" select="'label-width'"/>
    322     </xsl:call-template>
     313    <xsl:call-template name="pi.dbhtml_label-width"/>
    323314  </xsl:variable>
    324315
    325316  <xsl:variable name="table-summary">
    326     <xsl:call-template name="dbhtml-attribute">
    327       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    328       <xsl:with-param name="attribute" select="'table-summary'"/>
    329     </xsl:call-template>
     317    <xsl:call-template name="pi.dbhtml_table-summary"/>
    330318  </xsl:variable>
    331319
    332320  <xsl:variable name="cellpadding">
    333     <xsl:call-template name="dbhtml-attribute">
    334       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    335       <xsl:with-param name="attribute" select="'cellpadding'"/>
    336     </xsl:call-template>
     321    <xsl:call-template name="pi.dbhtml_cellpadding"/>
    337322  </xsl:variable>
    338323
    339324  <xsl:variable name="cellspacing">
    340     <xsl:call-template name="dbhtml-attribute">
    341       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    342       <xsl:with-param name="attribute" select="'cellspacing'"/>
    343     </xsl:call-template>
     325    <xsl:call-template name="pi.dbhtml_cellspacing"/>
    344326  </xsl:variable>
    345327
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/sections.xsl

    r3ca2208 r00b1e11  
    436436      </xsl:if>
    437437    </xsl:if>
    438     <xsl:if test="$allow-anchors != 0">
     438    <xsl:if test="$allow-anchors != 0 and $generate.id.attributes = 0">
    439439      <xsl:call-template name="anchor">
    440440        <xsl:with-param name="node" select="$section"/>
    441441        <xsl:with-param name="conditional" select="0"/>
    442442      </xsl:call-template>
     443    </xsl:if>
     444    <xsl:if test="$generate.id.attributes != 0 and not(local-name(.) = 'appendix')">
     445      <xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute>
    443446    </xsl:if>
    444447    <xsl:copy-of select="$title"/>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/synop.xsl

    r3ca2208 r00b1e11  
    2424    <xsl:apply-templates select="." mode="class.attribute"/>
    2525    <p>
    26       <xsl:call-template name="anchor"/>
     26      <xsl:call-template name="anchor">
     27        <xsl:with-param name="conditional" select="0"/>
     28      </xsl:call-template>
    2729      <xsl:apply-templates/>
    2830    </p>
     
    178180<xsl:template match="funcprototype">
    179181  <xsl:variable name="html-style">
    180     <xsl:call-template name="dbhtml-attribute">
    181       <xsl:with-param name="pis" select="ancestor::funcsynopsis//processing-instruction('dbhtml')"/>
    182       <xsl:with-param name="attribute" select="'funcsynopsis-style'"/>
     182    <xsl:call-template name="pi.dbhtml_funcsynopsis-style">
     183      <xsl:with-param name="node" select="ancestor::funcsynopsis/descendant-or-self::*"/>
    183184    </xsl:call-template>
    184185  </xsl:variable>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/table.xsl

    r3ca2208 r00b1e11  
    136136
    137137  <xsl:variable name="summary">
    138     <xsl:call-template name="dbhtml-attribute">
    139       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    140       <xsl:with-param name="attribute" select="'table-summary'"/>
    141     </xsl:call-template>
     138    <xsl:call-template name="pi.dbhtml_table-summary"/>
    142139  </xsl:variable>
    143140
    144141  <xsl:variable name="cellspacing">
    145     <xsl:call-template name="dbhtml-attribute">
    146       <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    147       <xsl:with-param name="attribute" select="'cellspacing'"/>
    148     </xsl:call-template>
     142    <xsl:call-template name="pi.dbhtml_cellspacing"/>
    149143  </xsl:variable>
    150144
    151145  <xsl:variable name="cellpadding">
    152     <xsl:call-template name="dbhtml-attribute">
    153       <xsl:with-param name="pis" select="processing-instruction('dbhtml')[1]"/>
    154       <xsl:with-param name="attribute" select="'cellpadding'"/>
    155     </xsl:call-template>
     146    <xsl:call-template name="pi.dbhtml_cellpadding"/>
    156147  </xsl:variable>
    157148
     
    216207    <xsl:choose>
    217208      <xsl:when test="$table.borders.with.css != 0">
    218         <xsl:attribute name="border">0</xsl:attribute>
    219209        <xsl:choose>
    220210          <xsl:when test="../@frame='all' or (not(../@frame) and $default.table.frame='all')">
     
    303293            </xsl:attribute>
    304294          </xsl:when>
     295          <xsl:when test="../@frame='none'">
     296            <xsl:attribute name="style">
     297              <xsl:text>border: none;</xsl:text>
     298            </xsl:attribute>
     299          </xsl:when>
    305300          <xsl:otherwise>
    306301            <xsl:attribute name="style">
     
    309304          </xsl:otherwise>
    310305        </xsl:choose>
     306
    311307      </xsl:when>
    312308      <xsl:when test="../@frame='none' or (not(../@frame) and $default.table.frame='none') or local-name(.) = 'entrytbl'">
     
    327323
    328324    <xsl:variable name="explicit.table.width">
    329       <xsl:call-template name="dbhtml-attribute">
    330         <xsl:with-param name="pis" select="../processing-instruction('dbhtml')[1]"/>
    331         <xsl:with-param name="attribute" select="'table-width'"/>
     325      <xsl:call-template name="pi.dbhtml_table-width">
     326        <xsl:with-param name="node" select=".."/>
    332327      </xsl:call-template>
    333328    </xsl:variable>
     
    417412<xsl:template match="tgroup/processing-instruction('dbhtml')">
    418413  <xsl:variable name="summary">
    419     <xsl:call-template name="dbhtml-attribute">
    420       <xsl:with-param name="pis" select="."/>
    421       <xsl:with-param name="attribute" select="'table-summary'"/>
    422     </xsl:call-template>
     414    <xsl:call-template name="pi.dbhtml_table-summary"/>
    423415  </xsl:variable>
    424416
     
    546538  <xsl:variable name="row-height">
    547539    <xsl:if test="processing-instruction('dbhtml')">
    548       <xsl:call-template name="dbhtml-attribute">
    549         <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    550         <xsl:with-param name="attribute" select="'row-height'"/>
    551       </xsl:call-template>
     540      <xsl:call-template name="pi.dbhtml_row-height"/>
    552541    </xsl:if>
    553542  </xsl:variable>
     
    555544  <xsl:variable name="bgcolor">
    556545    <xsl:if test="processing-instruction('dbhtml')">
    557       <xsl:call-template name="dbhtml-attribute">
    558         <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    559         <xsl:with-param name="attribute" select="'bgcolor'"/>
    560       </xsl:call-template>
     546      <xsl:call-template name="pi.dbhtml_bgcolor"/>
    561547    </xsl:if>
    562548  </xsl:variable>
     
    564550  <xsl:variable name="class">
    565551    <xsl:if test="processing-instruction('dbhtml')">
    566       <xsl:call-template name="dbhtml-attribute">
    567         <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    568         <xsl:with-param name="attribute" select="'class'"/>
    569       </xsl:call-template>
     552      <xsl:call-template name="pi.dbhtml_class"/>
    570553    </xsl:if>
    571554  </xsl:variable>
     
    777760      <xsl:variable name="bgcolor">
    778761        <xsl:if test="processing-instruction('dbhtml')">
    779           <xsl:call-template name="dbhtml-attribute">
    780             <xsl:with-param name="pis" select="processing-instruction('dbhtml')"/>
    781             <xsl:with-param name="attribute" select="'bgcolor'"/>
    782           </xsl:call-template>
     762          <xsl:call-template name="pi.dbhtml_bgcolor"/>
    783763        </xsl:if>
    784764      </xsl:variable>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/titlepage.xsl

    r3ca2208 r00b1e11  
    929929  <h1>
    930930    <xsl:apply-templates select="." mode="class.attribute"/>
    931     <a id="{$id}"/>
     931    <xsl:if test="$generate.id.attributes = 0">
     932      <a id="{$id}"/>
     933    </xsl:if>
    932934    <xsl:choose>
    933935      <xsl:when test="$show.revisionflag != 0 and @revisionflag">
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/verbatim.xsl

    r3ca2208 r00b1e11  
    170170  <!-- Extract the <?dbhtml linenumbering.*?> PI values -->
    171171  <xsl:variable name="pi.linenumbering.everyNth">
    172     <xsl:call-template name="dbhtml-attribute">
    173       <xsl:with-param name="pis" select="$pi.context/processing-instruction('dbhtml')"/>
    174       <xsl:with-param name="attribute" select="'linenumbering.everyNth'"/>
     172    <xsl:call-template name="pi.dbhtml_linenumbering.everyNth">
     173      <xsl:with-param name="node" select="$pi.context"/>
    175174    </xsl:call-template>
    176175  </xsl:variable>
    177176
    178177  <xsl:variable name="pi.linenumbering.separator">
    179     <xsl:call-template name="dbhtml-attribute">
    180       <xsl:with-param name="pis" select="$pi.context/processing-instruction('dbhtml')"/>
    181       <xsl:with-param name="attribute" select="'linenumbering.separator'"/>
     178    <xsl:call-template name="pi.dbhtml_linenumbering.separator">
     179      <xsl:with-param name="node" select="$pi.context"/>
    182180    </xsl:call-template>
    183181  </xsl:variable>
    184182
    185183  <xsl:variable name="pi.linenumbering.width">
    186     <xsl:call-template name="dbhtml-attribute">
    187       <xsl:with-param name="pis" select="$pi.context/processing-instruction('dbhtml')"/>
    188       <xsl:with-param name="attribute" select="'linenumbering.width'"/>
     184    <xsl:call-template name="pi.dbhtml_linenumbering.width">
     185      <xsl:with-param name="node" select="$pi.context"/>
    189186    </xsl:call-template>
    190187  </xsl:variable>
  • BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/xref.xsl

    r3ca2208 r00b1e11  
    727727</xsl:template>
    728728
    729 <!-- This is currently not working, because there is no corresponding ID generated by Java extensions for processing callouts
    730729<xsl:template match="area|areaset" mode="xref-to">
    731730  <xsl:param name="referrer"/>
     
    738737  </xsl:call-template>
    739738</xsl:template>
    740 -->
    741739
    742740<xsl:template match="book" mode="xref-to">
  • BOOK/stylesheets/lfs-xsl/nochunks.xsl

    r3ca2208 r00b1e11  
    479479
    480480.itemizedlist li ul li p {
    481   margin-top: .3em;
    482   margin-bottom: .3em;
     481  margin-top: .5em;
     482  margin-bottom: .5em;
    483483}
    484484
Note: See TracChangeset for help on using the changeset viewer.