refentry.source.fallback.profile.xml 2.0 KB

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