]> git.stg.codes - stg.git/blob - doc/xslt/params/refentry.date.profile.xml
Merge branch 'master' into naffanya-dev
[stg.git] / doc / xslt / params / refentry.date.profile.xml
1 <refentry xmlns="http://docbook.org/ns/docbook"
2           xmlns:xlink="http://www.w3.org/1999/xlink"
3           xmlns:xi="http://www.w3.org/2001/XInclude"
4           xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
5           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6           version="5.0" xml:id="refentry.date.profile">
7 <refmeta>
8 <refentrytitle>refentry.date.profile</refentrytitle>
9 <refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
10 </refmeta>
11 <refnamediv>
12 <refname>refentry.date.profile</refname>
13 <refpurpose>Specifies profile for refentry "date" data</refpurpose>
14 </refnamediv>
15
16 <refsynopsisdiv>
17 <src:fragment xml:id="refentry.date.profile.frag">
18 <xsl:param name="refentry.date.profile">
19   (($info[//date])[last()]/date)[1]|
20   (($info[//pubdate])[last()]/pubdate)[1]
21 </xsl:param>
22 </src:fragment>
23 </refsynopsisdiv>
24
25 <refsection><info><title>Description</title></info>
26
27 <para>The value of <parameter>refentry.date.profile</parameter> is a
28 string representing an XPath expression. It is evaluated at run-time
29 and used only if <parameter>refentry.date.profile.enabled</parameter>
30 is non-zero. Otherwise, the <tag>refentry</tag> metadata-gathering
31 logic "hard coded" into the stylesheets is used.</para>
32
33 <para> The <literal>man(7)</literal> man page describes this content
34 as "the date of the last revision". In man pages, it is the content
35 that is usually displayed in the center footer.</para>
36
37 </refsection>
38 </refentry>