CVS WWW/International/multilingualweb/lt/drafts/its20

Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20
In directory gil:/tmp/cvs-serv6955

Modified Files:
	its20.html its20.odd 
Log Message:
Fixed text for issue-66 and chacked val/quote usage (action 334)

--- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html	2012/12/28 19:37:25	1.307
+++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.html	2013/01/10 17:15:39	1.308
@@ -52,9 +52,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="#d0e2037" shape="rect">XPath 1.0</a></div>
-<div class="toc3">5.3.3 <a href="#d0e2231" shape="rect">CSS Selectors</a></div>
-<div class="toc3">5.3.4 <a href="#d0e2270" shape="rect">Additional query languages</a></div>
+<div class="toc3">5.3.2 <a href="#d0e2033" shape="rect">XPath 1.0</a></div>
+<div class="toc3">5.3.3 <a href="#d0e2227" shape="rect">CSS Selectors</a></div>
+<div class="toc3">5.3.4 <a href="#d0e2266" 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>
@@ -839,12 +839,9 @@
          </p><div class="note"><p class="prefix"><b>Note:</b></p><p>Additional definitions about processing of HTML are given in <a class="section-ref" href="#html5-markup" shape="rect">Section 6: Using ITS Markup in HTML</a>.</p></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="its-version-attribute" id="its-version-attribute" shape="rect"/>5.1 Indicating the Version of ITS</h3><p>The version of the ITS schema defined in this specification is "2.0". The
             version is indicated by the ITS <code class="its-attr-markup">version</code> attribute. This attribute is
-            mandatory for the <code class="its-elem-markup">rules</code> element, where it <a href="#rfc-keywords" shape="rect">MUST</a> be in no namespace. If there is no <code class="its-elem-markup">rules</code> element in an XML
-            document, a prefixed ITS <code class="its-attr-markup">version</code> attribute (e.g. <code>its:version</code>)
-              <a href="#rfc-keywords" shape="rect">MUST</a> be provided at the root element of the
-            document. If there is both a <code class="its-attr-markup">version</code> attribute at the root element and a
-              <code class="its-elem-markup">rules</code> element in a document, they <a href="#rfc-keywords" shape="rect">MUST NOT</a>
-            specify different versions.</p><p>External, linked rules can have different versions than internal rules.</p></div><div class="div2">
+            mandatory for the <code class="its-elem-markup">rules</code> element, where it <a href="#rfc-keywords" shape="rect">MUST</a> be in no namespace.</p><p>If there is no <code class="its-elem-markup">rules</code> element in an XML document, a prefixed ITS <code class="its-attr-markup">version</code> attribute (e.g. <code>its:version</code>)
+              <a href="#rfc-keywords" shape="rect">MUST</a> be provided on the element where the ITS markup is used, or on one of its ancestors.
+            There <a href="#rfc-keywords" shape="rect">MUST NOT</a> be two different versions of ITS in the same document.</p><p>External, linked rules can have different versions than internal rules.</p></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="datacategory-locations" id="datacategory-locations" shape="rect"/>5.2 Locations of Data Categories</h3><p>ITS data categories can appear in two places:</p><ul><li><p><a href="#selection-global" shape="rect">Global rules</a>: the selection is realized
               within a <code class="its-elem-markup">rules</code> element. It contains <a href="#rule-elements" shape="rect">rule
                 elements</a> for each data category. Each rule element has a <code class="its-attr-markup">selector</code>
@@ -906,9 +903,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="d0e2037" id="d0e2037" 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="d0e2033" id="d0e2033" 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="d0e2048" id="d0e2048" 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="d0e2044" id="d0e2044" 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>.
@@ -945,18 +942,18 @@
                 with the following changes:</p><ul><li><p>Nodes selected by the expression in the <code class="its-attr-markup">selector</code> attribute form the
                     current node list.</p></li><li><p>Context node comes from the current node list.</p></li><li><p>The context position comes from the position of the current node in the current
                     node list; the first position is 1.</p></li><li><p>The context size comes from the size of the current node list.</p></li></ul></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="d0e2231" id="d0e2231" shape="rect"/>5.3.3 CSS Selectors</h4><div class="note"><p class="prefix"><b>Note:</b></p><p id="css-selectors-feature-at-risk">As of writing the working group has no
