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

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

Modified Files:
	its20-types.rng its20.rng its20.sch 
Log Message:
example reformatting, no text change

--- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-types.rng	2013/04/03 16:14:24	1.15
+++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-types.rng	2013/05/26 10:33:50	1.16
@@ -1,5 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+<grammar 
+  xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" 
+  xmlns="http://relaxng.org/ns/structure/1.0" 
+  datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
   <define name="its-version.type">
     <a:documentation>Version of ITS</a:documentation>
     <data type="string">
@@ -91,9 +94,11 @@
       <value>yes</value>
       <a:documentation>The element and its content are part of the flow of its parent element</a:documentation>
       <value>no</value>
-      <a:documentation>The element splits the text flow of its parent element and its content is an independent text flow</a:documentation>
+      <a:documentation>The element splits the text flow of its parent element and its content 
+        is an independent text flow</a:documentation>
       <value>nested</value>
-      <a:documentation>The element is part of the flow of its parent element, its content is an independent flow</a:documentation>
+      <a:documentation>The element is part of the flow of its parent element, 
+        its content is an independent flow</a:documentation>
     </choice>
   </define>
   <define name="its-domainMapping.type">
--- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20.rng	2013/05/16 09:01:09	1.22
+++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20.rng	2013/05/26 10:33:54	1.23
@@ -1,5 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<grammar ns="http://www.w3.org/2005/11/its" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:its="http://www.w3.org/2005/11/its" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+<grammar ns="http://www.w3.org/2005/11/its" 
+  xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" 
+  xmlns:xlink="http://www.w3.org/1999/xlink"
+  xmlns:its="http://www.w3.org/2005/11/its" 
+  xmlns="http://relaxng.org/ns/structure/1.0" 
+  datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
   <include href="its20-types.rng"/>
   <define name="its-attribute.translate">
     <attribute name="its:translate">
--- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20.sch	2013/05/13 14:58:43	1.5
+++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20.sch	2013/05/26 10:33:54	1.6
@@ -5,60 +5,93 @@
   <pattern>
     <title>Indicating the Version of ITS</title>
     <rule context="*[@its:*]">
-      <assert test="ancestor-or-self::*/@its:version | //its:rules/@version">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 on the element where the ITS markup is used, or on one of its ancestors.</assert>
+      <assert test="ancestor-or-self::*/@its:version | //its:rules/@version">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 on the element where the ITS markup is used, or on one of its ancestors.</assert>
     </rule>
     <rule context="its:provenanceRecords | its:locQualityIssues">
-      <assert test="self::*/@version | ancestor::*/@its:version | //its:rules/@version">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 on the element where the ITS markup is used, or on one of its ancestors. For standoff markup unprefixed version attribute is used.</assert>
+      <assert test="self::*/@version | ancestor::*/@its:version | //its:rules/@version">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
+        on the element where the ITS markup is used, or on one of its ancestors.
+        For standoff markup unprefixed version attribute is used.</assert>
     </rule>
     <rule context="*[@its:version]">
-      <assert test="if (@its:version and //its:rules/@version) then //its:rules/@version = @its:version else true()">There MUST NOT be two different versions of ITS in the same document.</assert>
-      <assert test="every $v in //*/@its:version satisfies $v = @its:version">There MUST NOT be two different versions of ITS in the same document.</assert>
+      <assert test="if (@its:version and //its:rules/@version) then //its:rules/@version = @its:version else true()">
+        There MUST NOT be two different versions of ITS in the same document.</assert>
+      <assert test="every $v in //*/@its:version satisfies $v = @its:version">
+        There MUST NOT be two different versions of ITS in the same document.</assert>
     </rule>
     <rule context="its:provenanceRecords | its:locQualityIssues">
-      <assert test="if (@version and //its:rules/@version) then //its:rules/@version = @version else true()">There MUST NOT be two different versions of ITS in the same document.</assert>
-      <assert test="every $v in //*/@its:version satisfies $v = @version">There MUST NOT be two different versions of ITS in the same document.</assert>
+      <assert test="if (@version and //its:rules/@version) then //its:rules/@version = @version else true()">
+        There MUST NOT be two different versions of ITS in the same document.</assert>
+      <assert test="every $v in //*/@its:version satisfies $v = @version">
+        There MUST NOT be two different versions of ITS in the same document.</assert>
     </rule>
   </pattern>
   <pattern>
     <title>Global, Rule-based Selection</title>
     <rule context="its:rules">
-      <assert test="every $rules in //its:rules satisfies $rules/@version = current()/@version">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.</assert>
+      <assert test="every $rules in //its:rules satisfies $rules/@version = current()/@version">
+        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.</assert>
     </rule>
   </pattern>
   <pattern>
     <title>Link to External Rules</title>
     <rule context="its:rules[@xlink:href]">
