refentry.version.profile.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.version.profile">
  7. <refmeta>
  8. <refentrytitle>refentry.version.profile</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>refentry.version.profile</refname>
  13. <refpurpose>Specifies profile for refentry "version" data</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="refentry.version.profile.frag">
  17. <xsl:param name="refentry.version.profile">
  18. (($info[//productnumber])[last()]/productnumber)[1]|
  19. (($info[//edition])[last()]/edition)[1]|
  20. (($info[//releaseinfo])[last()]/releaseinfo)[1]
  21. </xsl:param>
  22. </src:fragment>
  23. </refsynopsisdiv>
  24. <refsection><info><title>Description</title></info>
  25. <para>The value of <parameter>refentry.version.profile</parameter> is
  26. a string representing an XPath expression. It is evaluated at
  27. run-time and used only if
  28. <parameter>refentry.version.profile.enabled</parameter> is
  29. non-zero. Otherwise, the <tag>refentry</tag> metadata-gathering logic
  30. "hard coded" into the stylesheets is used.</para>
  31. <para>A "source.name" is one part of a (potentially) two-part
  32. <replaceable>Name</replaceable> <replaceable>Version</replaceable>
  33. "source" field. For more details, see the documentation for the
  34. <parameter>refentry.source.name.profile</parameter> parameter.</para>
  35. </refsection>
  36. </refentry>