Ignore:
Timestamp:
07/21/2007 03:01:56 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
3f96749
Parents:
f5da8e9
Message:

Merged r8226 from new-xsl branch.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6943 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-xsl/docbook-xsl-snapshot/common/common.xsl

    rf5da8e9 rbbe9b3da  
    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>
Note: See TracChangeset for help on using the changeset viewer.