-      <assert test="count(doc(resolve-uri(@xlink:href, base-uri()))//its:rules) le 1">The referenced document must be a valid XML document containing at most one rules element.</assert>
+      <assert test="count(doc(resolve-uri(@xlink:href, base-uri()))//its:rules) le 1">
+        The referenced document must be a valid XML document containing at most one rules element.</assert>
     </rule>
   </pattern>
   <pattern>
     <title>ITS Tools Annotation</title>
     <rule context="*[@its:annotatorsRef]">
-      <assert test="every $ref in tokenize(@its:annotatorsRef, '\s+') satisfies matches($ref, '(translate|localization-note|terminology|directionality|language-information|elements-within-text|domain|text-analysis|locale-filter|provenance|external-resource|target-pointer|id-value|preserve-space|localization-quality-issue|localization-quality-rating|mt-confidence|allowed-characters|storage-size)\|.+')">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).</assert>
+      <assert test="every $ref in tokenize(@its:annotatorsRef, '\s+') satisfies 
+        matches($ref, '(translate|localization-note|terminology|directionality|language-information|
+        elements-within-text|domain|text-analysis|locale-filter|provenance|external-resource|
+        target-pointer|id-value|preserve-space|localization-quality-issue|localization-quality-rating|
+        mt-confidence|allowed-characters|storage-size)\|.+')">
+        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).</assert>
     </rule>
   </pattern>
   <pattern>
     <title>Source of confidence</title>
     <rule context="*[@its:termConfidence]">
-      <assert test="ancestor-or-self::*[@its:annotatorsRef][matches(@its:annotatorsRef, '.*\s*terminology\|.+')]">Any node selected by the terminology data category with the termConfidence attribute specified MUST be contained in an element with the annotatorsRef attribute specified for the Terminology data category.</assert>
+      <assert test="ancestor-or-self::*[@its:annotatorsRef][matches(@its:annotatorsRef, '.*\s*terminology\|.+')]">
+        Any node selected by the terminology data category with the termConfidence attribute specified MUST be
+        contained in an element with the annotatorsRef attribute specified for the Terminology data category.</assert>
     </rule>
     <rule context="*[@its:taConfidence]">
-      <assert test="ancestor-or-self::*[@its:annotatorsRef][matches(@its:annotatorsRef, '.*\s*text-analysis\|.+')]">Any node selected by the Text Analysis data category with the taConfidence attribute specified MUST be contained in an element with the annotatorsRef attribute specified for the Text Analysis data category.</assert>
+      <assert test="ancestor-or-self::*[@its:annotatorsRef][matches(@its:annotatorsRef, '.*\s*text-analysis\|.+')]">
+        Any node selected by the Text Analysis data category with the taConfidence attribute specified MUST be
+        contained in an element with the annotatorsRef attribute specified for the Text Analysis data category.</assert>
     </rule>
     <rule context="*[@its:mtConfidence]">
-      <assert test="ancestor-or-self::*[@its:annotatorsRef][matches(@its:annotatorsRef, '.*\s*mt-confidence\|.+')]">Any node selected by the MT Confidence data category MUST be contained in an element with the annotatorsRef attribute specified for the MT Confidence data category.</assert>
+      <assert test="ancestor-or-self::*[@its:annotatorsRef][matches(@its:annotatorsRef, '.*\s*mt-confidence\|.+')]">
+        Any node selected by the MT Confidence data category MUST be
+        contained in an element with the annotatorsRef attribute specified for the MT Confidence data category.</assert>
     </rule>
   </pattern>
   <pattern>
     <title>Text analysis</title>
     <rule context="its:textAnalysisRule">
-      <assert test="@taClassRefPointer | @taSourcePointer | @taIdentPointer | @taIdentRefPointer">Text analysis rule must specify at least target type class or target identity.</assert>
+      <assert test="@taClassRefPointer | @taSourcePointer | @taIdentPointer | @taIdentRefPointer">
+        Text analysis rule must specify at least target type class or target identity.</assert>
     </rule>
   </pattern>
   <pattern>
     <title>Provenance standoff markup</title>
     <rule context="its:provenanceRecord">
-      <assert test="@person | @personRef | @org | @orgRef | @tool | @toolRef | @revPerson | @revPersonRef | @revOrg | @revOrgRef | @revTool | @revToolRef | @provRef">At least one attribute must be specified on the provenanceRecord element.</assert>
+      <assert test="@person | @personRef | @org | @orgRef | @tool | @toolRef | @revPerson | @revPersonRef | 
+        @revOrg | @revOrgRef | @revTool | @revToolRef | @provRef">
+        At least one attribute must be specified on the provenanceRecord element.</assert>
     </rule>
   </pattern>
 </schema>
\ No newline at end of file

Received on Sunday, 26 May 2013 10:34:02 UTC