]> git.stg.codes - stg.git/blob - doc/xslt/params/refentry.source.fallback.profile.xml
Ticket 26. The std::string modulePath variable definition moved after
[stg.git] / doc / xslt / params / refentry.source.fallback.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.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
16 <refsynopsisdiv>
17 <src:fragment xml:id="refentry.source.fallback.profile.frag">
18 <xsl:param name="refentry.source.fallback.profile">
19 refmeta/refmiscinfo[not(@class = 'date')][1]/node()</xsl:param>
20 </src:fragment>
21 </refsynopsisdiv>
22
23 <refsection><info><title>Description</title></info>
24
25 <para>The value of
26 <parameter>refentry.source.fallback.profile</parameter> is a string
27 representing an XPath expression. It is evaluated at run-time and used
28 only if no "source" data can be found by other means (that is, either
29 using the <tag>refentry</tag> metadata-gathering logic "hard coded" in
30 the stylesheets, or the value of the
31 <parameter>refentry.source.name.profile</parameter> and
32 <parameter>refentry.version.profile</parameter> parameters, if those
33 are enabled).</para>
34
35 <important>
36 <para>Depending on which XSLT engine you run, either the EXSLT
37 <function>dyn:evaluate</function> extension function (for xsltproc or
38 Xalan) or <function>saxon:evaluate</function> extension function (for
39 Saxon) are used to dynamically evaluate the value of
40 <parameter>refentry.source.fallback.profile</parameter> at
41 run-time. If you don't use xsltproc, Saxon, Xalan -- or some other
42 XSLT engine that supports <function>dyn:evaluate</function> -- you
43 must manually disable fallback processing by setting an empty value
44 for the <parameter>refentry.source.fallback.profile</parameter>
45 parameter.</para>
46 </important>
47
48 </refsection>
49 </refentry>