- From: CVS User ysavoure <cvsmail@w3.org>
- Date: Sun, 24 Mar 2013 13:18:06 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20 In directory gil:/tmp/cvs-serv10600 Modified Files: its20.html its20.odd Log Message: added HTML5 example for Locale Filter and removed an XML one. --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html 2013/03/24 13:00:05 1.350 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html 2013/03/24 13:18:06 1.351 @@ -2221,20 +2221,27 @@ <strong class="hl-tag" style="color: #000096"><remark></strong>Note: This section will be written later.<strong class="hl-tag" style="color: #000096"></remark></strong>
 <strong class="hl-tag" style="color: #000096"></info></strong>
 <strong class="hl-tag" style="color: #000096"></book></strong>
 -</pre></div><p>[Source file: <a href="examples/xml/EX-locale-filter-selector-1.xml" shape="rect">examples/xml/EX-locale-filter-selector-1.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-locale-filter-selector-2" id="EX-locale-filter-selector-2" shape="rect"/>Example 61: The <a href="#LocaleFilter" shape="rect">Locale Filter</a> data category expressed - globally</div><p>The <code class="its-elem-markup">localeFilterRule</code> element specifies that editorial remarks should be - removed from all translations.</p><div class="exampleInner"><pre xml:space="preserve"><strong class="hl-tag" style="color: #000096"><section</strong> <span class="hl-attribute" style="color: #F5844C">xmlns:its</span>=<span class="hl-value" style="color: #993300">"http://www.w3.org/2005/11/its"</span><strong class="hl-tag" style="color: #000096">></strong>
 - <strong class="hl-tag" style="color: #000096"><info></strong>
 - <strong class="hl-tag" style="color: #000096"><its:rules</strong> <span class="hl-attribute" style="color: #F5844C">version</span>=<span class="hl-value" style="color: #993300">"2.0"</span><strong class="hl-tag" style="color: #000096">></strong>
 - <strong class="hl-tag" style="color: #000096"><its:localeFilterRule</strong> <span class="hl-attribute" style="color: #F5844C">selector</span>=<span class="hl-value" style="color: #993300">"//remark"</span> <span class="hl-attribute" style="color: #F5844C">localeFilterList</span>=<span class="hl-value" style="color: #993300">""</span><strong class="hl-tag" style="color: #000096">/></strong>
 - <strong class="hl-tag" style="color: #000096"></its:rules></strong>
 - <strong class="hl-tag" style="color: #000096"></info></strong>
 - <strong class="hl-tag" style="color: #000096"><remark></strong>Note: This section will be written later.<strong class="hl-tag" style="color: #000096"></remark></strong>
 -<strong class="hl-tag" style="color: #000096"></section></strong>
 -</pre></div><p>[Source file: <a href="examples/xml/EX-locale-filter-selector-2.xml" shape="rect">examples/xml/EX-locale-filter-selector-2.xml</a>]</p></div><p id="localefilter-local">LOCAL: The following local markup is available for the +</pre></div><p>[Source file: <a href="examples/xml/EX-locale-filter-selector-1.xml" shape="rect">examples/xml/EX-locale-filter-selector-1.xml</a>]</p></div><p id="localefilter-local">LOCAL: The following local markup is available for the <a href="#LocaleFilter" shape="rect">Locale Filter</a> data category:</p><ul><li><p>A <code class="its-attr-markup">localeFilterList</code> attribute with a comma-separated list of extended - language ranges, or an empty string value.</p></li><li><p>An optional <code class="its-attr-markup">localeFilterType</code> attribute with a value "include" or "exclude".</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-locale-filter-attribute-1" id="EX-locale-filter-attribute-1" shape="rect"/>Example 62: The <a href="#LocaleFilter" shape="rect">Locale Filter</a> data category expressed - locally</div><div class="exampleInner"><pre xml:space="preserve"><strong class="hl-tag" style="color: #000096"><book</strong> <span class="hl-attribute" style="color: #F5844C">xmlns:its</span>=<span class="hl-value" style="color: #993300">"http://www.w3.org/2005/11/its"</span><strong class="hl-tag" style="color: #000096">></strong>
 + language ranges, or an empty string value.</p></li><li><p>An optional <code class="its-attr-markup">localeFilterType</code> attribute with a value "include" or "exclude".</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-locale-filter-locale-html5-1" id="EX-locale-filter-locale-html5-1" shape="rect"/>Example 61: The <a href="#LocaleFilter" shape="rect">Locale Filter</a> data category expressed + locally in HTML</div><p>In this example the <a href="#LocaleFilter" shape="rect">Locale Filter</a> data category is used to select different sections + depending on whether the locale is a Canadian one or not.</p><div class="exampleInner"><pre xml:space="preserve"><strong class="hl-tag" style="color: blue"><!DOCTYPE html></strong>
 +<strong class="hl-tag" style="color: #000096"><html></strong>
 + <strong class="hl-tag" style="color: #000096"><head></strong>
 + <strong class="hl-tag" style="color: #000096"><meta</strong> <span class="hl-attribute" style="color: #F5844C">charset</span>=<span class="hl-value" style="color: #993300">utf-8</span><strong class="hl-tag" style="color: #000096">></strong> 
 + <strong class="hl-tag" style="color: #000096"><title></strong>Locale filter<strong class="hl-tag" style="color: #000096"></title></strong>
 + <strong class="hl-tag" style="color: #000096"></head></strong> 
 + <strong class="hl-tag" style="color: #000096"><body></strong> 
 + <strong class="hl-tag" style="color: #000096"><div</strong> <span class="hl-attribute" style="color: #F5844C">its-locale-filter-list</span>=<span class="hl-value" style="color: #993300">"*-ca"</span><strong class="hl-tag" style="color: #000096">></strong>
 + <strong class="hl-tag" style="color: #000096"><p></strong>Text for Canadian locales.<strong class="hl-tag" style="color: #000096"></p></strong>
 + <strong class="hl-tag" style="color: #000096"></div></strong>
 + <strong class="hl-tag" style="color: #000096"><div</strong> <span class="hl-attribute" style="color: #F5844C">its-locale-filter-list</span>=<span class="hl-value" style="color: #993300">"*-ca"</span> <span class="hl-attribute" style="color: #F5844C">its-locale-filter-type</span>=<span class="hl-value" style="color: #993300">"exclude"</span><strong class="hl-tag" style="color: #000096">></strong>
 + <strong class="hl-tag" style="color: #000096"><p></strong>Text for non-Canadian locales.<strong class="hl-tag" style="color: #000096"></p></strong>
 + <strong class="hl-tag" style="color: #000096"></div></strong>
 + <strong class="hl-tag" style="color: #000096"></body></strong>
 +<strong class="hl-tag" style="color: #000096"></html></strong>
 +</pre></div><p>[Source file: <a href="examples/html5/EX-locale-filter-local-html5-1.html" shape="rect">examples/html5/EX-locale-filter-local-html5-1.html</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-locale-filter-attribute-1" id="EX-locale-filter-attribute-1" shape="rect"/>Example 62: The <a href="#LocaleFilter" shape="rect">Locale Filter</a> data category expressed + locally in XML</div><div class="exampleInner"><pre xml:space="preserve"><strong class="hl-tag" style="color: #000096"><book</strong> <span class="hl-attribute" style="color: #F5844C">xmlns:its</span>=<span class="hl-value" style="color: #993300">"http://www.w3.org/2005/11/its"</span><strong class="hl-tag" style="color: #000096">></strong>
 <strong class="hl-tag" style="color: #000096"><info></strong>
 <strong class="hl-tag" style="color: #000096"><legalnotice</strong> <span class="hl-attribute" style="color: #F5844C">its:localeFilterList</span>=<span class="hl-value" style="color: #993300">"en-CA, fr-CA"</span><strong class="hl-tag" style="color: #000096">></strong>
 <strong class="hl-tag" style="color: #000096"><para></strong>This legal notice is only for English and French Canadian locales.<strong class="hl-tag" style="color: #000096"></para></strong>
 --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd 2013/03/24 13:00:05 1.344 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd 2013/03/24 13:18:06 1.345 @@ -3378,14 +3378,6 @@ <egXML xmlns="http://www.tei-c.org/ns/Examples" target="examples/xml/EX-locale-filter-selector-1.xml"/> </exemplum> - <exemplum xml:id="EX-locale-filter-selector-2"> - <head>The <ref target="#LocaleFilter">Locale Filter</ref> data category expressed - globally</head> - <p>The <gi>localeFilterRule</gi> element specifies that editorial remarks should be - removed from all translations.</p> - <egXML xmlns="http://www.tei-c.org/ns/Examples" - target="examples/xml/EX-locale-filter-selector-2.xml"/> - </exemplum> <p xml:id="localefilter-local">LOCAL: The following local markup is available for the <ref target="#LocaleFilter">Locale Filter</ref> data category:</p> <list type="unordered"> @@ -3393,9 +3385,17 @@ language ranges, or an empty string value.</item> <item>An optional <att>localeFilterType</att> attribute with a value <val>include</val> or <val>exclude</val>.</item> </list> + <exemplum xml:id="EX-locale-filter-locale-html5-1"> + <head>The <ref target="#LocaleFilter">Locale Filter</ref> data category expressed + locally in HTML</head> + <p>In this example the <ref target="#LocaleFilter">Locale Filter</ref> data category is used to select different sections + depending on whether the locale is a Canadian one or not.</p> + <egXML xmlns="http://www.tei-c.org/ns/Examples" + target="examples/html5/EX-locale-filter-local-html5-1.html"/> + </exemplum> <exemplum xml:id="EX-locale-filter-attribute-1"> <head>The <ref target="#LocaleFilter">Locale Filter</ref> data category expressed - locally</head> + locally in XML</head> <egXML xmlns="http://www.tei-c.org/ns/Examples" target="examples/xml/EX-locale-filter-attribute-1.xml"/> </exemplum>
Received on Sunday, 24 March 2013 13:18:08 UTC