diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2013-10-08 20:03:29 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2013-10-08 20:03:29 +0000 |
commit | 15c7d39533a1eb1da0748011f3378fd0f02ed14d (patch) | |
tree | a7ed12df60c5ffd4d00a570804c51470bfb8b0f5 /stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/l10n.lang.value.rfc.compliant.xml | |
parent | 09a35dd7178070f01a7961d2ded39e11ba2aac83 (diff) |
Update stylesheets to docbook-xsl-1.78.1.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/l10n.lang.value.rfc.compliant.xml')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/l10n.lang.value.rfc.compliant.xml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/l10n.lang.value.rfc.compliant.xml b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/l10n.lang.value.rfc.compliant.xml new file mode 100644 index 000000000..e0dbd7953 --- /dev/null +++ b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/l10n.lang.value.rfc.compliant.xml @@ -0,0 +1,57 @@ +<refentry xmlns="http://docbook.org/ns/docbook" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version="5.0" xml:id="l10n.lang.value.rfc.compliant"> +<refmeta> +<refentrytitle>l10n.lang.value.rfc.compliant</refentrytitle> +<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo> +</refmeta> +<refnamediv> +<refname>l10n.lang.value.rfc.compliant</refname> +<refpurpose>Make value of lang attribute RFC compliant?</refpurpose> +</refnamediv> + +<refsynopsisdiv> +<src:fragment xml:id="l10n.lang.value.rfc.compliant.frag"> +<xsl:param name="l10n.lang.value.rfc.compliant" select="1"/> +</src:fragment> +</refsynopsisdiv> + +<refsection><info><title>Description</title></info> + +<para>If non-zero, ensure that the values for all <tag class="attribute">lang</tag> attributes in HTML output are RFC +compliant<footnote><para>Section 8.1.1, <link xlink:href="http://www.w3.org/TR/REC-html40/struct/dirlang.html#h-8.1.1">Language Codes</link>, in the HTML 4.0 Recommendation states that: + +<blockquote><para>[RFC1766] defines and explains the language codes +that must be used in HTML documents.</para> +<para>Briefly, language codes consist of a primary code and a possibly +empty series of subcodes: + +<literallayout class="monospaced">language-code = primary-code ( "-" subcode )*</literallayout> +</para> +<para>And in RFC 1766, <link xlink:href="http://www.ietf.org/rfc/rfc1766.txt">Tags for the Identification +of Languages</link>, the EBNF for "language tag" is given as: + +<literallayout class="monospaced">Language-Tag = Primary-tag *( "-" Subtag ) +Primary-tag = 1*8ALPHA +Subtag = 1*8ALPHA</literallayout> +</para> +</blockquote> +</para></footnote>. + +by taking any underscore characters in any <tag class="attribute">lang</tag> values found in source documents, and +replacing them with hyphen characters in output HTML files. For +example, <literal>zh_CN</literal> in a source document becomes +<literal>zh-CN</literal> in the HTML output form that source. + +<note> +<para>This parameter does not cause any case change in <tag class="attribute">lang</tag> values, because RFC 1766 +explicitly states that all "language tags" (as it calls them) "are +to be treated as case insensitive".</para> +</note> +</para> + +</refsection> +</refentry> |