- From: CVS User fsasaki <cvsmail@w3.org>
- Date: Mon, 29 Apr 2013 13:50:13 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20 In directory gil:/tmp/cvs-serv31104 Modified Files: its20.html its20.odd Log Message: implemented feedback from yves on relation between html markup and its 2.0, see http://lists.w3.org/Archives/Public/public-multilingualweb-lt/2013Apr/0233.html --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html 2013/04/29 12:40:27 1.401 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html 2013/04/29 13:50:13 1.402 @@ -59,9 +59,9 @@ <div class="toc3">5.2.2 <a href="#selection-local" shape="rect">Local Selection in an XML Document</a></div> </div> <div class="toc2">5.3 <a href="#selectors" shape="rect">Query Language of Selectors</a><div class="toc3">5.3.1 <a href="#queryLanguage" shape="rect">Choosing Query Language</a></div> -<div class="toc3">5.3.2 <a href="#d0e2261" shape="rect">XPath 1.0</a></div> +<div class="toc3">5.3.2 <a href="#d0e2263" shape="rect">XPath 1.0</a></div> <div class="toc3">5.3.3 <a href="#css-selectors" shape="rect">CSS Selectors</a></div> -<div class="toc3">5.3.4 <a href="#d0e2506" shape="rect">Additional query languages</a></div> +<div class="toc3">5.3.4 <a href="#d0e2508" shape="rect">Additional query languages</a></div> <div class="toc3">5.3.5 <a href="#its-param" shape="rect">Variables in selectors</a></div> </div> <div class="toc2">5.4 <a href="#link-external-rules" shape="rect">Link to External Rules</a></div> @@ -453,7 +453,7 @@ The general mapping of the XML based ITS 2.0 attributes to their HTML <code>its-*</code> counterparts is defined in <a class="section-ref" href="#html5-local-attributes" shape="rect">Section 6.1: Mapping of Local Data Categories to HTML</a>. An informative table in <a class="section-ref" href="#list-of-elements-and-attributes" shape="rect">Appendix G: List of ITS 2.0 Global Elements and Local Attributes</a> provides an overview of the mapping for all data categories.</p></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="html5-existing-markup-versus-its" id="html5-existing-markup-versus-its" shape="rect"/>1.4.3 Relation between HTML markup and ITS 2.0 data categories</h4><p>There are three ITS 2.0 data categories, which have direct counterparts +<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="html5-existing-markup-versus-its" id="html5-existing-markup-versus-its" shape="rect"/>1.4.3 Relation between HTML markup and ITS 2.0 data categories</h4><p>There are four ITS 2.0 data categories, which have direct counterparts in HTML markup. For theses data categories, ITS 2.0 defines the following specific behaviour:</p><ul><li><p>The <a href="#language-information" shape="rect">Language Information</a> data category has the HTML <code>lang</code> attribute counterpart; in XHTML this is the <code>xml:lang</code> attribute. These attributes act as @@ -478,15 +478,14 @@ <strong class="hl-tag" style="color: #000096"><body></strong> <strong class="hl-tag" style="color: #000096"><p</strong> <span class="hl-attribute" style="color: #F5844C">id</span>=<span class="hl-value" style="color: #993300">"p1"</span><strong class="hl-tag" style="color: #000096">></strong>This is a <strong class="hl-tag" style="color: #000096"><em></strong>motherboard<strong class="hl-tag" style="color: #000096"></em></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-its-and-existing-HTML5-markup.html" shape="rect">examples/html5/EX-its-and-existing-HTML5-markup.html</a>]</p></div><span class="editor-note">[Ed. note: Need to add a link to the wiki with HTML5 Translate, once the wiki is set up. See <a href="https://www.w3.org/International/multilingualweb/lt/track/actions/497" shape="rect">action-497</a> and <a href="https://www.w3.org/International/multilingualweb/lt/track/actions/498" shape="rect">action-498</a>.]</span><p>The <a href="#trans-datacat" shape="rect">Translate</a> data category has a direct counterpart in +<strong class="hl-tag" style="color: #000096"></html></strong></pre></div><p>[Source file: <a href="examples/html5/EX-its-and-existing-HTML5-markup.html" shape="rect">examples/html5/EX-its-and-existing-HTML5-markup.html</a>]</p></div><span class="editor-note">[Ed. note: Need to add a link to the wiki with HTML5 Translate, once the wiki is set up. See <a href="https://www.w3.org/International/multilingualweb/lt/track/actions/497" shape="rect">action-497</a> and <a href="https://www.w3.org/International/multilingualweb/lt/track/actions/498" shape="rect">action-498</a>.]</span><ul><li><p>The <a href="#trans-datacat" shape="rect">Translate</a> data category has a direct counterpart in <a title="HTML5" href="#html5" shape="rect">[HTML5]</a>, namely the HTML5 <code>translate</code> attribute. The definition of that attribute in terms of defaults and the relation between attribute and elements translatability is similar, but not identical to ITS 2.0. In addition, as of writing of this document, the definition of the <code>translate</code> attribute in HTML5 is not stable. To avoid unexpected behaviour, users of ITS 2.0 are strongly encouraged to set <a href="#trans-datacat" shape="rect">Translate</a> - behavior in HTML5 explicitly via global rules, and to process local - <code>translate</code> attributes in HTML5 with dedicated ITS 2.0 processors.</p><p>There are also some HTML markup elements that have similar, but not always identical, roles and behaviour than certain ITS 2.0 data categories. + behavior in HTML5 explicitly via global rules, and to process local <code>translate</code> attributes in HTML5 with dedicated ITS 2.0 processors.</p></li></ul><p>There are also some HTML markup elements that have similar, but not always identical, roles and behaviour than certain ITS 2.0 data categories. For example, the HTML <code>dfn</code> element could be used to identify a term in the sense of the <a href="#terminology" shape="rect">Terminology</a> data category. However, this is not always the case and it depends on the @@ -692,7 +691,7 @@ and localization of XML schemas and documents.] The concept of a data category is independent of its implementation in an XML and HTML environment (e.g. using an element or attribute).</p><p>For each data category, ITS distinguishes between the following:</p><ul><li><p>the prose description, see <a class="section-ref" href="#datacategory-description" shape="rect">Section 8: Description of Data Categories</a></p></li><li><p>schema language independent formalization, see the "implementation" subsections in - <a class="section-ref" href="#datacategory-description" shape="rect">Section 8: Description of Data Categories</a></p></li><li><p>schema language specific implementations, see <a class="section-ref" href="#its-schemas" shape="rect">Appendix D: Schemas for ITS</a></p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="d0e1359" id="d0e1359" shape="rect"/>Example 14: A data category and its implementation</div><p>The <a href="#trans-datacat" shape="rect">Translate</a> data category conveys information as + <a class="section-ref" href="#datacategory-description" shape="rect">Section 8: Description of Data Categories</a></p></li><li><p>schema language specific implementations, see <a class="section-ref" href="#its-schemas" shape="rect">Appendix D: Schemas for ITS</a></p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="d0e1361" id="d0e1361" shape="rect"/>Example 14: A data category and its implementation</div><p>The <a href="#trans-datacat" shape="rect">Translate</a> data category conveys information as to whether a piece of content should be translated or not.</p><p>The simplest formalization of this prose description on a schema language independent level is a <code class="its-attr-markup">translate</code> attribute with two possible values: "yes" and "no". An implementation on a schema language specific @@ -956,9 +955,9 @@ actual query language. The query language is set by <code class="its-attr-markup">queryLanguage</code> attribute on <code class="its-elem-markup">rules</code> element. If <code class="its-attr-markup">queryLanguge</code> is not specified XPath 1.0 is used as a default query language.</p></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="d0e2261" id="d0e2261" shape="rect"/>5.3.2 XPath 1.0</h4><p>XPath 1.0 is identified by <code>xpath</code> value in <code class="its-attr-markup">queryLanguage</code> +<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="d0e2263" id="d0e2263" shape="rect"/>5.3.2 XPath 1.0</h4><p>XPath 1.0 is identified by <code>xpath</code> value in <code class="its-attr-markup">queryLanguage</code> attribute.</p><div class="div4"> -<h5><a name="d0e2272" id="d0e2272" shape="rect"/>5.3.2.1 Absolute selector</h5><p>The absolute selector <a href="#rfc-keywords" shape="rect">MUST</a> be an XPath expression +<h5><a name="d0e2274" id="d0e2274" shape="rect"/>5.3.2.1 Absolute selector</h5><p>The absolute selector <a href="#rfc-keywords" shape="rect">MUST</a> be an XPath expression which starts with "<code>/</code>". That is, it must be an <a href="http://www.w3.org/TR/xpath/#NT-AbsoluteLocationPath" shape="rect"> AbsoluteLocationPath</a> or union of <a href="http://www.w3.org/TR/xpath/#NT-AbsoluteLocationPath" shape="rect"> AbsoluteLocationPath</a>s as described in <a href="#xpath" shape="rect">XPath 1.0</a>. @@ -1003,14 +1002,14 @@ implementations can be used.</p></div><div class="note"><p class="prefix"><b>Note:</b></p><p id="css-selectors-and-attributes">CSS selectors have no ability to point to attributes.</p></div><p>CSS Selectors are identified by <code>css</code> value in <code class="its-attr-markup">queryLanguage</code> attribute.</p><div class="div4"> -<h5><a name="d0e2483" id="d0e2483" shape="rect"/>5.3.3.1 Absolute selector</h5><p>Absolute selector <a href="#rfc-keywords" shape="rect">MUST</a> be interpreted as selector +<h5><a name="d0e2485" id="d0e2485" shape="rect"/>5.3.3.1 Absolute selector</h5><p>Absolute selector <a href="#rfc-keywords" shape="rect">MUST</a> be interpreted as selector as defined in <a title="Selectors Level
 3" href="#css3-selectors" shape="rect">[Selectors Level 3]</a>. Both simple selectors and groups of selectors can be used.</p></div><div class="div4"> -<h5><a name="d0e2493" id="d0e2493" shape="rect"/>5.3.3.2 Relative selector</h5><p>Relative selector <a href="#rfc-keywords" shape="rect">MUST</a> be interpreted as selector +<h5><a name="d0e2495" id="d0e2495" shape="rect"/>5.3.3.2 Relative selector</h5><p>Relative selector <a href="#rfc-keywords" shape="rect">MUST</a> be interpreted as selector as defined in <a title="Selectors Level
 3" href="#css3-selectors" shape="rect">[Selectors Level 3]</a>. Selector is not evaluated against the complete document tree but only against subtrees rooted at nodes selected by selector in the <code class="its-attr-markup">selector</code> attribute.</p></div></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="d0e2506" id="d0e2506" shape="rect"/>5.3.4 Additional query languages</h4><p>ITS processors <a href="#rfc-keywords" shape="rect">MAY</a> support additional query +<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="d0e2508" id="d0e2508" shape="rect"/>5.3.4 Additional query languages</h4><p>ITS processors <a href="#rfc-keywords" shape="rect">MAY</a> support additional query languages. For each additional query language the processor <a href="#rfc-keywords" shape="rect">MUST</a> define:</p><ul><li><p>identifier of query language used in <code class="its-attr-markup">queryLanguage</code>;</p></li><li><p>rules for evaluating absolute selector to collection of nodes;</p></li><li><p>rules for evaluating relative selector to collection of nodes.</p></li></ul><p>Because future versions of this specification are likely to define additional query languages, the following query language identifiers are reserved: <code>xpath</code>, <code>css</code>, <code>xpath2</code>, <code>xpath3</code>, <code>xquery</code>, --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd 2013/04/29 12:40:28 1.394 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd 2013/04/29 13:50:13 1.395 @@ -518,7 +518,7 @@ provides an overview of the mapping for all data categories.</p> </div> <div xml:id="html5-existing-markup-versus-its"><head>Relation between HTML markup and ITS 2.0 data categories</head> - <p>There are three ITS 2.0 data categories, which have direct counterparts + <p>There are four ITS 2.0 data categories, which have direct counterparts in HTML markup. For theses data categories, ITS 2.0 defines the following specific behaviour:</p> <list type="unordered"> @@ -549,7 +549,7 @@ target="examples/html5/EX-its-and-existing-HTML5-markup.html"/> </exemplum> <note type="ed">Need to add a link to the wiki with HTML5 Translate, once the wiki is set up. See <ref target="https://www.w3.org/International/multilingualweb/lt/track/actions/497">action-497</ref> and <ref target="https://www.w3.org/International/multilingualweb/lt/track/actions/498">action-498</ref>.</note> - <p>The <ref target="#trans-datacat">Translate</ref> data category has a direct counterpart in + <list type="unordered"><item>The <ref target="#trans-datacat">Translate</ref> data category has a direct counterpart in <ptr target="#html5" type="bibref"/>, namely the HTML5 <code>translate</code> attribute. The definition of that attribute in terms of defaults and the relation between attribute and elements translatability is similar, but @@ -557,7 +557,7 @@ document, the definition of the <code>translate</code> attribute in HTML5 is not stable. To avoid unexpected behaviour, users of ITS 2.0 are strongly encouraged to set <ref target="#trans-datacat">Translate</ref> behavior in HTML5 explicitly via global rules, and to process local - <code>translate</code> attributes in HTML5 with dedicated ITS 2.0 processors.</p> + <code>translate</code> attributes in HTML5 with dedicated ITS 2.0 processors.</item></list> <p>There are also some HTML markup elements that have similar, but not always identical, roles and behaviour than certain ITS 2.0 data categories. For example, the HTML <code>dfn</code> element could be used to identify a term in the sense of the <ref target="#terminology">Terminology</ref> data
Received on Monday, 29 April 2013 13:50:19 UTC