+<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="d0e2227" id="d0e2227" shape="rect"/>5.3.3 CSS Selectors</h4><div class="note"><p class="prefix"><b>Note:</b></p><p id="css-selectors-feature-at-risk">As of writing the working group has no
                 implememtation commitment for CSS selectors. If this doesn't change CSS selectors
                 will be marked as feature at risk for the candidate recommendation draft.</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="d0e2245" id="d0e2245" 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="d0e2241" id="d0e2241" 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 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="d0e2256" id="d0e2256" 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="d0e2252" id="d0e2252" 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 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="d0e2270" id="d0e2270" 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="d0e2266" id="d0e2266" 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 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>Future versions of this specification <a href="#rfc-keywords" shape="rect">MAY</a> define
               additional query languages. The following query language identifiers are reserved:
                 <code>xpath</code>, <code>css</code>, <code>xpath2</code>, <code>xpath3</code>,
@@ -1658,7 +1655,7 @@
               the <a href="#locNote-datacat" shape="rect">Localization Note</a> data category:</p><ul><li><p>One of the following:</p><ul><li><p>A <code class="its-attr-markup">locNote</code> attribute that contains the note
                     itself.</p></li><li><p>A <code class="its-attr-markup">locNoteRef</code> attribute that contains an IRI
                     referring to the location of the localization note.</p></li></ul></li><li><p>An optional <code class="its-attr-markup">locNoteType</code> attribute with the
-                    value"description" or "alert". If the <code class="its-attr-markup">locNoteType</code> attribute is not present, the type of localization note will
+                    value "description" or "alert". If the <code class="its-attr-markup">locNoteType</code> attribute is not present, the type of localization note will
                   be assumed to be "description".</p></li></ul><div class="exampleOuter"><div class="exampleHeader"><a name="EX-locNote-selector-2" id="EX-locNote-selector-2" shape="rect"/>Example 38: The <a href="#locNote-datacat" shape="rect">Localization Note</a> data category
                 expressed locally</div><div class="exampleInner"><pre xml:space="preserve"><strong class="hl-tag" style="color: #000096">&lt;msgList</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">xml:space</span>=<span class="hl-value" style="color: #993300">"preserve"</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">&gt;</strong>&#xD;
  <strong class="hl-tag" style="color: #000096">&lt;data</strong> <span class="hl-attribute" style="color: #F5844C">name</span>=<span class="hl-value" style="color: #993300">"LISTFILTERS_VARIANT"</span> <span class="hl-attribute" style="color: #F5844C">its:locNote</span>=<span class="hl-value" style="color: #993300">"Keep the leading space!"</span> <span class="hl-attribute" style="color: #F5844C">its:locNoteType</span>=<span class="hl-value" style="color: #993300">"alert"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>&#xD;
@@ -5412,47 +5409,47 @@
 </pre></div><p>[Source file: <a href="schemas/its20-types.rng" shape="rect">schemas/its20-types.rng</a>]</p><p>(<a href="schemas/its20-types.rnc" shape="rect">RELAX NG compact syntax version of
             schema</a>)</p></div><p>
             <em>5. Schematron schema</em>: Several constraints of ITS markup cannot be validated with above ITS schemas. The following
