- From: CVS User fsasaki <cvsmail@w3.org>
- Date: Wed, 10 Apr 2013 15:45:58 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/TR-version In directory gil:/tmp/cvs-serv7246/TR-version Modified Files: Overview.html Log Message: wrote appendix about ruby removal, see www.w3.org/International/multilingualweb/lt/drafts/its20/its20.html#ruby-in-its2 and action-485 --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/TR-version/Overview.html 2013/04/10 15:13:58 1.76 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/TR-version/Overview.html 2013/04/10 15:45:58 1.77 @@ -89,9 +89,9 @@ <div class="toc3">5.2.2 <a href="#selection-local">Local Selection in an XML Document</a></div> </div> <div class="toc2">5.3 <a href="#selectors">Query Language of Selectors</a><div class="toc3">5.3.1 <a href="#queryLanguage">Choosing Query Language</a></div> -<div class="toc3">5.3.2 <a href="#d0e2071">XPath 1.0</a></div> +<div class="toc3">5.3.2 <a href="#d0e2046">XPath 1.0</a></div> <div class="toc3">5.3.3 <a href="#css-selectors">CSS Selectors</a></div> -<div class="toc3">5.3.4 <a href="#d0e2316">Additional query languages</a></div> +<div class="toc3">5.3.4 <a href="#d0e2291">Additional query languages</a></div> <div class="toc3">5.3.5 <a href="#its-param">Variables in selectors</a></div> </div> <div class="toc2">5.4 <a href="#link-external-rules">Link to External Rules</a></div> @@ -119,53 +119,50 @@ <div class="toc2">8.5 <a href="#directionality">Directionality</a><div class="toc3">8.5.1 <a href="#directionality-definition">Definition</a></div> <div class="toc3">8.5.2 <a href="#directionality-implementation">Implementation</a></div> </div> -<div class="toc2">8.6 <a href="#ruby-annotation">Ruby</a><div class="toc3">8.6.1 <a href="#ruby-definition">Definition</a></div> -<div class="toc3">8.6.2 <a href="#ruby-implementation">Implementation</a></div> +<div class="toc2">8.6 <a href="#language-information">Language Information</a><div class="toc3">8.6.1 <a href="#langinfo-definition">Definition</a></div> +<div class="toc3">8.6.2 <a href="#langinfo-implementation">Implementation</a></div> </div> -<div class="toc2">8.7 <a href="#language-information">Language Information</a><div class="toc3">8.7.1 <a href="#langinfo-definition">Definition</a></div> -<div class="toc3">8.7.2 <a href="#langinfo-implementation">Implementation</a></div> +<div class="toc2">8.7 <a href="#elements-within-text">Elements Within Text</a><div class="toc3">8.7.1 <a href="#within-text-definition">Definition</a></div> +<div class="toc3">8.7.2 <a href="#within-text-implementation">Implementation</a></div> </div> -<div class="toc2">8.8 <a href="#elements-within-text">Elements Within Text</a><div class="toc3">8.8.1 <a href="#within-text-definition">Definition</a></div> -<div class="toc3">8.8.2 <a href="#within-text-implementation">Implementation</a></div> +<div class="toc2">8.8 <a href="#___domain">Domain</a><div class="toc3">8.8.1 <a href="#___domain-definition">Definition</a></div> +<div class="toc3">8.8.2 <a href="#___domain-implementation">Implementation</a></div> </div> -<div class="toc2">8.9 <a href="#___domain">Domain</a><div class="toc3">8.9.1 <a href="#___domain-definition">Definition</a></div> -<div class="toc3">8.9.2 <a href="#___domain-implementation">Implementation</a></div> +<div class="toc2">8.9 <a href="#textanalysis">Text Analysis</a><div class="toc3">8.9.1 <a href="#textanalysis-definition">Definition</a></div> +<div class="toc3">8.9.2 <a href="#textanalysis-implementation">Implementation</a></div> </div> -<div class="toc2">8.10 <a href="#textanalysis">Text Analysis</a><div class="toc3">8.10.1 <a href="#textanalysis-definition">Definition</a></div> -<div class="toc3">8.10.2 <a href="#textanalysis-implementation">Implementation</a></div> +<div class="toc2">8.10 <a href="#LocaleFilter">Locale Filter</a><div class="toc3">8.10.1 <a href="#LocaleFilter-definition">Definition</a></div> +<div class="toc3">8.10.2 <a href="#LocaleFilter-implementation">Implementation</a></div> </div> -<div class="toc2">8.11 <a href="#LocaleFilter">Locale Filter</a><div class="toc3">8.11.1 <a href="#LocaleFilter-definition">Definition</a></div> -<div class="toc3">8.11.2 <a href="#LocaleFilter-implementation">Implementation</a></div> +<div class="toc2">8.11 <a href="#provenance">Provenance</a><div class="toc3">8.11.1 <a href="#provenance-definition">Definition</a></div> +<div class="toc3">8.11.2 <a href="#provenance-implementation">Implementation</a></div> </div> -<div class="toc2">8.12 <a href="#provenance">Provenance</a><div class="toc3">8.12.1 <a href="#provenance-definition">Definition</a></div> -<div class="toc3">8.12.2 <a href="#provenance-implementation">Implementation</a></div> +<div class="toc2">8.12 <a href="#externalresource">External Resource</a><div class="toc3">8.12.1 <a href="#externalresource-definition">Definition</a></div> +<div class="toc3">8.12.2 <a href="#externalresource-implementation">Implementation</a></div> </div> -<div class="toc2">8.13 <a href="#externalresource">External Resource</a><div class="toc3">8.13.1 <a href="#externalresource-definition">Definition</a></div> -<div class="toc3">8.13.2 <a href="#externalresource-implementation">Implementation</a></div> +<div class="toc2">8.13 <a href="#target-pointer">Target Pointer</a><div class="toc3">8.13.1 <a href="#target-pointer-definition">Definition</a></div> +<div class="toc3">8.13.2 <a href="#target-pointer-implementation">Implementation</a></div> </div> -<div class="toc2">8.14 <a href="#target-pointer">Target Pointer</a><div class="toc3">8.14.1 <a href="#target-pointer-definition">Definition</a></div> -<div class="toc3">8.14.2 <a href="#target-pointer-implementation">Implementation</a></div> +<div class="toc2">8.14 <a href="#idvalue">Id Value</a><div class="toc3">8.14.1 <a href="#idvalue-definition">Definition</a></div> +<div class="toc3">8.14.2 <a href="#idvalue-implementation">Implementation</a></div> </div> -<div class="toc2">8.15 <a href="#idvalue">Id Value</a><div class="toc3">8.15.1 <a href="#idvalue-definition">Definition</a></div> -<div class="toc3">8.15.2 <a href="#idvalue-implementation">Implementation</a></div> +<div class="toc2">8.15 <a href="#preservespace">Preserve Space</a><div class="toc3">8.15.1 <a href="#preservespace-definition">Definition</a></div> +<div class="toc3">8.15.2 <a href="#preservespace-implementation">Implementation</a></div> </div> -<div class="toc2">8.16 <a href="#preservespace">Preserve Space</a><div class="toc3">8.16.1 <a href="#preservespace-definition">Definition</a></div> -<div class="toc3">8.16.2 <a href="#preservespace-implementation">Implementation</a></div> +<div class="toc2">8.16 <a href="#lqissue">Localization Quality Issue</a><div class="toc3">8.16.1 <a href="#lqissue-definition">Definition</a></div> +<div class="toc3">8.16.2 <a href="#lqissue-implementation">Implementation</a></div> </div> -<div class="toc2">8.17 <a href="#lqissue">Localization Quality Issue</a><div class="toc3">8.17.1 <a href="#lqissue-definition">Definition</a></div> -<div class="toc3">8.17.2 <a href="#lqissue-implementation">Implementation</a></div> +<div class="toc2">8.17 <a href="#lqrating">Localization Quality Rating</a><div class="toc3">8.17.1 <a href="#lqrating-definition">Definition</a></div> +<div class="toc3">8.17.2 <a href="#lqrating-implementation">Implementation</a></div> </div> -<div class="toc2">8.18 <a href="#lqrating">Localization Quality Rating</a><div class="toc3">8.18.1 <a href="#lqrating-definition">Definition</a></div> -<div class="toc3">8.18.2 <a href="#lqrating-implementation">Implementation</a></div> +<div class="toc2">8.18 <a href="#mtconfidence">MT Confidence</a><div class="toc3">8.18.1 <a href="#mtconfidence-definition">Definition</a></div> +<div class="toc3">8.18.2 <a href="#mtconfidence-implementation">Implementation</a></div> </div> -<div class="toc2">8.19 <a href="#mtconfidence">MT Confidence</a><div class="toc3">8.19.1 <a href="#mtconfidence-definition">Definition</a></div> -<div class="toc3">8.19.2 <a href="#mtconfidence-implementation">Implementation</a></div> +<div class="toc2">8.19 <a href="#allowedchars">Allowed Characters</a><div class="toc3">8.19.1 <a href="#allowedchars-definition">Definition</a></div> +<div class="toc3">8.19.2 <a href="#allowedchars-implementation">Implementation</a></div> </div> -<div class="toc2">8.20 <a href="#allowedchars">Allowed Characters</a><div class="toc3">8.20.1 <a href="#allowedchars-definition">Definition</a></div> -<div class="toc3">8.20.2 <a href="#allowedchars-implementation">Implementation</a></div> -</div> -<div class="toc2">8.21 <a href="#storagesize">Storage Size</a><div class="toc3">8.21.1 <a href="#storagesize-definition">Definition</a></div> -<div class="toc3">8.21.2 <a href="#storagesize-implementation">Implementation</a></div> +<div class="toc2">8.20 <a href="#storagesize">Storage Size</a><div class="toc3">8.20.1 <a href="#storagesize-definition">Definition</a></div> +<div class="toc3">8.20.2 <a href="#storagesize-implementation">Implementation</a></div> </div> </div> </div> @@ -176,8 +173,9 @@ <div class="toc1">E <a href="#informative-references">References</a> (Non-Normative)</div> <div class="toc1">F <a href="#nif-backconversion">Conversion NIF2ITS</a> (Non-Normative)</div> <div class="toc1">G <a href="#list-of-elements-and-attributes">List of ITS 2.0 Global Elements and Local Attributes</a> (Non-Normative)</div> -<div class="toc1">H <a href="#revisionlog">Revision Log</a> (Non-Normative)</div> -<div class="toc1">I <a href="#acknowledgements">Acknowledgements</a> (Non-Normative)</div> +<div class="toc1">H <a href="#ruby-in-its2">Ruby and ITS 2.0</a> (Non-Normative)</div> +<div class="toc1">I <a href="#revisionlog">Revision Log</a> (Non-Normative)</div> +<div class="toc1">J <a href="#acknowledgements">Acknowledgements</a> (Non-Normative)</div> </div><hr/><div class="body"><div class="div1"> <h2><a href="#contents"><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="introduction" id="introduction"></a>1 Introduction</h2><p> <em>This section is informative.</em> @@ -197,7 +195,7 @@ functionality</p></li><li><p>It adopts the separation of data category definition from the mapping of the data category to a given content format</p></li><li><p>It adopts the conformance principle of ITS1.0 that an implementation only needs to implement one data category to claim conformance to ITS 2.0</p></li></ul></li><li><p>ITS 2.0 supports all ITS 1.0 data category definitions and adds new definitions, - with the exceptions of <a href="#directionality">Directionality</a> and <a href="#ruby-annotation">Ruby</a>.</p></li><li><p>ITS 2.0 adds a number of new data categories not found in ITS 1.0.</p></li><li><p>While ITS 1.0 addressed only XML, ITS 2.0 specifies implementations of data + with the exceptions of <a href="#directionality">Directionality</a> and Ruby.</p></li><li><p>ITS 2.0 adds a number of new data categories not found in ITS 1.0.</p></li><li><p>While ITS 1.0 addressed only XML, ITS 2.0 specifies implementations of data categories in <em>both</em> XML <em>and</em> HTML.</p></li></ul></div><div class="div3"> <h4><a href="#contents"><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="new-principles" id="new-principles"></a>1.1.2 New Principles</h4><p>ITS 2.0 also adds the following principles and features not found in ITS 1.0:</p><ul><li><p>ITS 2.0 data categories are intended to be format neutral, with support for XML, HTML, and NIF: a data category implementation only needs to support a single content @@ -529,8 +527,7 @@ <em>Ease of integration</em>:</p><ul><li><p> ITS follows the example from <a href="http://www.w3.org/TR/2001/REC-xlink-20010627/#att-method">section 4</a> of <a title="XML Linking Language
 1.1" href="#xlink1">[XLink 1.1]</a>, by providing mostly global attributes for the implementation of ITS data categories. Avoiding elements for ITS purposes as much as - possible ensures ease of integration into existing markup schemes, see <a href="http://www.w3.org/TR/itsreq/#impact">section 3.14</a> in <a title="Internationalization and
 Localization Markup Requirements" href="#itsreq">[ITS REQ]</a>. Only for some requirements do additional child - elements have to be used, see for example <a class="section-ref" href="#ruby-annotation">Section 8.6: Ruby</a>.</p></li><li><p>ITS has no dependency on technologies which are still under + possible ensures ease of integration into existing markup schemes, see <a href="http://www.w3.org/TR/itsreq/#impact">section 3.14</a> in <a title="Internationalization and
 Localization Markup Requirements" href="#itsreq">[ITS REQ]</a>.</p></li><li><p>ITS has no dependency on technologies which are still under development.</p></li><li><p>ITS fits with existing work in the W3C architecture (e.g. use of <a title="XML Path Language (XPath)
 Version 1.0" href="#xpath">[XPath 1.0]</a> for the selection mechanism and use of IRI's <a title="Internationalized Resource
 Identifiers (IRIs)" href="#rfc3987">[RFC 3987]</a> as references to relevant external resources).</p></li></ul></div></div><div class="div1"> <h2><a href="#contents"><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="basic-concepts" id="basic-concepts"></a>2 Basic Concepts</h2><p> @@ -678,7 +675,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">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">Section 8: Description of Data Categories</a></p></li><li><p>schema language specific implementations, see <a class="section-ref" href="#its-schemas">Appendix D: Schemas for ITS</a></p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="d0e1149" id="d0e1149"></a>Example 13: A data category and its implementation</div><p>The <a href="#trans-datacat">Translate</a> data category conveys information as + <a class="section-ref" href="#datacategory-description">Section 8: Description of Data Categories</a></p></li><li><p>schema language specific implementations, see <a class="section-ref" href="#its-schemas">Appendix D: Schemas for ITS</a></p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="d0e1144" id="d0e1144"></a>Example 13: A data category and its implementation</div><p>The <a href="#trans-datacat">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 @@ -759,14 +756,11 @@ <em>Conformance clauses:</em> </p><ul><li><p id="its-conformance-1-1"> <em>1-1:</em> At least one of the following - <a href="#rfc-keywords">MUST</a> be in the schema:</p><ul><li><p><code class="its-elem-markup">rules</code> element</p></li><li><p>one of the local ITS attributes</p></li><li><p><code class="its-elem-markup">span</code> element</p></li><li><p><code class="its-elem-markup">ruby</code> element</p></li></ul></li><li><p id="its-conformance-1-2"> + <a href="#rfc-keywords">MUST</a> be in the schema:</p><ul><li><p><code class="its-elem-markup">rules</code> element</p></li><li><p>one of the local ITS attributes</p></li><li><p><code class="its-elem-markup">span</code> element</p></li></ul></li><li><p id="its-conformance-1-2"> <em>1-2:</em> If the <code class="its-elem-markup">rules</code> element is used, it <a href="#rfc-keywords">MUST</a> be part of the content model of at least one element declared in the schema. It <a href="#rfc-keywords">SHOULD</a> be in a content model for meta information, if this is available in that schema (e.g. the <code>head</code> element in <a title="XHTML™ 1.0 The Extensible
 HyperText Markup Language (Second Edition)" href="#xhtml10">[XHTML 1.0]</a>).</p></li><li><p id="its-conformance-1-3"> - <em>1-3:</em> If the <code class="its-elem-markup">ruby</code> element is - used, it <a href="#rfc-keywords">SHOULD</a> be declared as an inline - element.</p></li><li><p id="its-conformance-1-4"> <em>1-4:</em> If the <code class="its-elem-markup">span</code> element is used, it <a href="#rfc-keywords">SHOULD</a> be declared as an inline element.</p></li></ul><p id="its-markup-conformance-claims">Full implementations of this conformance type @@ -886,7 +880,7 @@ elements</a> for each data category. Each rule element has a <code class="its-attr-markup">selector</code> attribute and possibly other attributes. The <code class="its-attr-markup">selector</code> attribute contains an absolute selector as defined in <a class="section-ref" href="#selectors">Section 5.3: Query Language of Selectors</a>.</p></li><li><p><a href="#selection-local">Locally in a document</a>: the selection is - realized using ITS local attributes, which are attached to an element node, or the<code class="its-elem-markup">span</code> or <code class="its-elem-markup">ruby</code> element. There is no additional <code class="its-attr-markup">selector</code> + realized using ITS local attributes, which are attached to an element node, or the<code class="its-elem-markup">span</code> element. There is no additional <code class="its-attr-markup">selector</code> attribute. The default selection for each data category defines whether the selection covers attributes and child elements. See <a class="section-ref" href="#datacategories-defaults-etc">Section 8.1: Position, Defaults, Inheritance and Overriding of Data Categories</a>.</p></li></ul><p>The two locations are described in detail below.</p><div class="div3"> <h4><a href="#contents"><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="selection-global" id="selection-global"></a>5.2.1 Global, Rule-based Selection</h4><p>Global, rule-based selection is implemented using the <code class="its-elem-markup">rules</code> element. It @@ -945,9 +939,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"><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="d0e2071" id="d0e2071"></a>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"><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="d0e2046" id="d0e2046"></a>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="d0e2082" id="d0e2082"></a>5.3.2.1 Absolute selector</h5><p>The absolute selector <a href="#rfc-keywords">MUST</a> be an XPath expression +<h5><a name="d0e2057" id="d0e2057"></a>5.3.2.1 Absolute selector</h5><p>The absolute selector <a href="#rfc-keywords">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"> AbsoluteLocationPath</a> or union of <a href="http://www.w3.org/TR/xpath/#NT-AbsoluteLocationPath"> AbsoluteLocationPath</a>s as described in <a href="#xpath">XPath 1.0</a>. @@ -992,14 +986,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="d0e2293" id="d0e2293"></a>5.3.3.1 Absolute selector</h5><p>Absolute selector <a href="#rfc-keywords">MUST</a> be interpreted as selector +<h5><a name="d0e2268" id="d0e2268"></a>5.3.3.1 Absolute selector</h5><p>Absolute selector <a href="#rfc-keywords">MUST</a> be interpreted as selector as defined in <a title="Selectors Level
 3" href="#css3-selectors">[Selectors Level 3]</a>. Both simple selectors and groups of selectors can be used.</p></div><div class="div4"> -<h5><a name="d0e2303" id="d0e2303"></a>5.3.3.2 Relative selector</h5><p>Relative selector <a href="#rfc-keywords">MUST</a> be interpreted as selector +<h5><a name="d0e2278" id="d0e2278"></a>5.3.3.2 Relative selector</h5><p>Relative selector <a href="#rfc-keywords">MUST</a> be interpreted as selector as defined in <a title="Selectors Level
 3" href="#css3-selectors">[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"><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="d0e2316" id="d0e2316"></a>5.3.4 Additional query languages</h4><p>ITS processors <a href="#rfc-keywords">MAY</a> support additional query +<h4><a href="#contents"><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="d0e2291" id="d0e2291"></a>5.3.4 Additional query languages</h4><p>ITS processors <a href="#rfc-keywords">MAY</a> support additional query languages. For each additional query language the processor <a href="#rfc-keywords">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>, @@ -1362,15 +1356,15 @@ </p><div class="note"><p class="prefix"><b>Note:</b></p><p>Please note that the term <code>HTML</code> refers to HTML5 or its successor in HTML syntax <a title="HTML5" href="#html5">[HTML5]</a>.</p></div><div class="div2"> <h3><a href="#contents"><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-local-attributes" id="html5-local-attributes"></a>6.1 Mapping of Local Data Categories to HTML</h3><p>All data categories defined in <a class="section-ref" href="#datacategory-description">Section 8: Description of Data Categories</a> - and having local implementation might be used in HTML with the exception of <a href="#trans-datacat">Translate</a>, <a href="#directionality">Directionality</a>, <a href="#ruby-annotation">Ruby</a>, and <a href="#language-information">Language + and having local implementation might be used in HTML with the exception of <a href="#trans-datacat">Translate</a>, <a href="#directionality">Directionality</a> and <a href="#language-information">Language Information</a> data categories.</p><div class="note"><p class="prefix"><b>Note:</b></p><p>The above mentioned data categories are excluded because HTML has native markup for them.</p></div><p>In HTML data categories are implemented as attributes. Name of the HTML attribute is derived from the name of the attribute defined in the local implementation by using the following rules:</p><ol class="depth1"><li><p>Attribute name is prefixed with <code>its-</code></p></li><li><p>Each uppercase letter in the attribute name is replaced by <code>-</code> (U+002D) followed by a lowercase variant of the letter.</p></li></ol><p> </p><p> - <a href="#EX-within-text-local-1">Example 53</a> demonstrates the <a href="#elements-within-text">Elements Within Text</a> data category with the local - XML attribute <code class="its-attr-markup">withinText</code>. <a href="#EX-within-text-local-html5-1">Example 54</a> demonstrates the counterpart in HTML, that is + <a href="#EX-within-text-local-1">Example 51</a> demonstrates the <a href="#elements-within-text">Elements Within Text</a> data category with the local + XML attribute <code class="its-attr-markup">withinText</code>. <a href="#EX-within-text-local-html5-1">Example 52</a> demonstrates the counterpart in HTML, that is the local attribute <code class="its-attr-markup">its-within-text</code>.</p><p>Values of attributes which corresponds to data categories with a predefined set of values <a href="#rfc2119">MUST</a> be matched ASCII-case-insensitively. </p><div class="note"><p class="prefix"><b>Note:</b></p><p>Case of attribute names is also irrelevant given the nature of HTML syntax. So in HTML terminology data category can be stored as <code class="its-attr-markup">its-term</code>, @@ -1466,7 +1460,7 @@ via <a href="#idvalue">ID value</a> pertains only to the <code>p</code> element. It cannot be used to identify nested elements or attributes.</p></li><li><p>Using <a href="#target-pointer">target pointer</a>, selected <code>source</code> element have the ITS information that their translation is - available in a <code>target</code> element; see <a href="#EX-target-pointer-global-1">Example 70</a>. This information does not + available in a <code>target</code> element; see <a href="#EX-target-pointer-global-1">Example 68</a>. This information does not inherit to child elements of <code>target pointer</code>. E.g., the translation of a <code>span</code> element nested in <code>source</code> is not available in a specific <code>target</code> element. Nevertheless, an application is free to use @@ -1494,9 +1488,6 @@ elements</td><td> <a href="#EX-dir-selector-3">local</a>, <a href="#EX-dir-selector-2">global</a> </td></tr><tr><td> - <a href="#ruby-annotation">Ruby</a> (<code>ruby</code>) </td><td>Yes</td><td>Yes</td><td>Yes</td><td>Yes</td><td>None</td><td>None</td><td> - <a href="#EX-ruby-implementation-1">local</a>, <a href="#EX-ruby-legacy-1">global</a> - </td></tr><tr><td> <a href="#language-information">Language Information</a> (<code>language-information</code>) </td><td>No</td><td>Yes</td><td>No</td><td>Yes</td><td>None</td><td>Textual content of element, <em>including</em> attributes and child elements</td><td> @@ -1906,64 +1897,14 @@ means "Internationalization Activity, W3C".<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-dir-html5-local-1.html">examples/html5/EX-dir-html5-local-1.html</a>]</p></div></div></div><div class="div2"> -<h3><a href="#contents"><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="ruby-annotation" id="ruby-annotation"></a>8.6 Ruby</h3><p>This section is <em>informative</em>.</p><div class="note"><p class="prefix"><b>Note:</b></p><p id="ruby-non-normative-explanation">As time of writing, ruby is not clearly - defined in HTML, and no implementation commitment is seen for the <a href="#ruby-annotation">Ruby</a> data category in ITS 2.0. Hence this data - category is defined as informative, creating a non-backward compatibly change to ITS - 1.0. This note and this section may be updated with the proper guidance if the HTML - definition is stabilized before ITS 2.0 moves to proposed recommendation status. - Nevertheless, to be able to move to last call, the <a href="#ruby-annotation">Ruby</a> data category will not be defined as a normative feature of ITS - 2.0.</p></div><div class="div3"> -<h4><a href="#contents"><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="ruby-definition" id="ruby-definition"></a>8.6.1 Definition</h4><p>The <a href="#ruby-annotation">Ruby</a> data category is used for a run of text - that is associated with another run of text, referred to as the base text. Ruby text - is used to provide a short annotation of the associated base text. It is most often - used to provide a reading (pronunciation) guide.</p></div><div class="div3"> -<h4><a href="#contents"><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="ruby-implementation" id="ruby-implementation"></a>8.6.2 Implementation</h4><span class="editor-note">[Ed. note: Examples for HTML need to be added;]</span><p>The <a href="#ruby-annotation">Ruby</a> data category can be expressed with - global rules, or locally. There is no inheritance.</p><p id="ruby-global">GLOBAL: The <code class="its-elem-markup">rubyRule</code> element contains the - following:</p><ul><li><p>A required <code class="its-attr-markup">selector</code> attribute. It contains an <a href="#selectors">absolute selector</a> which selects the nodes to which this - rule applies. This is the ruby base text.</p></li><li><p>An optional <code class="its-attr-markup">rubyPointer</code> attribute that contains a <a href="#selectors">relative selector</a> pointing to a node that corresponds to - the ruby element.</p></li><li><p>An optional <code class="its-attr-markup">rpPointer</code> attribute that contains a <a href="#selectors">relative selector</a> pointing to a node that corresponds to - the ruby parenthesis.</p></li><li><p>An optional <code class="its-elem-markup">rubyText</code> element that contains the ruby text.</p></li><li><p>An optional <code class="its-attr-markup">rtPointer</code> attribute that contains a <a href="#selectors">relative selector</a> pointing to a node that corresponds to - the ruby text.</p></li></ul><div class="note"><p class="prefix"><b>Note:</b></p><p>Where legacy formats do not contain ruby markup, it is still possible to - associate ruby text with a specified range of document content using the - <code class="its-elem-markup">rubyRule</code> element.</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-ruby-legacy-1" id="EX-ruby-legacy-1"></a>Example 49: Adding ruby text with a <code class="its-elem-markup">rubyRule</code> element</div><div class="exampleInner"><pre><strong class="hl-tag" style="color: #000096"><text</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"><head></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:rubyRule</strong> <span class="hl-attribute" style="color: #F5844C">selector</span>=<span class="hl-value" style="color: #993300">"/text/body/img[1]/@alt"</span><strong class="hl-tag" style="color: #000096">></strong> - <strong class="hl-tag" style="color: #000096"><its:rubyText></strong>World Wide Web Consortium<strong class="hl-tag" style="color: #000096"></its:rubyText></strong> - <strong class="hl-tag" style="color: #000096"></its:rubyRule></strong> - <strong class="hl-tag" style="color: #000096"></its:rules></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"><img</strong> <span class="hl-attribute" style="color: #F5844C">src</span>=<span class="hl-value" style="color: #993300">"w3c_home.png"</span> <span class="hl-attribute" style="color: #F5844C">alt</span>=<span class="hl-value" style="color: #993300">"W3C"</span><strong class="hl-tag" style="color: #000096">/></strong> - ... - <strong class="hl-tag" style="color: #000096"></body></strong> -<strong class="hl-tag" style="color: #000096"></text></strong> -</pre></div><p>[Source file: <a href="examples/xml/EX-ruby-legacy-1.xml">examples/xml/EX-ruby-legacy-1.xml</a>]</p></div><p id="ruby-local">LOCAL: In a document, the <a href="#ruby-annotation">Ruby</a> data category is realized with a <code class="its-elem-markup">ruby</code> element. It contains the - following:</p><span class="editor-note">[Ed. note: Not sure if the following is correct and understandable. Also Ruby model - was recently extended in HTML5, we should align to this probably.]</span><ul><li><p>The ruby base text or <code class="its-elem-markup">span</code> element that contains the ruby base text and - allows for <a href="#selection-local">local ITS markup</a>.</p></li><li><p>An <code class="its-elem-markup">rp</code> element that contains the ruby parenthesis. It is used in case of - simple markup to specify characters that can denote the beginning and end of ruby - text when user agents do not have other ways to present ruby text distinctively from - the base text.</p></li><li><p>An <code class="its-elem-markup">rt</code> element that contains the ruby text and allows for <a href="#selection-local">local ITS markup</a>.</p></li></ul><p>All these elements share the attributes of the <code class="its-elem-markup">span</code> element. </p><div class="exampleOuter"><div class="exampleHeader"><a name="EX-ruby-implementation-1" id="EX-ruby-implementation-1"></a>Example 50: The <a href="#ruby-annotation">Ruby</a> data category expressed - locally</div><div class="exampleInner"><pre><strong class="hl-tag" style="color: #000096"><text</strong> <span class="hl-attribute" style="color: #F5844C">its:version</span>=<span class="hl-value" style="color: #993300">"2.0"</span> <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"><head></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"><p></strong>この本は - <strong class="hl-tag" style="color: #000096"><its:ruby></strong>慶応義塾大学<strong class="hl-tag" style="color: #000096"><its:rp></strong>(<strong class="hl-tag" style="color: #000096"></its:rp></strong><strong class="hl-tag" style="color: #000096"><its:rt></strong>けいおうぎじゅくだいがく<strong class="hl-tag" style="color: #000096"></its:rt></strong><strong class="hl-tag" style="color: #000096"><its:rp></strong>)<strong class="hl-tag" style="color: #000096"></its:rp></strong><strong class="hl-tag" style="color: #000096"></its:ruby></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"></text></strong> -</pre></div><p>[Source file: <a href="examples/xml/EX-ruby-implementation-1.xml">examples/xml/EX-ruby-implementation-1.xml</a>]</p></div><div class="note"><p class="prefix"><b>Note:</b></p><p>The structure of the content model for the <code class="its-elem-markup">ruby</code> element is identical - with the structure of ruby markup as defined in <a title="HTML5" href="#html5">[HTML5]</a>.</p></div></div></div><div class="div2"> -<h3><a href="#contents"><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="language-information" id="language-information"></a>8.7 Language Information</h3><div class="div3"> -<h4><a href="#contents"><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="langinfo-definition" id="langinfo-definition"></a>8.7.1 Definition</h4><p>The element <code class="its-elem-markup">langRule</code> is used to express the language +<h3><a href="#contents"><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="language-information" id="language-information"></a>8.6 Language Information</h3><div class="div3"> +<h4><a href="#contents"><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="langinfo-definition" id="langinfo-definition"></a>8.6.1 Definition</h4><p>The element <code class="its-elem-markup">langRule</code> is used to express the language of a given piece of content. The <code class="its-attr-markup">langPointer</code> attribute points to the markup which expresses the language of the text selected by the selector attribute. This markup <a href="#rfc-keywords">MUST</a> use values that conform to <a title="Tags for Identifying
 Languages" href="#bcp47">[BCP47]</a>. The recommended way to specify language identification is to use <code>xml:lang</code> in XML, and <code>lang</code> in HTML. The <code class="its-elem-markup">langRule</code> element is intended only as a fall-back mechanism for documents - where language is identified with another construct.</p><div class="exampleOuter"><div class="exampleHeader"><a name="EX-lang-definition-1" id="EX-lang-definition-1"></a>Example 51: Pointing to language information via <code class="its-elem-markup">langRule</code> + where language is identified with another construct.</p><div class="exampleOuter"><div class="exampleHeader"><a name="EX-lang-definition-1" id="EX-lang-definition-1"></a>Example 49: Pointing to language information via <code class="its-elem-markup">langRule</code> </div><p>The following <code class="its-elem-markup">langRule</code> element expresses that the content of all <code>p</code> elements (including attribute values and textual content of child elements) are in the language indicated by <code>mylangattribute</code>, which is @@ -1974,7 +1915,7 @@ </pre></div><p>[Source file: <a href="examples/xml/EX-lang-definition-1.xml">examples/xml/EX-lang-definition-1.xml</a>]</p></div><div class="note"><p class="prefix"><b>Note:</b></p><p>The <a href="#language-information">Language Information</a> data category only provides for rules to be expressed at a global level. Locally users are able to use <code>xml:lang</code> (which is defined by XML), or <code>lang</code> in HTML, - or an attribute specific to the format in question (as in <a href="#EX-lang-definition-1">Example 51</a>).</p><p>In XML <code>xml:lang</code> is the preferable means of language identification. To + or an attribute specific to the format in question (as in <a href="#EX-lang-definition-1">Example 49</a>).</p><p>In XML <code>xml:lang</code> is the preferable means of language identification. To ease the usage of <code>xml:lang</code>, a declaration for this attribute is part of the non-normative XML DTD and XML Schema document for ITS markup declarations. There is no declaration of <code>xml:lang</code> in the non-normative RELAX NG document @@ -1983,14 +1924,14 @@ category to <code>xml:lang</code> attributes using global rules is not necessary, since <code>xml:lang</code> is the standard way to specify language information in <a title="Extensible Markup Language
 (XML) 1.0 (Fifth Edition)" href="#xml10spec">[XML 1.0]</a> .</p><p>In HTML <code>lang</code> is the mandated means of language identification.</p></div></div><div class="div3"> -<h4><a href="#contents"><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="langinfo-implementation" id="langinfo-implementation"></a>8.7.2 Implementation</h4><p>The <a href="#language-information">Language Information</a> data category can +<h4><a href="#contents"><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="langinfo-implementation" id="langinfo-implementation"></a>8.6.2 Implementation</h4><p>The <a href="#language-information">Language Information</a> data category can be expressed only with global rules. For elements, the data category information <a href="#def-inheritance">inherits</a> to the textual content of the element, <em>including</em> child elements and attributes. There is no default.</p><p id="languageinformation-global">GLOBAL: The <code class="its-elem-markup">langRule</code> element contains the following:</p><ul><li><p>A required <code class="its-attr-markup">selector</code> attribute. It contains an <a href="#selectors">absolute selector</a> which selects the nodes to which this rule applies.</p></li><li><p>A required <code class="its-attr-markup">langPointer</code> attribute that contains a <a href="#selectors">relative selector</a> pointing to a node that contains language information.</p></li></ul></div></div><div class="div2"> -<h3><a href="#contents"><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="elements-within-text" id="elements-within-text"></a>8.8 Elements Within Text</h3><div class="div3"> -<h4><a href="#contents"><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-definition" id="within-text-definition"></a>8.8.1 Definition</h4><p>The <a href="#elements-within-text">Elements Within Text</a> data category +<h3><a href="#contents"><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="elements-within-text" id="elements-within-text"></a>8.7 Elements Within Text</h3><div class="div3"> +<h4><a href="#contents"><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-definition" id="within-text-definition"></a>8.7.1 Definition</h4><p>The <a href="#elements-within-text">Elements Within Text</a> data category reveals if and how an element affects the way text content behaves from a linguistic viewpoint. This information is for example relevant to provide basic text segmentation hints for tools such as translation memory systems. The values associated with this @@ -2012,21 +1953,21 @@ <code><li>Palouse horses: <p>They have spotted coats.</p> <p>They have been bred by the Nez Perce.</p> </li></code> </p></li></ul></div><div class="div3"> -<h4><a href="#contents"><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"></a>8.8.2 Implementation</h4><p>The <a href="#elements-within-text">Elements Within Text</a> data category can +<h4><a href="#contents"><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"></a>8.7.2 Implementation</h4><p>The <a href="#elements-within-text">Elements Within Text</a> data category can be expressed with global rules, or locally on an individual element. There is no inheritance. The default is that elements are not within text.</p><p id="withintext-global">GLOBAL: The <code class="its-elem-markup">withinTextRule</code> element contains the following:</p><ul><li><p>A required <code class="its-attr-markup">selector</code> attribute. It contains an <a href="#selectors">absolute selector</a> which selects the nodes to which this rule applies.</p></li><li><p>A required <code class="its-attr-markup">withinText</code> attribute with the value "yes", - "no" or "nested".</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-within-text-implementation-1" id="EX-within-text-implementation-1"></a>Example 52: Specifying elements within text with a <code class="its-elem-markup">withinTextRule</code> element</div><div class="exampleInner"><pre><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> <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> + "no" or "nested".</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-within-text-implementation-1" id="EX-within-text-implementation-1"></a>Example 50: Specifying elements within text with a <code class="its-elem-markup">withinTextRule</code> element</div><div class="exampleInner"><pre><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> <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"><its:withinTextRule</strong> <span class="hl-attribute" style="color: #F5844C">withinText</span>=<span class="hl-value" style="color: #993300">"yes"</span> <span class="hl-attribute" style="color: #F5844C">selector</span>=<span class="hl-value" style="color: #993300">"//b | //em | //i"</span><strong class="hl-tag" style="color: #000096">/></strong> <strong class="hl-tag" style="color: #000096"></its:rules></strong> </pre></div><p>[Source file: <a href="examples/xml/EX-within-text-implementation-1.xml">examples/xml/EX-within-text-implementation-1.xml</a>]</p></div><p id="withintext-local">LOCAL: The following local markup is available for the <a href="#elements-within-text">Elements Within Text</a> data category:</p><ul><li><p>A <code class="its-attr-markup">withinText</code> attribute with the values "yes", - "no" or "nested".</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-within-text-local-1" id="EX-within-text-local-1"></a>Example 53: The <a href="#trans-datacat">Elements Within Text</a> data category + "no" or "nested".</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-within-text-local-1" id="EX-within-text-local-1"></a>Example 51: The <a href="#trans-datacat">Elements Within Text</a> data category expressed locally</div><div class="exampleInner"><pre><strong class="hl-tag" style="color: #000096"><text</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> <span class="hl-attribute" style="color: #F5844C">its: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"><body></strong> <strong class="hl-tag" style="color: #000096"><par></strong>Text with <strong class="hl-tag" style="color: #000096"><bold</strong> <span class="hl-attribute" style="color: #F5844C">its:withinText</span>=<span class="hl-value" style="color: #993300">"yes"</span><strong class="hl-tag" style="color: #000096">></strong>bold<strong class="hl-tag" style="color: #000096"></bold></strong>.<strong class="hl-tag" style="color: #000096"></par></strong> <strong class="hl-tag" style="color: #000096"></body></strong> -<strong class="hl-tag" style="color: #000096"></text></strong></pre></div><p>[Source file: <a href="examples/xml/EX-within-text-local-1.xml">examples/xml/EX-within-text-local-1.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-within-text-local-html5-1" id="EX-within-text-local-html5-1"></a>Example 54: The <a href="#trans-datacat">Elements Within Text</a> data category +<strong class="hl-tag" style="color: #000096"></text></strong></pre></div><p>[Source file: <a href="examples/xml/EX-within-text-local-1.xml">examples/xml/EX-within-text-local-1.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-within-text-local-html5-1" id="EX-within-text-local-html5-1"></a>Example 52: The <a href="#trans-datacat">Elements Within Text</a> data category expressed locally in HTML</div><div class="exampleInner"><pre><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> @@ -2037,8 +1978,8 @@ <strong class="hl-tag" style="color: #000096"><p></strong>Text with <strong class="hl-tag" style="color: #000096"><span</strong> <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>bold<strong class="hl-tag" style="color: #000096"></span></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-within-text-local-html5-1.html">examples/html5/EX-within-text-local-html5-1.html</a>]</p></div></div></div><div class="div2"> -<h3><a href="#contents"><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="___domain" id="___domain"></a>8.9 Domain</h3><div class="div3"> -<h4><a href="#contents"><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="___domain-definition" id="___domain-definition"></a>8.9.1 Definition</h4><p>The <a href="#___domain">Domain</a> data category is used to identify the topic or +<h3><a href="#contents"><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="___domain" id="___domain"></a>8.8 Domain</h3><div class="div3"> +<h4><a href="#contents"><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="___domain-definition" id="___domain-definition"></a>8.8.1 Definition</h4><p>The <a href="#___domain">Domain</a> data category is used to identify the topic or subject of a given content. Such information allows to make more relevant lingusitic choices during various processes.</p><p>Examples of usage include:</p><ul><li><p>Allowing machine translation systems to select the most appropriate engine and rules to translate the content.</p></li><li><p>Providing a general indication of what terminology collection should be used by @@ -2048,7 +1989,7 @@ phrases, classification codes, ontologies, etc. The <a href="#___domain">Domain</a> data category does not propose its own given list. Instead it provides a mapping mechanism to associate the values in the document with the values used by the consumer tool.</p></li></ul></div><div class="div3"> -<h4><a href="#contents"><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="___domain-implementation" id="___domain-implementation"></a>8.9.2 Implementation</h4><p>The <a href="#___domain">Domain</a> data category can be expressed only with +<h4><a href="#contents"><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="___domain-implementation" id="___domain-implementation"></a>8.8.2 Implementation</h4><p>The <a href="#___domain">Domain</a> data category can be expressed only with global rules. For elements, the data category information <a href="#def-inheritance">inherits</a> to the textual content of the element, <em>including</em> child elements and attributes. There is no default.</p><p>The information provided by this data category is a comma-separated list of one or more values which is obtained by applying the following algorithm:</p><ul class="slist"><li><p>STEP 1: Set the initial value of the resulting string as an empty @@ -2090,14 +2031,14 @@ follow the naming scheme B_456.</p></li><li><p>A <code class="its-attr-markup">domainMapping</code> like the following is in place: domainMapping="'sports law' Legal, 'property law' Legal"</p></li><li><p>Engine A maps 'Legal' to A_4711, Engine B maps 'Legal' to B_42.</p></li></ul><p>Thus, ITS does not encode a process or workflow (like "Use MT engine A with ___domain A_4711, and use MT engine B with ___domain A_42"). Rather, it encodes information that - can be used in workflows.</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-___domain-1" id="EX-___domain-1"></a>Example 55: The <code class="its-elem-markup">domainRule</code> element</div><p>The <code class="its-elem-markup">domainRule</code> element expresses that the content of the HTML + can be used in workflows.</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-___domain-1" id="EX-___domain-1"></a>Example 53: The <code class="its-elem-markup">domainRule</code> element</div><p>The <code class="its-elem-markup">domainRule</code> element expresses that the content of the HTML <code>body</code> element is in the ___domain expressed by the HTML <code>meta</code> element with the <code>name</code> attribute, value <code>keywords</code>. The <code class="its-attr-markup">domainPointer</code> attribute points to that <code>meta</code> element.</p><div class="exampleInner"><pre><strong class="hl-tag" style="color: #000096"><its:rules</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> <span class="hl-attribute" style="color: #F5844C">version</span>=<span class="hl-value" style="color: #993300">"2.0"</span> <span class="hl-attribute" style="color: #F5844C">xmlns:h</span>=<span class="hl-value" style="color: #993300">"http://www.w3.org/1999/xhtml"</span><strong class="hl-tag" style="color: #000096">></strong> <strong class="hl-tag" style="color: #000096"><its:domainRule</strong> <span class="hl-attribute" style="color: #F5844C">selector</span>=<span class="hl-value" style="color: #993300">"/h:html/h:body"</span> <span class="hl-attribute" style="color: #F5844C">domainPointer</span>=<span class="hl-value" style="color: #993300">"/h:html/h:head/h:meta[@name='keywords']/@content"</span><strong class="hl-tag" style="color: #000096">/></strong> -<strong class="hl-tag" style="color: #000096"></its:rules></strong></pre></div><p>[Source file: <a href="examples/xml/EX-___domain-1.xml">examples/xml/EX-___domain-1.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-___domain-2" id="EX-___domain-2"></a>Example 56: The <code class="its-elem-markup">domainRule</code> element</div><p>The <code class="its-elem-markup">domainRule</code> element expresses that the content of the HTML +<strong class="hl-tag" style="color: #000096"></its:rules></strong></pre></div><p>[Source file: <a href="examples/xml/EX-___domain-1.xml">examples/xml/EX-___domain-1.xml</a>]</p></div><div class="exampleOuter"><div class="exampleHeader"><a name="EX-___domain-2" id="EX-___domain-2"></a>Example 54: The <code class="its-elem-markup">domainRule</code> element</div><p>The <code class="its-elem-markup">domainRule</code> element expresses that the content of the HTML <code>body</code> element is in the ___domain expressed by associated values. The <code class="its-attr-markup">domainPointer</code> attribute points to the values in the source content. In this case it points to the <code>meta</code> elements with the <code>name</code> @@ -2116,7 +2057,7 @@ element with the <code>name</code> attribute set to "keywords", see <a href="http://www.w3.org/TR/html5/single-page.html#standard-metadata-names">standard metadata names in HTML</a>. Alternatively, following the process for <a href="http://www.w3.org/TR/html5/single-page.html#other-metadata-names">other metadata names</a> the <a href="http://wiki.whatwg.org/wiki/MetaExtensions">extension value</a> of "dcterms.subject" can be used. The usage of both "keywords" and - "dcterms.subject" is shown in example <a href="#EX-___domain-2">Example 56</a>.</p><p>In the area of machine translation (e.g. machine translation systems or systems + "dcterms.subject" is shown in example <a href="#EX-___domain-2">Example 54</a>.</p><p>In the area of machine translation (e.g. machine translation systems or systems harvesting content for machine translation training), there is no agreed upon set of value sets for ___domain. Nevertheless it is recommended to use a small set of values both in source content and within consumer tools, to foster interoperability. If @@ -2135,8 +2076,8 @@ "property law", the consumer tool may opt to include its domains [775 lines skipped]
Received on Wednesday, 10 April 2013 15:46:02 UTC