refentry.manual.fallback.profile.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.manual.fallback.profile">
  7. <refmeta>
  8. <refentrytitle>refentry.manual.fallback.profile</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>refentry.manual.fallback.profile</refname>
  13. <refpurpose>Specifies profile of "fallback" for refentry "manual" data</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="refentry.manual.fallback.profile.frag">
  17. <xsl:param name="refentry.manual.fallback.profile">
  18. refmeta/refmiscinfo[not(@class = 'date')][1]/node()</xsl:param>
  19. </src:fragment>
  20. </refsynopsisdiv>
  21. <refsection><info><title>Description</title></info>
  22. <para>The value of
  23. <parameter>refentry.manual.fallback.profile</parameter> is a string
  24. representing an XPath expression. It is evaluated at run-time and
  25. used only if no "manual" data can be found by other means (that is,
  26. either using the <tag>refentry</tag> metadata-gathering logic "hard
  27. coded" in the stylesheets, or the value of
  28. <parameter>refentry.manual.profile</parameter>, if it is
  29. enabled).</para>
  30. <important>
  31. <para>Depending on which XSLT engine you run, either the EXSLT
  32. <function>dyn:evaluate</function> extension function (for xsltproc or
  33. Xalan) or <function>saxon:evaluate</function> extension function (for
  34. Saxon) are used to dynamically evaluate the value of
  35. <parameter>refentry.manual.fallback.profile</parameter> at
  36. run-time. If you don't use xsltproc, Saxon, Xalan -- or some other
  37. XSLT engine that supports <function>dyn:evaluate</function> -- you
  38. must manually disable fallback processing by setting an empty value
  39. for the <parameter>refentry.manual.fallback.profile</parameter>
  40. parameter.</para>
  41. </important>
  42. </refsection>
  43. </refentry>