-          <a title="Rule-based validation --&#xA;              Schematron" href="#schematron" shape="rect">[Schematron]</a> document allows for validating some of these constraints.</p><div class="exampleOuter"><div class="exampleHeader"><a name="its-constraints-check-schematron" id="its-constraints-check-schematron" shape="rect"/>Example 101: Schematron schema for ITS</div><div class="exampleInner"><pre xml:space="preserve"><span class="hl-directive" style="color: maroon">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span>
-<strong class="hl-tag" style="color: #000096">&lt;schema</strong> <span class="hl-attribute" style="color: #F5844C">xmlns</span>=<span class="hl-value" style="color: #993300">"http://purl.oclc.org/dsdl/schematron"</span> <span class="hl-attribute" style="color: #F5844C">queryBinding</span>=<span class="hl-value" style="color: #993300">"xslt2"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;ns</strong> <span class="hl-attribute" style="color: #F5844C">uri</span>=<span class="hl-value" style="color: #993300">"http://www.w3.org/2005/11/its"</span> <span class="hl-attribute" style="color: #F5844C">prefix</span>=<span class="hl-value" style="color: #993300">"its"</span><strong class="hl-tag" style="color: #000096">/&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;ns</strong> <span class="hl-attribute" style="color: #F5844C">uri</span>=<span class="hl-value" style="color: #993300">"http://www.w3.org/1999/xlink"</span> <span class="hl-attribute" style="color: #F5844C">prefix</span>=<span class="hl-value" style="color: #993300">"xlink"</span><strong class="hl-tag" style="color: #000096">/&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;pattern&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;title&gt;</strong>Indicating the Version of ITS<strong class="hl-tag" style="color: #000096">&lt;/title&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;rule</strong> <span class="hl-attribute" style="color: #F5844C">context</span>=<span class="hl-value" style="color: #993300">"/*[//*[@its:*] | //its:*]"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>
-      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"@its:version | //its:rules/@version"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>The version is indicated by the ITS version attribute. This attribute is mandatory for the rules element, where it MUST be in no namespace. If there is no rules element in an XML document, a prefixed ITS version attribute (e.g. its:version) MUST be provided at the root element of the document.<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>
-      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"if (@its:version and //its:rules/@version) then //its:rules/@version = @its:version else true()"</span><strong class="hl-tag" style="color: #000096">&gt;</strong> If there is both a version attribute at the root element and a rules element in a document, they MUST NOT specify different versions.<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;/rule&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;/pattern&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;pattern&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;title&gt;</strong>Global, Rule-based Selection<strong class="hl-tag" style="color: #000096">&lt;/title&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;rule</strong> <span class="hl-attribute" style="color: #F5844C">context</span>=<span class="hl-value" style="color: #993300">"its:rules"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>
-      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"every $rules in //its:rules satisfies $rules/@version = current()/@version"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>If there is more than one rules element in an XML document, the rules from each section are to be processed at the same precedence level. The rules sections are to be read in document order, and the ITS rules with them processed sequentially. The versions of these rules elements MUST NOT be different.<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;/rule&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;/pattern&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;pattern&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;title&gt;</strong>Link to External Rules<strong class="hl-tag" style="color: #000096">&lt;/title&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;rule</strong> <span class="hl-attribute" style="color: #F5844C">context</span>=<span class="hl-value" style="color: #993300">"its:rules[@xlink:href]"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>
-      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"count(doc(resolve-uri(@xlink:href, base-uri()))//its:rules) le 1"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>The referenced document must be a valid XML document containing at most one rules element.<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;/rule&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;/pattern&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;pattern&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;title&gt;</strong>ITS Tools Annotation<strong class="hl-tag" style="color: #000096">&lt;/title&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;rule</strong> <span class="hl-attribute" style="color: #F5844C">context</span>=<span class="hl-value" style="color: #993300">"*[@its:annotatorsRef]"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>
-      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"every $ref in tokenize(@annotatorsRef, '\s+') satisfies matches($ref, '(translate|localization-note|terminology|directionality|ruby|language-information|elements-within-text|domain|disambiguation|locale-filter|provenance|external-resource|target-pointer|id-value|preserve-space|localization-quality-issue|localization-quality-rating|mt-confidence|allowed-characters|storage-size)\|.+')"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>The value of annotatorsRef is a space-separated list of references where each reference is composed of two parts: a data category identifier and an IRI. These two parts are separated by a character | VERTICAL LINE (U+007C).<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;/rule&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;/pattern&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;pattern&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;title&gt;</strong>Disambiguation<strong class="hl-tag" style="color: #000096">&lt;/title&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;rule</strong> <span class="hl-attribute" style="color: #F5844C">context</span>=<span class="hl-value" style="color: #993300">"its:disambiguationRule"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>
-      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"@disambigClassPointer | @disambigClassRefPointer | @disambigSourcePointer | @disambigIdentPointer | @disambigIdentRefPointer"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>Disambiguation rule must specify at least target type class or target identity.<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;/rule&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;/pattern&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;pattern&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;title&gt;</strong>Provenance standoff markup<strong class="hl-tag" style="color: #000096">&lt;/title&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;rule</strong> <span class="hl-attribute" style="color: #F5844C">context</span>=<span class="hl-value" style="color: #993300">"its:provenanceRecord"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>
-      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"@person | @personRef | @org | @orgRef | @tool | @toolRef | @revPerson | @revPersonRef | @revOrg | @revOrgRef | @revTool | @revToolRef | @provRef"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>At least one attribute must be specified on the provenanceRecord element.<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>
-    <strong class="hl-tag" style="color: #000096">&lt;/rule&gt;</strong>
-  <strong class="hl-tag" style="color: #000096">&lt;/pattern&gt;</strong>
+          <a title="Rule-based validation --&#xA;              Schematron" href="#schematron" shape="rect">[Schematron]</a> document allows for validating some of these constraints.</p><div class="exampleOuter"><div class="exampleHeader"><a name="its-constraints-check-schematron" id="its-constraints-check-schematron" shape="rect"/>Example 101: Schematron schema for ITS</div><div class="exampleInner"><pre xml:space="preserve"><span class="hl-directive" style="color: maroon">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span>&#xD;
+<strong class="hl-tag" style="color: #000096">&lt;schema</strong> <span class="hl-attribute" style="color: #F5844C">xmlns</span>=<span class="hl-value" style="color: #993300">"http://purl.oclc.org/dsdl/schematron"</span> <span class="hl-attribute" style="color: #F5844C">queryBinding</span>=<span class="hl-value" style="color: #993300">"xslt2"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;ns</strong> <span class="hl-attribute" style="color: #F5844C">uri</span>=<span class="hl-value" style="color: #993300">"http://www.w3.org/2005/11/its"</span> <span class="hl-attribute" style="color: #F5844C">prefix</span>=<span class="hl-value" style="color: #993300">"its"</span><strong class="hl-tag" style="color: #000096">/&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;ns</strong> <span class="hl-attribute" style="color: #F5844C">uri</span>=<span class="hl-value" style="color: #993300">"http://www.w3.org/1999/xlink"</span> <span class="hl-attribute" style="color: #F5844C">prefix</span>=<span class="hl-value" style="color: #993300">"xlink"</span><strong class="hl-tag" style="color: #000096">/&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;pattern&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;title&gt;</strong>Indicating the Version of ITS<strong class="hl-tag" style="color: #000096">&lt;/title&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;rule</strong> <span class="hl-attribute" style="color: #F5844C">context</span>=<span class="hl-value" style="color: #993300">"/*[//*[@its:*] | //its:*]"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>&#xD;
+      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"@its:version | //its:rules/@version"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>The version is indicated by the ITS version attribute. This attribute is mandatory for the rules element, where it MUST be in no namespace. If there is no rules element in an XML document, a prefixed ITS version attribute (e.g. its:version) MUST be provided at the root element of the document.<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>&#xD;
+      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"if (@its:version and //its:rules/@version) then //its:rules/@version = @its:version else true()"</span><strong class="hl-tag" style="color: #000096">&gt;</strong> If there is both a version attribute at the root element and a rules element in a document, they MUST NOT specify different versions.<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;/rule&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;/pattern&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;pattern&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;title&gt;</strong>Global, Rule-based Selection<strong class="hl-tag" style="color: #000096">&lt;/title&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;rule</strong> <span class="hl-attribute" style="color: #F5844C">context</span>=<span class="hl-value" style="color: #993300">"its:rules"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>&#xD;
+      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"every $rules in //its:rules satisfies $rules/@version = current()/@version"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>If there is more than one rules element in an XML document, the rules from each section are to be processed at the same precedence level. The rules sections are to be read in document order, and the ITS rules with them processed sequentially. The versions of these rules elements MUST NOT be different.<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;/rule&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;/pattern&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;pattern&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;title&gt;</strong>Link to External Rules<strong class="hl-tag" style="color: #000096">&lt;/title&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;rule</strong> <span class="hl-attribute" style="color: #F5844C">context</span>=<span class="hl-value" style="color: #993300">"its:rules[@xlink:href]"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>&#xD;
+      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"count(doc(resolve-uri(@xlink:href, base-uri()))//its:rules) le 1"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>The referenced document must be a valid XML document containing at most one rules element.<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;/rule&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;/pattern&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;pattern&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;title&gt;</strong>ITS Tools Annotation<strong class="hl-tag" style="color: #000096">&lt;/title&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;rule</strong> <span class="hl-attribute" style="color: #F5844C">context</span>=<span class="hl-value" style="color: #993300">"*[@its:annotatorsRef]"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>&#xD;
+      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"every $ref in tokenize(@annotatorsRef, '\s+') satisfies matches($ref, '(translate|localization-note|terminology|directionality|ruby|language-information|elements-within-text|domain|disambiguation|locale-filter|provenance|external-resource|target-pointer|id-value|preserve-space|localization-quality-issue|localization-quality-rating|mt-confidence|allowed-characters|storage-size)\|.+')"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>The value of annotatorsRef is a space-separated list of references where each reference is composed of two parts: a data category identifier and an IRI. These two parts are separated by a character | VERTICAL LINE (U+007C).<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;/rule&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;/pattern&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;pattern&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;title&gt;</strong>Disambiguation<strong class="hl-tag" style="color: #000096">&lt;/title&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;rule</strong> <span class="hl-attribute" style="color: #F5844C">context</span>=<span class="hl-value" style="color: #993300">"its:disambiguationRule"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>&#xD;
+      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"@disambigClassPointer | @disambigClassRefPointer | @disambigSourcePointer | @disambigIdentPointer | @disambigIdentRefPointer"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>Disambiguation rule must specify at least target type class or target identity.<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;/rule&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;/pattern&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;pattern&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;title&gt;</strong>Provenance standoff markup<strong class="hl-tag" style="color: #000096">&lt;/title&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;rule</strong> <span class="hl-attribute" style="color: #F5844C">context</span>=<span class="hl-value" style="color: #993300">"its:provenanceRecord"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>&#xD;
+      <strong class="hl-tag" style="color: #000096">&lt;assert</strong> <span class="hl-attribute" style="color: #F5844C">test</span>=<span class="hl-value" style="color: #993300">"@person | @personRef | @org | @orgRef | @tool | @toolRef | @revPerson | @revPersonRef | @revOrg | @revOrgRef | @revTool | @revToolRef | @provRef"</span><strong class="hl-tag" style="color: #000096">&gt;</strong>At least one attribute must be specified on the provenanceRecord element.<strong class="hl-tag" style="color: #000096">&lt;/assert&gt;</strong>&#xD;
+    <strong class="hl-tag" style="color: #000096">&lt;/rule&gt;</strong>&#xD;
+  <strong class="hl-tag" style="color: #000096">&lt;/pattern&gt;</strong>&#xD;
 <strong class="hl-tag" style="color: #000096">&lt;/schema&gt;</strong></pre></div><p>[Source file: <a href="schemas/its20.sch" shape="rect">schemas/its20.sch</a>]</p></div><span class="editor-note">[Ed. note: W3C XML Schema will be provided later.]</span></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="informative-references" id="informative-references" shape="rect"/>E References (Non-Normative)</h2><dl><dt class="label"><a name="bidiarticle" id="bidiarticle" shape="rect"/>Bidi Article</dt><dd>Richard Ishida. <a href="http://www.w3.org/International/articles/inline-bidi-markup/" shape="rect"><cite>What you
                 need to know about the bidi algorithm and inline markup</cite></a>. Article of
