MOON
Server: Apache
System: Linux vps.thepromohut.com 2.6.18-398.el5 #1 SMP Tue Sep 16 20:51:48 EDT 2014 i686
User: caretrak (507)
PHP: 5.2.10
Disabled: NONE
Upload Files
File: //usr/share/doc/docbook-style-xsl-1.69.1/doc/html/l10n.lang.value.rfc.compliant.html
<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <title>l10n.lang.value.rfc.compliant</title><link rel="stylesheet" href="../ref.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.0"><link rel="start" href="index.html" title="HTML Parameter Reference"><link rel="up" href="rn23.html" title="Localization"><link rel="prev" href="l10n.gentext.use.xref.language.html" title="l10n.gentext.use.xref.language"><link rel="next" href="apa.html" title="Appendix&nbsp;A.&nbsp;The Stylesheet"></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="apa.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="l10n.lang.value.rfc.compliant"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</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="refsect1" lang="en"><a name="d0e7765"></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<sup>[<a name="d0e7773" href="#ftn.d0e7773">1</a>]</sup>.

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 width="100" align="left"><div class="footnote"><p><sup>[<a name="ftn.d0e7773" href="#d0e7773">1</a>] </sup>Section 8.1.1, <a 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:

<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 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></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="rn23.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="apa.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;Appendix&nbsp;A.&nbsp;The Stylesheet</td></tr></table></div></body></html>