Sophie

Sophie

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

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>select.choice.separator</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="base.html" title="Common &raquo; Base Template Reference"><link rel="prev" href="template.string.lower.html" title="string.lower"><link rel="next" href="template.evaluate.info.profile.html" title="evaluate.info.profile"><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">select.choice.separator</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="template.string.lower.html">Prev</a>&nbsp;</td><th width="60%" align="center">Common &raquo; Base Template Reference</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="template.evaluate.info.profile.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="template.select.choice.separator"></a><div class="titlepage"></div><div class="refnamediv"><h2>select.choice.separator</h2><p>select.choice.separator &#8212; Returns localized choice separator</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">&lt;xsl:template name="select.choice.separator"/&gt;</pre></div><div class="refsect1"><a name="d0e34131"></a><h2>Description</h2><p>This template enables auto-generation of an appropriate
    localized "choice" separator (for example, "and" or "or") before
    the final item in an inline list (though it could also be useful
    for generating choice separators for non-inline lists).</p><p>It currently works by evaluating a processing instruction
    (PI) of the form &lt;?dbchoice&nbsp;choice="foo"?&gt; :
    
</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">if the value of the <code class="sgmltag-element">choice</code>
        pseudo-attribute is "and" or "or", returns a localized "and"
        or "or"</li><li class="listitem">otherwise returns the literal value of the
        <code class="sgmltag-element">choice</code> pseudo-attribute</li></ul></div><p>

    The latter is provided only as a temporary workaround because the
    locale files do not currently have translations for the word
    <em class="wordasword">or</em>. So if you want to generate a a
    logical "or" separator in French (for example), you currently need
    to do this:
    </p><div class="literallayout"><p>&lt;?dbchoice&nbsp;choice="ou"?&gt;</p></div><p>
    </p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>The <code class="sgmltag-element">dbchoice</code> processing instruction is
      an unfortunate hack; support for it may disappear in the future
      (particularly if and when a more appropriate means for marking
      up "choice" lists becomes available in DocBook).</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="template.string.lower.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="base.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="template.evaluate.info.profile.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">string.lower&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;evaluate.info.profile</td></tr></table></div></body></html>