- From: CVS User ysavoure <cvsmail@w3.org>
- Date: Mon, 17 Jun 2013 09:41:31 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20 In directory gil:/tmp/cvs-serv18356 Modified Files: its20.html its20.odd Log Message: edited 2.1 --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html 2013/06/17 09:39:43 1.455 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html 2013/06/17 09:41:30 1.456 @@ -351,9 +351,19 @@ systems provide about their translation. </p></li><li><p><a href="#allowedchars" shape="rect">Allowed Characters</a>: specifies the characters that are permitted in a given piece of content.</p></li><li><p><a href="#storagesize" shape="rect">Storage Size</a>: specifies the maximum storage size of a given piece of content.</p></li></ul></div><div class="div2"> -<h3><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="basic-concepts-selection" id="basic-concepts-selection" shape="rect"/>2.2 Selection</h3><p>Information (e.g. “translate this”) captured by an ITS data category always pertains to one or more XML or HTML nodes, primarily element and attribute nodes. In a sense, the relevant node(s) get “selected”. Selection may be explicit or implicit. ITS distinguishes two mechanisms for explicit selection: (1) local approach, and (2) global approach (via <code class="its-elem-markup">rules</code>). Both local and global approach can interact with each other, and with additional ITS dimensions such as inheritance and defaults.</p><p>The mechanisms defined for ITS selection resemble those defined in <a title="Cascading Style Sheets,
 level 2 revision 1 CSS 2.1 Specification" href="#css2-1" shape="rect">[CSS 21]</a>. The local approach can be compared to the - <code>style</code> attribute in HTML/XHTML, and the global approach is similar to the <code>style</code> element in HTML/XHTML.</p><ul><li><p>the local approach puts ITS markup in the relevant element of the host vocabulary (e.g. the <code>author</code> element in DocBook)</p></li><li><p>the global, <a href="#selection-global" shape="rect">rule-based approach</a> puts the ITS - markup in elements defined by ITS itself (namely the <code class="its-elem-markup">rules</code> element)</p></li></ul><p>ITS usually uses XPath in rules for identifying nodes although CSS Selectors and other query languages can in addition be implemented by applications.</p><p>ITS 2.0 can be used with XML documents (e.g. a DocBook article), HTML documents, or schemas (e.g. an XML Schema document for a proprietary document format).</p><p>The following two examples provide more details about the distinction between the local and global approach, using the <a href="#trans-datacat" shape="rect">Translate</a> data category as example.</p><div class="div3"> +<h3><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="basic-concepts-selection" id="basic-concepts-selection" shape="rect"/>2.2 Selection</h3><p>Information (e.g. “translate this”) captured by an ITS data category always + pertains to one or more XML or HTML nodes, primarily element and attribute nodes. In a + sense, the relevant node(s) get “selected”. Selection may be explicit or implicit. + ITS distinguishes two mechanisms for explicit selection: (1) local and (2) global (via + <code class="its-elem-markup">rules</code>). Both local and global approaches can interact with each other, and + with additional ITS dimensions such as inheritance and defaults.</p><p>The mechanisms defined for ITS selection resemble those defined in <a title="Cascading Style Sheets,
 level 2 revision 1 CSS 2.1 Specification" href="#css2-1" shape="rect">[CSS 2.1]</a>. The local approach can be compared to the + <code>style</code> attribute in HTML/XHTML, and the global approach is similar to the <code>style</code> element in HTML/XHTML.</p><ul><li><p>The local approach puts ITS markup in the relevant element of the host vocabulary + (e.g. the <code>author</code> element in DocBook)</p></li><li><p>The global <a href="#selection-global" shape="rect">rule-based approach</a> puts the ITS + markup in elements defined by ITS itself (namely the <code class="its-elem-markup">rules</code> element)</p></li></ul><p>ITS usually uses XPath in rules for identifying nodes although CSS Selectors and other query languages can in addition be implemented by applications.</p><p>ITS 2.0 can be used with XML documents (e.g. a DocBook article), HTML documents, + document schemas (e.g. an XML Schema document for a proprietary document format), or + data models in RDF.</p><p>The following two examples provide more details about the distinction between the local + and global approach, using the <a href="#trans-datacat" shape="rect">Translate</a> data + category as an example.</p><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="basic-concepts-selection-local" id="basic-concepts-selection-local" shape="rect"/>2.2.1 Local Approach</h4><p>The document in <a href="#EX-basic-concepts-1" shape="rect">Example 3</a> shows how a content author may use the ITS <code class="its-attr-markup">translate</code> attribute to indicate that all content inside the <code>author</code> element should be protected from translation (i.e. must not be translated). Translation tools that are aware of the meaning of the attribute can protect the relevant content from being translated (possibly still allowing translators to see the protected content as context information).</p><div class="exampleOuter"><div class="exampleHeader"><a name="EX-basic-concepts-1" id="EX-basic-concepts-1" shape="rect"/>Example 3: ITS markup on elements in an XML document (local approach) </iv><div class="exampleInner"><pre xml:space="preserve"><strong class="hl-tag" style="color: #000096"><article</strong> <span class="hl-attribute" style="color: #F5844C">xmlns</span>=<span class="hl-value" style="color: #993300">"http://docbook.org/ns /docbook"</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>
 <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">version</span>=<span class="hl-value" style="color: #993300">"5.0"</span> <span class="hl-attribute" style="color: #F5844C">xml:lang</span>=<span class="hl-value" style="color: #993300">"en"</span><strong class="hl-tag" style="color: #000096">></strong>
 --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd 2013/06/17 09:39:44 1.457 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd 2013/06/17 09:41:31 1.458 @@ -538,19 +538,29 @@ <div xml:id="basic-concepts-selection"> <head>Selection</head> - <p>Information (e.g. <q>translate this</q>) captured by an ITS data category always pertains to one or more XML or HTML nodes, primarily element and attribute nodes. In a sense, the relevant node(s) get <q>selected</q>. Selection may be explicit or implicit. ITS distinguishes two mechanisms for explicit selection: (1) local approach, and (2) global approach (via <gi>rules</gi>). Both local and global approach can interact with each other, and with additional ITS dimensions such as inheritance and defaults.</p> + <p>Information (e.g. <q>translate this</q>) captured by an ITS data category always + pertains to one or more XML or HTML nodes, primarily element and attribute nodes. In a + sense, the relevant node(s) get <q>selected</q>. Selection may be explicit or implicit. + ITS distinguishes two mechanisms for explicit selection: (1) local and (2) global (via + <gi>rules</gi>). Both local and global approaches can interact with each other, and + with additional ITS dimensions such as inheritance and defaults.</p> <p>The mechanisms defined for ITS selection resemble those defined in <ptr target="#css2-1" type="bibref"/>. The local approach can be compared to the <code>style</code> attribute in HTML/XHTML, and the global approach is similar to the <code>style</code> element in HTML/XHTML.</p> <list> - <item>the local approach puts ITS markup in the relevant element of the host vocabulary (e.g. the <code>author</code> element in DocBook)</item> - <item>the global, <ref target="#selection-global">rule-based approach</ref> puts the ITS + <item>The local approach puts ITS markup in the relevant element of the host vocabulary + (e.g. the <code>author</code> element in DocBook)</item> + <item>The global <ref target="#selection-global">rule-based approach</ref> puts the ITS markup in elements defined by ITS itself (namely the <gi>rules</gi> element)</item> </list> <p>ITS usually uses XPath in rules for identifying nodes although CSS Selectors and other query languages can in addition be implemented by applications.</p> - <p>ITS 2.0 can be used with XML documents (e.g. a DocBook article), HTML documents, or schemas (e.g. an XML Schema document for a proprietary document format).</p> - <p>The following two examples provide more details about the distinction between the local and global approach, using the <ref target="#trans-datacat">Translate</ref> data category as example.</p> + <p>ITS 2.0 can be used with XML documents (e.g. a DocBook article), HTML documents, + document schemas (e.g. an XML Schema document for a proprietary document format), or + data models in RDF.</p> + <p>The following two examples provide more details about the distinction between the local + and global approach, using the <ref target="#trans-datacat">Translate</ref> data + category as an example.</p> <div xml:id="basic-concepts-selection-local">
Received on Monday, 17 June 2013 09:41:36 UTC