- Timestamp:
- 07/21/2007 03:00:15 PM (17 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- b1a3697
- Parents:
- 85117fe2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-snapshot/common/common.xsl
r85117fe2 r60a5a938 15 15 copyright and other information. 16 16 17 This file contains general templates common to both the HTML and FO18 versions of the DocBook stylesheets.19 17 ******************************************************************** --> 20 18 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> 49 35 </doc:reference> 50 36 … … 184 170 <refdescription id="section.level-desc"> 185 171 <para>This template calculates the hierarchical level of a section. 186 The element < sgmltag>sect1</sgmltag> is at level 1, <sgmltag>sect2</sgmltag> is172 The element <tag>sect1</tag> is at level 1, <tag>sect2</tag> is 187 173 at level 2, etc.</para> 188 174 … … 1325 1311 <!-- ====================================================================== --> 1326 1312 <!-- 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"/> 1348 1316 <xsl:choose> 1349 1317 <xsl:when test="not($list/@continuation = 'continues')"> … … 1352 1320 <xsl:value-of select="@startingnumber"/> 1353 1321 </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"/> 1359 1324 </xsl:when> 1360 1325 <xsl:otherwise>1</xsl:otherwise> … … 1363 1328 <xsl:otherwise> 1364 1329 <xsl:variable name="prevlist" 1365 1330 select="$list/preceding::orderedlist[1]"/> 1366 1331 <xsl:choose> 1367 1332 <xsl:when test="count($prevlist) = 0">2</xsl:when> … … 1383 1348 <!-- context node must be a listitem in an orderedlist --> 1384 1349 <xsl:param name="node" select="."/> 1385 1386 1350 <xsl:choose> 1387 1351 <xsl:when test="$node/@override"> … … 1904 1868 the final item in an inline list (though it could also be useful 1905 1869 for generating choice separators for non-inline lists).</para> 1906 1907 1870 <para>It currently works by evaluating a processing instruction 1908 1871 (PI) of the form <?dbchoice choice="foo"?> : 1909 1910 1872 <itemizedlist> 1911 1873 <listitem> 1912 <simpara>if the value of the < sgmltag>choice</sgmltag>1874 <simpara>if the value of the <tag>choice</tag> 1913 1875 pseudo-attribute is "and" or "or", returns a localized "and" 1914 1876 or "or"</simpara> … … 1916 1878 <listitem> 1917 1879 <simpara>otherwise returns the literal value of the 1918 < sgmltag>choice</sgmltag> pseudo-attribute</simpara>1880 <tag>choice</tag> pseudo-attribute</simpara> 1919 1881 </listitem> 1920 1882 </itemizedlist> 1921 1922 1883 The latter is provided only as a temporary workaround because the 1923 1884 locale files do not currently have translations for the word … … 1925 1886 logical "or" separator in French (for example), you currently need 1926 1887 to do this: 1927 1928 1888 <literallayout><?dbchoice choice="ou"?></literallayout> 1929 1889 </para> 1930 1931 1890 <warning> 1932 <para>The < sgmltag>dbchoice</sgmltag> processing instruction is1891 <para>The <tag>dbchoice</tag> processing instruction is 1933 1892 an unfortunate hack; support for it may disappear in the future 1934 1893 (particularly if and when a more appropriate means for marking … … 1938 1897 </doc:template> 1939 1898 <xsl:template name="select.choice.separator"> 1940 1941 1899 <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> 1948 1902 <xsl:choose> 1949 1903 <!-- if value of $choice is "and" or "or", translate to equivalent in --> … … 2025 1979 </xsl:choose> 2026 1980 </xsl:template> 2027 2028 1981 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.