Sophie

Sophie

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

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>l10n.lang.value.rfc.compliant</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="l10n.html" title="Localization"><link rel="prev" href="l10n.gentext.use.xref.language.html" title="l10n.gentext.use.xref.language"><link rel="next" href="writing.mode.html" title="writing.mode"><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">l10n.lang.value.rfc.compliant</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="l10n.gentext.use.xref.language.html">Prev</a>&nbsp;</td><th width="60%" align="center">Localization</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="writing.mode.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="l10n.lang.value.rfc.compliant"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">l10n.lang.value.rfc.compliant</span></h2><p>l10n.lang.value.rfc.compliant &#8212; Make value of lang attribute RFC compliant?</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><a name="l10n.lang.value.rfc.compliant.frag"></a><pre class="programlisting">
&lt;xsl:param name="l10n.lang.value.rfc.compliant" select="1"&gt;&lt;/xsl:param&gt;
</pre></div><div class="refsection"><a name="d0e11292"></a><h2>Description</h2><p>If non-zero, ensure that the values for all <code class="sgmltag-attribute">lang</code> attributes in HTML output are RFC
compliant<a href="#ftn.d0e11301" class="footnote" name="d0e11301"><sup class="footnote">[2]</sup></a>.

by taking any underscore characters in any <code class="sgmltag-attribute">lang</code> values found in source documents, and
replacing them with hyphen characters in output HTML files. For
example, <code class="literal">zh_CN</code> in a source document becomes
<code class="literal">zh-CN</code> in the HTML output form that source.

</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This parameter does not cause any case change in <code class="sgmltag-attribute">lang</code> values, because RFC 1766
explicitly states that all "language tags" (as it calls them) "are
to be treated as case insensitive".</p></div><p>
</p></div><div class="footnotes"><br><hr style="width:100; text-align:left;margin-left: 0"><div id="ftn.d0e11301" class="footnote"><p><a href="#d0e11301" class="para"><sup class="para">[2] </sup></a>Section 8.1.1, <a class="link" href="http://www.w3.org/TR/REC-html40/struct/dirlang.html#h-8.1.1" target="_top">Language Codes</a>, in the HTML 4.0 Recommendation states that:

</p><div class="blockquote"><blockquote class="blockquote"><p>[RFC1766] defines and explains the language codes
that must be used in HTML documents.</p><p>Briefly, language codes consist of a primary code and a possibly
empty series of subcodes:

</p><pre class="literallayout">language-code = primary-code ( "-" subcode )*</pre><p>
</p><p>And in RFC 1766, <a class="link" href="http://www.ietf.org/rfc/rfc1766.txt" target="_top">Tags for the Identification
of Languages</a>, the EBNF for "language tag" is given as:

</p><pre class="literallayout">Language-Tag = Primary-tag *( "-" Subtag )
Primary-tag = 1*8ALPHA
Subtag = 1*8ALPHA</pre><p>
</p></blockquote></div><p>
</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="l10n.gentext.use.xref.language.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="l10n.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="writing.mode.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">l10n.gentext.use.xref.language&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;writing.mode</td></tr></table></div></body></html>