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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.