- From: CVS User fsasaki <cvsmail@w3.org>
- Date: Sun, 22 Sep 2013 17:28:03 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20 In directory gil:/tmp/cvs-serv21615 Modified Files: its20.html its20.odd Log Message: publication date now 25 September - doing pub prep fixes --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html 2013/09/17 17:16:56 1.502 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html 2013/09/22 17:28:03 1.503 @@ -1761,7 +1761,7 @@ </p></li></ul></div><div class="div3"> <h4><a href="#contents" shape="rect"><img src="images/topOfPage.gif" align="right" height="26" width="26" title="Go to the table of contents." alt="Go to the table of contents."/></a><a name="within-text-implementation" id="within-text-implementation" shape="rect"/>8.7.2 Implementation</h4><p>The <a href="#elements-within-text" shape="rect">Elements Within Text</a> data category can be expressed with global rules, or locally on an individual element. There is no - inheritance.</p><p>For XML: The default is that elements are not within text.</p><p id="html5-withintext-handling">For HTML: The default is that elements are not within text, with the following exceptions:</p><ul><li><p>For the elements that are part of the <a href="http://www.w3.org/TR/2012/CR-html5-20130806/dom.html#phrasing-content-1" shape="rect">HTML5 phrasing content</a> the + inheritance.</p><p>For XML: The default is that elements are not within text.</p><p id="html5-withintext-handling">For HTML: The default is that elements are not within text, with the following exceptions:</p><ul><li><p>For the elements that are part of the <a href="http://www.w3.org/TR/2013/CR-html5-20130806/dom.html#phrasing-content-1" shape="rect">HTML5 phrasing content</a> the default is <code>withinText="yes"</code>, with the following exceptions:</p><ul><li><p>For the elements <code class="its-elem-markup">iframe</code>, <code class="its-elem-markup">noscript</code>, <code class="its-elem-markup">script</code> and <code class="its-elem-markup">textarea</code> the default is <code>withinText="nested"</code>.</p></li></ul></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-within-text-defaults-html5-1" id="EX-within-text-defaults-html5-1" shape="rect"/>Example 46: Illustrates the defaults for the <a href="#elements-within-text" shape="rect">Elements Within Text</a> data category in HTML.</div><p>In this document the different flows of text are the following (brackets indicating inline or nested elements):<br clear="none"/><code><br clear="none"/> - "Elements within Text defaults for HTML5"<br clear="none"/> - "The element p is not within text. But [the element em is]."<br clear="none"/> @@ -2431,7 +2431,7 @@ <strong class="hl-tag" style="color: #000096"><body></strong> <strong class="hl-tag" style="color: #000096"><video</strong> <span class="hl-attribute" style="color: #F5844C">height</span>=<span class="hl-value" style="color: #993300">360</span> - <span class="hl-attribute" style="color: #F5844C">poster</span>=<span class="hl-value" style="color: #993300">video-image.png</span> + <span class="hl-attribute" style="color: #F5844C">poster</span>=<span class="hl-value" style="color: #993300">http://www.example.com/video-image.png</span> <span class="hl-attribute" style="color: #F5844C">src</span>=<span class="hl-value" style="color: #993300">http://www.example.com/video/v2.mp</span> <span class="hl-attribute" style="color: #F5844C">width</span>=<span class="hl-value" style="color: #993300">640</span><strong class="hl-tag" style="color: #000096">></strong> <strong class="hl-tag" style="color: #000096"><p></strong>If your browser doesn't support @@ -2756,7 +2756,7 @@ <span class="hl-attribute" style="color: #F5844C">its-loc-quality-issue-comment</span>=<span class="hl-value" style="color: #993300">"should be 'quality'"</span> <span class="hl-attribute" style="color: #F5844C">its-loc-quality-issue-profile-ref</span>=<span class="hl-value" style="color: #993300">grammar</span> <span class="hl-attribute" style="color: #F5844C">its-loc-quality-issue-severity</span>=<span class="hl-value" style="color: #993300">50</span> - <span class="hl-attribute" style="color: #F5844C">its-loc-quality-issue-type</span>=<span class="hl-value" style="color: #993300">spelling</span><strong class="hl-tag" style="color: #000096">></strong>qulaity<strong class="hl-tag" style="color: #000096"></span></strong> with his instrument, + <span class="hl-attribute" style="color: #F5844C">its-loc-quality-issue-type</span>=<span class="hl-value" style="color: #993300">misspelling</span><strong class="hl-tag" style="color: #000096">></strong>qulaity<strong class="hl-tag" style="color: #000096"></span></strong> with his instrument, a standard that would not only satisfy listeners but that would overcome all the flaws of traditional instruments.<strong class="hl-tag" style="color: #000096"></p></strong> <strong class="hl-tag" style="color: #000096"></body></strong> @@ -2912,9 +2912,11 @@ <strong class="hl-tag" style="color: #000096"><body</strong> <span class="hl-attribute" style="color: #F5844C">its-annotators-ref</span>=<span class="hl-value" style="color: #993300">"mt-confidence|file:///tools.xml#T1"</span><strong class="hl-tag" style="color: #000096">></strong> <strong class="hl-tag" style="color: #000096"><p></strong> <strong class="hl-tag" style="color: #000096"><img</strong> <span class="hl-attribute" style="color: #F5844C">src</span>=<span class="hl-value" style="color: #993300">"http://upload.wikimedia.org/wikipedia/commons/9/93/Trinity_College.jpg"</span> - <span class="hl-attribute" style="color: #F5844C">title</span>=<span class="hl-value" style="color: #993300">"Front gate of Trinity College Dublin"</span><strong class="hl-tag" style="color: #000096">/></strong> + <span class="hl-attribute" style="color: #F5844C">title</span>=<span class="hl-value" style="color: #993300">"Front gate of Trinity College Dublin"</span> + <span class="hl-attribute" style="color: #F5844C">alt</span>=<span class="hl-value" style="color: #993300">"alternative description"</span><strong class="hl-tag" style="color: #000096">/></strong> <strong class="hl-tag" style="color: #000096"><img</strong> <span class="hl-attribute" style="color: #F5844C">src</span>=<span class="hl-value" style="color: #993300">"http://upload.wikimedia.org/wikipedia/commons/c/cc/Molly_alone.jpg"</span> - <span class="hl-attribute" style="color: #F5844C">title</span>=<span class="hl-value" style="color: #993300">"A tart with a cart"</span><strong class="hl-tag" style="color: #000096">/></strong> + <span class="hl-attribute" style="color: #F5844C">title</span>=<span class="hl-value" style="color: #993300">"A tart with a cart"</span> + <span class="hl-attribute" style="color: #F5844C">alt</span>=<span class="hl-value" style="color: #993300">"alternative description"</span><strong class="hl-tag" style="color: #000096">/></strong> <strong class="hl-tag" style="color: #000096"></p></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-mtConfidence-global-html5-1.html" shape="rect">examples/html5/EX-mtConfidence-global-html5-1.html</a>]</p></div><p>Where the external ITS rules file is as shown:</p><div class="exampleOuter"><div class="exampleHeader"><a name="EX-mtconfidence-global-html5-1-external-rules" id="EX-mtconfidence-global-html5-1-external-rules" shape="rect"/>Example 80: XML file with external rules references from an HTML file.</div><div class="exampleInner"><pre xml:space="preserve"><span class="hl-directive" style="color: maroon"><?xml version="1.0" encoding="UTF-8"?></span> @@ -5593,8 +5595,7 @@ Version 1.0</cite></a>. W3C Recommendation 16 November 1999. Available at <a href="http://www.w3.org/TR/1999/REC-xslt-19991116" shape="rect"> http://www.w3.org/TR/1999/REC-xslt-19991116</a>. The latest version of <a href="http://www.w3.org/TR/xslt" shape="rect">XSLT 1.0</a> is available at http://www.w3.org/TR/xslt.</dd><dt class="label"><a name="xul" id="xul" shape="rect"/>XUL</dt><dd> - <a href="http://www.xulplanet.com/" shape="rect"><cite>exTensible User Interface Language</cite></a>. Available at <a href="http://www.xulplanet.com/" shape="rect"> - http://www.xulplanet.com/</a>.</dd></dl></div><div class="div1"> + <a href="https://developer.mozilla.org/en-US/docs/XUL" shape="rect"><cite>exTensible User Interface Language</cite></a>. Available at <a href="https://developer.mozilla.org/en-US/docs/XUL" shape="rect">https://developer.mozilla.org/en-US/docs/XUL</a>.</dd></dl></div><div class="div1"> <h2><a href="#contents" shape="rect"><img src="images/topOfPage.gif" align="right" height="26" width="26" title="Go to the table of contents." alt="Go to the table of contents."/></a><a name="conversion-to-nif" id="conversion-to-nif" shape="rect"/>F Conversion to NIF</h2><p> <em>This section is informative.</em> </p><p>This section provides an informative algorithm to convert XML or HTML documents (or their DOM @@ -5606,9 +5607,13 @@ predicates. A normalized example is given below. The whitespace normalization algorithm itself is format dependent (for example, it differs for HTML compared to general XML).</p></div><div class="note"><p class="prefix"><b>Note:</b></p><p id="its-rdf-ontology-status">The output of the algorithm shown below uses the ITS RDF ontology <a title="ITS RDF Ontology" href="#its-rdf-ontology" shape="rect">[ITS RDF]</a> and its namespace<br clear="none"/><a href="http://www.w3.org/2005/11/its/rdf#" shape="rect">http://www.w3.org/2005/11/its/rdf#</a> - <br clear="none"/>Like the algorithm, this ontology is not a normative part of the ITS 2.0 specification and is being discussed in the <a href="http://www.w3.org/International/its/wiki/ITS-RDF_mapping" shape="rect">ITS Interest Group</a>.</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-HTML-whitespace-normalization" id="EX-HTML-whitespace-normalization" shape="rect"/>Example 97: Example (see <a href="examples/html5/EX-HTML-whitespace-normalization.html" shape="rect">source code</a>) of an HTML document with whitespace character normalization as preparation for the conversion to NIF</div><div class="exampleInner"><pre xml:space="preserve"><strong class="hl-tag" style="color: #000096"><html></strong><strong class="hl-tag" style="color: #000096"><body></strong><strong class="hl-tag" style="color: #000096"><h2</strong> <span class="hl-attribute" style="color: #F5844C">translate</span>=<span class="hl-value" style="color: #993300">"yes"</span><strong clas="hl-tag" style="color: #000096">></strong>Welcome to <strong class="hl-tag" style="color: #000096"><span</strong> - <span class="hl-attribute" style="color: #F5844C">its-ta-ident-ref</span>=<span class="hl-value" style="color: #993300">"http://dbpedia.org/resource/Dublin"</span> <span class="hl-attribute" style="color: #F5844C">its-within-text</span>=<span class="hl-value" style="color: #993300">"yes"</span> - <span class="hl-attribute" style="color: #F5844C">translate</span>=<span class="hl-value" style="color: #993300">"no"</span><strong class="hl-tag" style="color: #000096">></strong>Dublin<strong class="hl-tag" style="color: #000096"></span></strong> in <strong class="hl-tag" style="color: #000096"><b</strong> <span class="hl-attribute" style="color: #F5844C">translate</span>=<span class="hl-value" style="color: #993300">"no"</span> <span class="hl-attribute" style="color: #F5844C">its-within-text</span>=<span class="hl-value" style="color: #993300">"yes"</span><strong class="hl-tag" style="color: #000096">></strong>Ireland<strong class="hl-tag" style="color: #000096"></b></strong>!<strong class="hl-tag" style="color: #000096"></h2></strong><strong class="hl-tag" style="color: #000096"></body></strong><strong class="hl-tag" style="color: #000096"></html></strong></pre></div></div><p id="its2nif-algorithm">The conversion algorithm to generate NIF consists of seven + <br clear="none"/>Like the algorithm, this ontology is not a normative part of the ITS 2.0 specification and is being discussed in the <a href="http://www.w3.org/International/its/wiki/ITS-RDF_mapping" shape="rect">ITS Interest Group</a>.</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-HTML-whitespace-normalization" id="EX-HTML-whitespace-normalization" shape="rect"/>Example 97: Example (see <a href="examples/html5/EX-HTML-whitespace-normalization.html" shape="rect">source code</a>) of an HTML document with whitespace character normalization as preparation for the conversion to NIF. Note that text nodes in the <code>head</code> element are not taken into account.</div><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> <span class="hl-attribute" style="color: #F5844C">xmlns</span>=<span class="hl-value" style="color: #993300">"htt://www.w3.org/1999/xhtml"</span><strong class="hl-tag" style="color: #000096">></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">http-equiv</span>=<span class="hl-value" style="color: #993300">"Content-Type"</span> <span class="hl-attribute" style="color: #F5844C">content</span>=<span class="hl-value" style="color: #993300">"text/html;charset=utf-8"</span><strong class="hl-tag" style="color: #000096"> ></strong> +<strong class="hl-tag" style="color: #000096"><title></strong>NIF conversion example<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"><h2</strong> <span class="hl-attribute" style="color: #F5844C">translate</span>=<span class="hl-value" style="color: #993300">"yes"</span><strong class="hl-tag" style="color: #000096">></strong>Welcome to <strong class="hl-tag" style="color: #000096"><span</strong> + <span class="hl-attribute" style="color: #F5844C">its-ta-ident-ref</span>=<span class="hl-value" style="color: #993300">"http://dbpedia.org/resource/Dublin"</span> <span class="hl-attribute" style="color: #F5844C">its-within-text</span>=<span class="hl-value" style="color: #993300">"yes"</span> + <span class="hl-attribute" style="color: #F5844C">translate</span>=<span class="hl-value" style="color: #993300">"no"</span><strong class="hl-tag" style="color: #000096">></strong>Dublin<strong class="hl-tag" style="color: #000096"></span></strong> in <strong class="hl-tag" style="color: #000096"><b</strong> <span class="hl-attribute" style="color: #F5844C">translate</span>=<span class="hl-value" style="color: #993300">"no"</span> <span class="hl-attribute" style="color: #F5844C">its-within-text</span>=<span class="hl-value" style="color: #993300">"yes"</span><strong class="hl-tag" style="color: #000096">></strong>Ireland<strong class="hl-tag" style="color: #000096"></b></strong>!<strong class="hl-tag" style="color: #000096"></h2></strong><strong class="hl-tag" style="color: #000096"></body></strong><strong class="hl-tag" style="color: #000096"></html></strong> +</pre></div></div><p id="its2nif-algorithm">The conversion algorithm to generate NIF consists of seven steps:</p><ul><li><p id="its2nif-algorithm-step1">STEP 1: Get an ordered list of all text nodes of the document.</p></li><li><p id="its2nif-algorithm-step2">STEP 2: Generate an XPath expression for each non-empty text node of all leaf elements and memorize them.</p></li><li><p id="its2nif-algorithm-step3">STEP 3: Get the text for each text node and make a tuple with the corresponding XPath expression (X,T). Since the text nodes have a certain order we now have a list of ordered tuples ((x0,t0), (x1,t1), ..., (xn,tn)).</p></li><li><p id="its2nif-algorithm-step4">STEP 4 (optional): Serialize as XML or as RDF. --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd 2013/09/17 17:16:57 1.517 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd 2013/09/22 17:28:03 1.518 @@ -8,18 +8,18 @@ <w3c-designation>ITS20</w3c-designation> <w3c-doctype>W3C Proposed Recommendation</w3c-doctype> <pubdate> - <day>19</day> + <day>24</day> <month>September</month> <year>2013</year> </pubdate> <publoc> - <loc href="http://www.w3.org/TR/2013/PR-its20-20130919/"> - http://www.w3.org/TR/2013/PR-its20-20130919/</loc> + <loc href="http://www.w3.org/TR/2013/PR-its20-20130924/"> + http://www.w3.org/TR/2013/PR-its20-20130924/</loc> </publoc> <altlocs> <loc href="its20.odd">ODD/XML document</loc> <loc href="itstagset20.zip">self-contained zipped archive</loc> - <loc href="diffs/diff-wd20130919-wd20130820.html">XHTML Diff markup to previous publication + <loc href="diffs/diff-wd20130924-wd20130820.html">XHTML Diff markup to previous publication 2013-08-20</loc> </altlocs> <prevlocs> @@ -106,7 +106,7 @@ >public-multilingualweb-lt-comments@w3.org</loc>. Use "Comment on ITS 2.0 specification WD" in the subject line of your email. The <loc href="http://lists.w3.org/Archives/Public/public-multilingualweb-lt-comments/">archives - for this list</loc> are publicly available. Advisory Committee Representatives should consult their <loc href="https://www.w3.org/2002/09/wbs/myQuestionnaires">WBS questionnaires</loc>. The deadline for review and comments is 15 October 2013. See also <loc + for this list</loc> are publicly available. Advisory Committee Representatives should consult their <loc href="https://www.w3.org/2002/09/wbs/myQuestionnaires">WBS questionnaires</loc>. The deadline for review and comments is 22 October 2013. See also <loc href="https://www.w3.org/International/multilingualweb/lt/track/issues/">issues discussed within the Working Group</loc> and the <loc href="#changelog-since-20130820">list of changes since the previous publication</loc>.</p> @@ -2747,7 +2747,7 @@ <p>For XML: The default is that elements are not within text.</p> <p xml:id="html5-withintext-handling">For HTML: The default is that elements are not within text, with the following exceptions:</p> <list> - <item><p>For the elements that are part of the <ref target="http://www.w3.org/TR/2012/CR-html5-20130806/dom.html#phrasing-content-1">HTML5 phrasing content</ref> the + <item><p>For the elements that are part of the <ref target="http://www.w3.org/TR/2013/CR-html5-20130806/dom.html#phrasing-content-1">HTML5 phrasing content</ref> the default is <code>withinText="yes"</code>, with the following exceptions:</p> <list> <item>For the elements <gi>iframe</gi>, <gi>noscript</gi>, <gi>script</gi> and <gi>textarea</gi> the default is <code>withinText="nested"</code>.</item> @@ -5519,9 +5519,8 @@ target="http://www.w3.org/TR/xslt">XSLT 1.0</ref> is available at http://www.w3.org/TR/xslt.</bibl> <bibl xml:id="xul" n="XUL"><title> - <ref target="http://www.xulplanet.com/">exTensible User Interface Language</ref> - </title>. Available at <ref target="http://www.xulplanet.com/"> - http://www.xulplanet.com/</ref>.</bibl> + <ref target="https://developer.mozilla.org/en-US/docs/XUL">exTensible User Interface Language</ref> + </title>. Available at <ref target="https://developer.mozilla.org/en-US/docs/XUL">https://developer.mozilla.org/en-US/docs/XUL</ref>.</bibl> </listBibl> </div> <div xml:id="conversion-to-nif" type="inform"> @@ -5541,10 +5540,14 @@ general XML).</p></note> <note><p xml:id="its-rdf-ontology-status">The output of the algorithm shown below uses the ITS RDF ontology <ptr target="#its-rdf-ontology" type="bibref"/> and its namespace<?br?><ref target="http://www.w3.org/2005/11/its/rdf#">http://www.w3.org/2005/11/its/rdf#</ref><?br?>Like the algorithm, this ontology is not a normative part of the ITS 2.0 specification and is being discussed in the <ref target="http://www.w3.org/International/its/wiki/ITS-RDF_mapping">ITS Interest Group</ref>.</p></note> <exemplum xml:id="EX-HTML-whitespace-normalization"> - <head>Example (see <ref target="examples/html5/EX-HTML-whitespace-normalization.html">source code</ref>) of an HTML document with whitespace character normalization as preparation for the conversion to NIF</head> - <eg><![CDATA[<html><body><h2 translate="yes">Welcome to <span - its-ta-ident-ref="http://dbpedia.org/resource/Dublin" its-within-text="yes" - translate="no">Dublin</span> in <b translate="no" its-within-text="yes">Ireland</b>!</h2></body></html>]]></eg> + <head>Example (see <ref target="examples/html5/EX-HTML-whitespace-normalization.html">source code</ref>) of an HTML document with whitespace character normalization as preparation for the conversion to NIF. Note that text nodes in the <code>head</code> element are not taken into account.</head> + <eg><![CDATA[<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"> +<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" > +<title>NIF conversion example</title></head> +<body><h2 translate="yes">Welcome to <span + its-ta-ident-ref="http://dbpedia.org/resource/Dublin" its-within-text="yes" + translate="no">Dublin</span> in <b translate="no" its-within-text="yes">Ireland</b>!</h2></body></html> +]]></eg> </exemplum> <p xml:id="its2nif-algorithm">The conversion algorithm to generate NIF consists of seven steps:</p>
Received on Sunday, 22 September 2013 17:28:05 UTC