Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > 6e019a662639ac6470f50dea3a4d8157 > files > 1026

docbook-style-xsl-doc-1.79.2-4.mga7.noarch.rpm

<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <title>refentry.source.name.profile</title><link rel="stylesheet" type="text/css" href="../reference.css"><meta name="generator" content="DocBook XSL Stylesheets V1.79.2"><link rel="home" href="../index.html" title="DocBook XSL Stylesheets: Reference&nbsp;Documentation"><link rel="up" href="refmeta.html" title="Refentry metadata gathering"><link rel="prev" href="refentry.source.name.suppress.html" title="refentry.source.name.suppress"><link rel="next" href="refentry.source.name.profile.enabled.html" title="refentry.source.name.profile.enabled"><link rel="copyright" href="copyright.html" title="License"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">refentry.source.name.profile</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="refentry.source.name.suppress.html">Prev</a>&nbsp;</td><th width="60%" align="center">Refentry metadata gathering</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="refentry.source.name.profile.enabled.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="refentry.source.name.profile"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">refentry.source.name.profile</span></h2><p>refentry.source.name.profile &#8212; Specifies profile for refentry "source name" data</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><a name="refentry.source.name.profile.frag"></a><pre class="programlisting">
&lt;xsl:param name="refentry.source.name.profile"&gt;
  (($info[//productname])[last()]/productname)[1]|
  (($info[//corpname])[last()]/corpname)[1]|
  (($info[//corpcredit])[last()]/corpcredit)[1]|
  (($info[//corpauthor])[last()]/corpauthor)[1]|
  (($info[//orgname])[last()]/orgname)[1]|
  (($info[//publishername])[last()]/publishername)[1]
&lt;/xsl:param&gt;
</pre></div><div class="refsection"><a name="d0e26670"></a><h2>Description</h2><p>The value of <em class="parameter"><code>refentry.source.name.profile</code></em>
is a string representing an XPath expression. It is evaluated at
run-time and used only if
<em class="parameter"><code>refentry.source.name.profile.enabled</code></em> is
non-zero. Otherwise, the <code class="sgmltag-element">refentry</code> metadata-gathering logic
"hard coded" into the stylesheets is used.</p><p>A "source name" is one part of a (potentially) two-part
<em class="replaceable"><code>Name</code></em>&nbsp;<em class="replaceable"><code>Version</code></em>
"source" field. In man pages, it is usually displayed in the left
footer of the page. It typically indicates the software system or
product that the item documented in the man page belongs to. The
<code class="literal">man(7)</code> man page describes it as "the source of
the command", and provides the following examples:
</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>For binaries, use something like: GNU, NET-2, SLS
    Distribution, MCC Distribution.</p></li><li class="listitem"><p>For system calls, use the version of the kernel that you
    are currently looking at: Linux 0.99.11.</p></li><li class="listitem"><p>For library calls, use the source of the function: GNU, BSD
    4.3, Linux DLL 4.4.1.</p></li></ul></div><p>
</p><p>In practice, there are many pages that simply have a Version
number in the "source" field. So, it looks like what we have is a
two-part field,
<em class="replaceable"><code>Name</code></em>&nbsp;<em class="replaceable"><code>Version</code></em>,
where:
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term">Name</span></dt><dd><p>product name (e.g., BSD) or org. name (e.g., GNU)</p></dd><dt><span class="term">Version</span></dt><dd><p>version number</p></dd></dl></div><p>
Each part is optional. If the <em class="replaceable"><code>Name</code></em> is a
product name, then the <em class="replaceable"><code>Version</code></em> is probably
the version of the product. Or there may be no
<em class="replaceable"><code>Name</code></em>, in which case, if there is a
<em class="replaceable"><code>Version</code></em>, it is probably the version
of the item itself, not the product it is part of. Or, if the
<em class="replaceable"><code>Name</code></em> is an organization name, then there
probably will be no <em class="replaceable"><code>Version</code></em>.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="refentry.source.name.suppress.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="refmeta.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="refentry.source.name.profile.enabled.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">refentry.source.name.suppress&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;refentry.source.name.profile.enabled</td></tr></table></div></body></html>