@@ -5691,7 +5688,7 @@
                      <code class="its-attr-markup">its-storage-size</code>, <code class="its-attr-markup">its-storage-encoding</code>?, <code class="its-attr-markup">lits-line-break-type</code>?</td></tr></tbody></table></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="revisionlog" id="revisionlog" shape="rect"/>H Revision Log (Non-Normative)</h2><p id="changelog-since-20121206">The following log records major changes that have been
           made to this document since the <a href="http://www.w3.org/TR/2012/WD-its20-20121206/" shape="rect">ITS 2.0 Working Draft 6 December 2012</a>.</p><ol class="depth1"><li><p>Fixed <a href="#EX-its-tool-annotation-1" shape="rect">Example 26</a>, see <a href="https://www.w3.org/International/multilingualweb/lt/track/issues/58" shape="rect">issue-58</a>.</p></li><li><p>Clarified text in <a class="section-ref" href="#basic-concepts-addingpointing" shape="rect">Section 2.3: Adding Information or Pointing to Existing Information</a> and 
-            <a class="section-ref" href="#selection-global" shape="rect">Section 5.2.1: Global, Rule-based Selection</a>, see <a href="https://www.w3.org/International/multilingualweb/lt/track/issues/59" shape="rect">issue-59</a>.</p></li><li><p>Clarified the definition of <code>uncategorized</code> in <a class="section-ref" href="#lqissue-typevalues" shape="rect">Appendix C: Values for the Localization Quality Issue Type</a>, and (see <a href="http://lists.w3.org/Archives/Public/public-multilingualweb-lt-comments/2012Dec/0031.html" shape="rect">related mail</a>) used "<span class="quote">value</span>" consistently instead of "<span class="quote">category</span>" to refer to the value types. See <a href="https://www.w3.org/International/multilingualweb/lt/track/issues/60" shape="rect">issue-60</a>.</p></li><li><p>Clarified definition of <a href="#lqissue-global" shape="rect">Localization Quality Issue</a>, see <a href="https://www.w3.org/International/multilingualweb/lt/track/issues/62" shape="rect">issu-62</a>.</p></li></ol><p id="changelog-since-20121023">The following log records major changes that have been
+            <a class="section-ref" href="#selection-global" shape="rect">Section 5.2.1: Global, Rule-based Selection</a>, see <a href="https://www.w3.org/International/multilingualweb/lt/track/issues/59" shape="rect">issue-59</a>.</p></li><li><p>Clarified the definition of <code>uncategorized</code> in <a class="section-ref" href="#lqissue-typevalues" shape="rect">Appendix C: Values for the Localization Quality Issue Type</a>, and (see <a href="http://lists.w3.org/Archives/Public/public-multilingualweb-lt-comments/2012Dec/0031.html" shape="rect">related mail</a>) used "<span class="quote">value</span>" consistently instead of "<span class="quote">category</span>" to refer to the value types. See <a href="https://www.w3.org/International/multilingualweb/lt/track/issues/60" shape="rect">issue-60</a>.</p></li><li><p>Clarified definition of <a href="#lqissue-global" shape="rect">Localization Quality Issue</a>, see <a href="https://www.w3.org/International/multilingualweb/lt/track/issues/62" shape="rect">issu-62</a>.</p></li><li><p>Changed the allowed location of the <code class="its-attr-markup">version</code> attribute in <a class="section-ref" href="#its-version-attribute" shape="rect">Section 5.1: Indicating the Version of ITS</a>, see <a href="https://www.w3.org/International/multilingualweb/lt/track/issues/66" shape="rect">issue-66</a>.</p></li></ol><p id="changelog-since-20121023">The following log records major changes that have been
           made to this document since the <a href="http://www.w3.org/TR/2012/WD-its20-20121023/" shape="rect">ITS 2.0 Working Draft 23 October 2012</a>.</p><ol class="depth1"><li><p>Clarified usage of <a href="#domain" shape="rect">Domain</a> data category in HTML in
             response to <a href="https://www.w3.org/International/multilingualweb/lt/track/issues/56" shape="rect">issue-56</a>.</p></li><li><p>Added the <a href="#lqissueDefs" shape="rect">enabled information</a> in <a class="section-ref" href="#lqissue" shape="rect">Section 8.17: Localization Quality Issue</a>.</p></li><li><p>Updated the <a href="#Disambiguation" shape="rect">Disambiguation</a> data category.</p></li><li><p>Fine tuned the algorithm to compute the result values of the <a href="#domain" shape="rect">Domain</a> data category.</p></li><li><p>Fix on <a href="#EX-locQualityIssue-html5-local-2" shape="rect">Example 81</a>:
               <code>id</code> attribute of <code>script</code> element now the same as of containing
--- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd	2012/12/26 20:42:36	1.305
+++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/its20.odd	2013/01/10 17:15:39	1.306
@@ -1161,12 +1161,10 @@
           <p>The version of the ITS schema defined in this specification is <val>2.0</val>. The
             version is indicated by the ITS <att>version</att> attribute. This attribute is
             mandatory for the <gi>rules</gi> element, where it <ref target="#rfc-keywords"
-              >MUST</ref> be in no namespace. If there is no <gi>rules</gi> element in an XML
-            document, a prefixed ITS <att>version</att> attribute (e.g. <code>its:version</code>)
-              <ref target="#rfc-keywords">MUST</ref> be provided at the root element of the
-            document. If there is both a <att>version</att> attribute at the root element and a
-              <gi>rules</gi> element in a document, they <ref target="#rfc-keywords">MUST NOT</ref>
-            specify different versions.</p>
+              >MUST</ref> be in no namespace.</p>
+          <p>If there is no <gi>rules</gi> element in an XML document, a prefixed ITS <att>version</att> attribute (e.g. <code>its:version</code>)
+              <ref target="#rfc-keywords">MUST</ref> be provided on the element where the ITS markup is used, or on one of its ancestors.
+            There <ref target="#rfc-keywords">MUST NOT</ref> be two different versions of ITS in the same document.</p>
           <p>External, linked rules can have different versions than internal rules.</p>
         </div>
         <div xml:id="datacategory-locations">
