refentry.date.profile.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <refsynopsisdiv>
  16. <src:fragment xml:id="refentry.date.profile.frag">
  17. <xsl:param name="refentry.date.profile">
  18. (($info[//date])[last()]/date)[1]|
  19. (($info[//pubdate])[last()]/pubdate)[1]
  20. </xsl:param>
  21. </src:fragment>
  22. </refsynopsisdiv>
  23. <refsection><info><title>Description</title></info>
  24. <para>The value of <parameter>refentry.date.profile</parameter> is a
  25. string representing an XPath expression. It is evaluated at run-time
  26. and used only if <parameter>refentry.date.profile.enabled</parameter>
  27. is non-zero. Otherwise, the <tag>refentry</tag> metadata-gathering
  28. logic "hard coded" into the stylesheets is used.</para>
  29. <para> The <literal>man(7)</literal> man page describes this content
  30. as "the date of the last revision". In man pages, it is the content
  31. that is usually displayed in the center footer.</para>
  32. </refsection>
  33. </refentry>