@@ -2466,7 +2464,7 @@
                 </list>
               </item>
               <item><p>An optional <att type="class">locNoteType</att> attribute with the
-                    value<val>description</val> or <val>alert</val>. If the <att type="class"
+                    value <val>description</val> or <val>alert</val>. If the <att type="class"
                     >locNoteType</att> attribute is not present, the type of localization note will
                   be assumed to be <val>description</val>.</p>
               </item>
@@ -5540,7 +5538,8 @@
             <ptr target="#selection-global" type="specref"/>, see <ref target="https://www.w3.org/International/multilingualweb/lt/track/issues/59">issue-59</ref>.</item>
           <item>Clarified the definition of <code>uncategorized</code> in <ptr type="specref" target="#lqissue-typevalues"/>, and (see <ref target="http://lists.w3.org/Archives/Public/public-multilingualweb-lt-comments/2012Dec/0031.html">related mail</ref>) used <quote>value</quote> consistently instead of <quote>category</quote> to refer to the value types. See <ref target="https://www.w3.org/International/multilingualweb/lt/track/issues/60">issue-60</ref>.</item>
           <item>Clarified definition of <ref target="#lqissue-global">Localization Quality Issue</ref>, see <ref target="https://www.w3.org/International/multilingualweb/lt/track/issues/62">issue-62</ref>.</item>
-          </list>
+          <item>Changed the allowed location of the <att>version</att> attribute in <ptr type="specref" target="#its-version-attribute"/>, see <ref target="https://www.w3.org/International/multilingualweb/lt/track/issues/66">issue-66</ref>.</item>
+        </list>
         <p xml:id="changelog-since-20121023">The following log records major changes that have been
           made to this document since the <ref target="http://www.w3.org/TR/2012/WD-its20-20121023/"
             >ITS 2.0 Working Draft 23 October 2012</ref>.</p>

Received on Thursday, 10 January 2013 17:15:43 UTC