its20 CVS commit

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

Modified Files:
	its20-attributes.rnc its20-elements.rnc its20.rnc 
Added Files:
	its20-attributes.rng its20-elements.rng its20-types.rng 
	its20.rng 
Log Message:
Fixed typos, added RNG versions of schemas

--- NEW FILE: its20-types.rng ---
<?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">
  <define name="its-version.type">
    <a:documentation>Version of ITS</a:documentation>
    <data type="string">
      <param name="pattern">[0-9]+\.[0-9]+</param>
    </data>
  </define>
  <define name="its-queryLanguage.type">
    <a:documentation>The query language to be used for processing the rules.</a:documentation>
    <choice>
      <value>xpath</value>
      <value>css</value>
      <text/>
    </choice>
  </define>
  <define name="its-absolute-selector.type">
    <data type="string" datatypeLibrary=""/>
  </define>
  <define name="its-relative-selector.type">
    <data type="string" datatypeLibrary=""/>
  </define>
  <define name="its-translate.type">
    <a:documentation>The Translate data category information to be attached to the current node.</a:documentation>
    <choice>
      <value>yes</value>
      <a:documentation>The nodes need to be translated.</a:documentation>
      <value>no</value>
      <a:documentation>The nodes must not be translated.</a:documentation>
    </choice>
  </define>
  <define name="its-locNote.type">
    <data type="string" datatypeLibrary=""/>
  </define>
  <define name="its-locNoteType.type">
    <a:documentation>The type of localization note.</a:documentation>
    <choice>
      <value>alert</value>
      <a:documentation>Localization note is an alert.</a:documentation>
      <value>description</value>
      <a:documentation>Localization note is a description.</a:documentation>
    </choice>
  </define>
  <define name="its-locNoteRef.type">
    <data type="anyURI"/>
  </define>
  <define name="its-termInfoRef.type">
    <data type="anyURI"/>
  </define>
  <define name="its-term.type">
    <a:documentation>Indicates a term locally.</a:documentation>
    <choice>
      <value>yes</value>
      <a:documentation>The value 'yes' means that this is a term.</a:documentation>
      <value>no</value>
      <a:documentation>The value 'no' means that this is not a term.</a:documentation>
    </choice>
  </define>
  <define name="its-dir.type">
    <a:documentation>The text direction for the context.</a:documentation>
    <choice>
      <value>ltr</value>
      <a:documentation>Left-to-right text.</a:documentation>
      <value>rtl</value>
      <a:documentation>Right-to-left text.</a:documentation>
      <value>lro</value>
      <a:documentation>Left-to-right override.</a:documentation>
      <value>rlo</value>
      <a:documentation>Right-to-left override.</a:documentation>
    </choice>
  </define>
  <define name="its-withinText.type">
    <a:documentation>States whether current context is regarded as "within text".</a:documentation>
    <choice>
      <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>
      <value>nested</value>
      <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">
    <a:documentation>A comma separated list of mappings between values in the content
and workflow specific values. The values may contain spaces; in
that case they MUST be delimited by quotation marks.</a:documentation>
    <data type="string" datatypeLibrary=""/>
  </define>
  <define name="its-entityTypeSourceRef.type">
    <data type="anyURI"/>
  </define>
  <define name="its-entityTypeSourcePointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-entityTypeSourceRefPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-entityTypeRef.type">
    <data type="anyURI"/>
  </define>
  <define name="its-entityTypePointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-entityTypeRefPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-disambigType.type">
    <choice>
      <value>lexicalConcept</value>
      <value>ontologyConcept</value>
      <value>entity</value>
    </choice>
  </define>
  <define name="its-disambigSourceRef.type">
    <data type="anyURI"/>
  </define>
  <define name="its-disambigSourcePointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-disambigSourceRefPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-disambigIdentRef.type">
    <data type="anyURI"/>
  </define>
  <define name="its-disambigIdentPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-disambigIdentRefPointer">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-localeFilterList.type">
    <data type="string" datatypeLibrary=""/>
  </define>
  <define name="its-externalResourceRefPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-targetPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-idValue.type">
    <data type="string" datatypeLibrary=""/>
  </define>
  <define name="its-space.type">
    <choice>
      <value>default</value>
      <value>preserve</value>
    </choice>
  </define>
  <define name="its-locQualityIssuesRef.type">
    <data type="anyURI"/>
  </define>
  <define name="its-locQualityIssuesRefPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-locQualityIssueType.type">
    <choice>
      <value>terminology</value>
      <value>mistranslation</value>
      <value>omission</value>
      <value>untranslated</value>
      <value>addition</value>
      <value>duplication</value>
      <value>inconsistency</value>
      <value>grammar</value>
      <value>legal</value>
      <value>register</value>
      <value>locale-specific-content</value>
      <value>locale-violation</value>
      <value>style</value>
      <value>characters</value>
      <value>misspelling</value>
      <value>typographical</value>
      <value>formatting</value>
      <value>inconsistent-entities</value>
      <value>numbers</value>
      <value>markup</value>
      <value>pattern-problem</value>
      <value>whitespace</value>
      <value>internationalization</value>
      <value>length</value>
      <value>uncategorized</value>
      <value>other</value>
    </choice>
  </define>
  <define name="its-locQualityIssueTypePointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-locQualityIssueComment.type">
    <data type="string" datatypeLibrary=""/>
  </define>
  <define name="its-locQualityIssueCommentPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-locQualityIssueSeverity.type">
    <data type="decimal">
      <param name="minInclusive">0</param>
      <param name="maxInclusive">100</param>
    </data>
  </define>
  <define name="its-locQualityIssueSeverityPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-locQualityIssueProfileRef.type">
    <data type="anyURI"/>
  </define>
  <define name="its-locQualityIssueProfileRefPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-locQualityPrecisScore.type">
    <data type="decimal">
      <param name="minInclusive">0</param>
      <param name="maxInclusive">100</param>
    </data>
  </define>
  <define name="its-locQualityPrecisScorePointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-locQualityPrecisVote.type">
    <data type="integer"/>
  </define>
  <define name="its-locQualityPrecisVotePointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-locQualityPrecisThreshold.type">
    <data type="integer"/>
  </define>
  <define name="its-locQualityPrecisThresholdPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-locQualityPrecisProfileRef.type">
    <data type="anyURI"/>
  </define>
  <define name="its-locQualityPrecisProfileRefPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-allowedCharacters.type">
    <data type="string" datatypeLibrary=""/>
  </define>
  <define name="its-allowedCharactersPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-storageSize.type">
    <data type="nonNegativeInteger"/>
  </define>
  <define name="its-storageSizePointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
  <define name="its-storageEncoding.type">
    <data type="string" datatypeLibrary=""/>
  </define>
  <define name="its-storageEncodingPointer.type">
    <ref name="its-relative-selector.type"/>
  </define>
</grammar>

Index: its20.rnc
===================================================================
RCS file: /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20.rnc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- its20.rnc	8 Oct 2012 14:30:47 -0000	1.1
+++ its20.rnc	8 Oct 2012 15:07:22 -0000	1.2
@@ -6,6 +6,9 @@
 its-attribute.translate = attribute its:translate { its-translate.type }
 its-attribute.translate.nons = attribute translate { its-translate.type }
 
+its-attribute.dir = attribute its:dir { its-dir.type }
+its-attribute.dir.nons = attribute dir { its-dir.type }
+
 its-attribute.locNote = attribute its:locNote { its-locNote.type }
 its-attribute.locNote.nons = attribute locNote { its-locNote.type }
 
@@ -21,8 +24,8 @@
 its-attribute.term = attribute its:term { its-term.type }
 its-attribute.term.nons = attribute term { its-term.type }
 
-its-attribute-withinText = attribute its:withinText { its-withinText.type }
-its-attribute-withinText.nons = attribute withinText { its-withinText.type }
+its-attribute.withinText = attribute its:withinText { its-withinText.type }
+its-attribute.withinText.nons = attribute withinText { its-withinText.type }
 
 its-attribute.domainMapping = attribute its:domainMapping { its-domainMapping.type }
 its-attribute.domainMapping.nons = attribute domainMapping { its-domainMapping.type }
@@ -126,7 +129,7 @@
   its-attribute.translate? &
   ((its-attribute.locNote | its-attribute.locNoteRef), its-attribute.locNoteType?)? &
   (its-attribute.term, its-attribute.termInfoRef?)? &
-  its-attribute-withinText? &
+  its-attribute.withinText? &
   its-attribute.entityTypeSourceRef? &
   its-attribute.entityTypeRef? &
   its-attribute.disambigType? &
@@ -148,7 +151,7 @@
   its-attribute.translate.nons? &
   ((its-attribute.locNote.nons | its-attribute.locNoteRef.nons), its-attribute.locNoteType.nons?)? &
   (its-attribute.term.nons, its-attribute.termInfoRef.nons?)? &
-  its-attribute-withinText.nons? &
+  its-attribute.withinText.nons? &
   its-attribute.entityTypeSourceRef.nons? &
   its-attribute.entityTypeRef.nons? &
   its-attribute.disambigType.nons? &
@@ -236,7 +239,7 @@
   its-attribute.selector,
   its-attribute.rubyPointer.nons?,
   its-attribute.rpPointer.nons?,
-  its-attribute.rtPointer?
+  its-attribute.rtPointer.nons?
 
 its-attribute.rubyPointer.nons = attribute rubyPointer { its-relative-selector.type }
 its-attribute.rpPointer.nons = attribute rpPointer { its-relative-selector.type }
@@ -247,7 +250,7 @@
   element rubyText { its-rubyText.content, its-rubyText.attributes }
   
 its-rubyText.content = text
-its-rubyText.attributes = its-local-attributes
+its-rubyText.attributes = its-local.attributes
 
 its-ruby =
   ## Ruby markup.
@@ -256,14 +259,14 @@
 its-ruby.content =
   ((text | its-span)+,
    (its-rt | (its-rp, its-rt, its-rp)))+
-its-ruby.attributes = its-local-attributes
+its-ruby.attributes = its-local.attributes
 
 its-rt =
   ## Ruby text.
   element rt { its-rt.content, its-rt.attributes }
 
 its-rt.content = (text | its-span)*
-its-rt.attributes = its-local-attributes
+its-rt.attributes = its-local.attributes
 
 its-rp =
   ## Used in the case of simple ruby markup to specify characters 
@@ -273,7 +276,7 @@
   element rp { its-rp.content, its-rp.attributes }
 
 its-rp.content = text
-its-rp.attributes = its-local-attributes
+its-rp.attributes = its-local.attributes
 
 its-langRule =
   ## Rule about the Language	Information data category.

Index: its20-elements.rnc
===================================================================
RCS file: /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-elements.rnc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- its20-elements.rnc	8 Oct 2012 14:30:47 -0000	1.1
+++ its20-elements.rnc	8 Oct 2012 15:07:22 -0000	1.2
@@ -1,3 +1,3 @@
-include "its20.rng"
+include "its20.rnc"
 
 start = its-rules | its-span | its-ruby
\ No newline at end of file

Index: its20-attributes.rnc
===================================================================
RCS file: /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-attributes.rnc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- its20-attributes.rnc	8 Oct 2012 14:30:47 -0000	1.1
+++ its20-attributes.rnc	8 Oct 2012 15:07:22 -0000	1.2
@@ -1,4 +1,4 @@
 include "its20.rnc"
 
 start =
-  element * { its-local-attributes?, its-attribute.version? }
+  element * { its-local.attributes?, its-attribute.version? }

--- NEW FILE: its20.rng ---
<?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">
  <include href="its20-types.rng"/>
  <define name="its-attribute.translate">
    <attribute name="its:translate">
      <ref name="its-translate.type"/>
    </attribute>
  </define>
  <define name="its-attribute.translate.nons">
    <attribute name="translate">
      <ref name="its-translate.type"/>
    </attribute>
  </define>
  <define name="its-attribute.dir">
    <attribute name="its:dir">
      <ref name="its-dir.type"/>
    </attribute>
  </define>
  <define name="its-attribute.dir.nons">
    <attribute name="dir">
      <ref name="its-dir.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locNote">
    <attribute name="its:locNote">
      <ref name="its-locNote.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locNote.nons">
    <attribute name="locNote">
      <ref name="its-locNote.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locNoteType">
    <attribute name="its:locNoteType">
      <ref name="its-locNoteType.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locNoteType.nons">
    <attribute name="locNoteType">
      <ref name="its-locNoteType.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locNoteRef">
    <attribute name="its:locNoteRef">
      <ref name="its-locNoteRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locNoteRef.nons">
    <attribute name="locNoteRef">
      <ref name="its-locNoteRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.termInfoRef">
    <attribute name="its:termInfoRef">
      <ref name="its-termInfoRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.termInfoRef.nons">
    <attribute name="termInfoRef">
      <ref name="its-termInfoRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.term">
    <attribute name="its:term">
      <ref name="its-term.type"/>
    </attribute>
  </define>
  <define name="its-attribute.term.nons">
    <attribute name="term">
      <ref name="its-term.type"/>
    </attribute>
  </define>
  <define name="its-attribute.withinText">
    <attribute name="its:withinText">
      <ref name="its-withinText.type"/>
    </attribute>
  </define>
  <define name="its-attribute.withinText.nons">
    <attribute name="withinText">
      <ref name="its-withinText.type"/>
    </attribute>
  </define>
  <define name="its-attribute.domainMapping">
    <attribute name="its:domainMapping">
      <ref name="its-domainMapping.type"/>
    </attribute>
  </define>
  <define name="its-attribute.domainMapping.nons">
    <attribute name="domainMapping">
      <ref name="its-domainMapping.type"/>
    </attribute>
  </define>
  <define name="its-attribute.entityTypeSourceRef">
    <attribute name="its:entityTypeSourceRef">
      <ref name="its-entityTypeSourceRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.entityTypeSourceRef.nons">
    <attribute name="its:entityTypeSourceRef">
      <ref name="its-entityTypeSourceRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.entityTypeRef">
    <attribute name="its:entityTypeRef">
      <ref name="its-entityTypeRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.entityTypeRef.nons">
    <attribute name="entityTypeRef">
      <ref name="its-entityTypeRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.disambigType">
    <attribute name="its:disambigType">
      <ref name="its-disambigType.type"/>
    </attribute>
  </define>
  <define name="its-attribute.disambigType.nons">
    <attribute name="disambigType">
      <ref name="its-disambigType.type"/>
    </attribute>
  </define>
  <define name="its-attribute.disambigSourceRef">
    <attribute name="its:disambigSourceRef">
      <ref name="its-disambigSourceRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.disambigSourceRef.nons">
    <attribute name="disambigSourceRef">
      <ref name="its-disambigSourceRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.disambigIdentRef">
    <attribute name="its:disambigIdentRef">
      <ref name="its-disambigIdentRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.disambigIdentRef.nons">
    <attribute name="disambigIdentRef">
      <ref name="its-disambigIdentRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.localeFilterList">
    <attribute name="its:localeFilterList">
      <ref name="its-localeFilterList.type"/>
    </attribute>
  </define>
  <define name="its-attribute.localeFilterList.nons">
    <attribute name="its:localeFilterList">
      <ref name="its-localeFilterList.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityIssuesRef">
    <attribute name="its:locQualityIssuesRef">
      <ref name="its-locQualityIssuesRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityIssuesRef.nons">
    <attribute name="locQualityIssuesRef">
      <ref name="its-locQualityIssuesRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityIssueType">
    <attribute name="its:locQualityIssueType">
      <ref name="its-locQualityIssueType.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityIssueType.nons">
    <attribute name="locQualityIssueType">
      <ref name="its-locQualityIssueType.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityIssueComment">
    <attribute name="its:locQualityIssueComment">
      <ref name="its-locQualityIssueComment.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityIssueComment.nons">
    <attribute name="locQualityIssueComment">
      <ref name="its-locQualityIssueComment.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityIssueSeverity">
    <attribute name="its:locQualityIssueSeverity">
      <ref name="its-locQualityIssueSeverity.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityIssueSeverity.nons">
    <attribute name="locQualityIssueSeverity">
      <ref name="its-locQualityIssueSeverity.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityIssueProfileRef">
    <attribute name="its:locQualityIssueProfileRef">
      <ref name="its-locQualityIssueProfileRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityIssueProfileRef.nons">
    <attribute name="locQualityIssueProfileRef">
      <ref name="its-locQualityIssueProfileRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityPrecisScore">
    <attribute name="its:locQualityPrecisScore">
      <ref name="its-locQualityPrecisScore.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityPrecisScore.nons">
    <attribute name="locQualityPrecisScore">
      <ref name="its-locQualityPrecisScore.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityPrecisVote">
    <attribute name="its:locQualityPrecisVote">
      <ref name="its-locQualityPrecisVote.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityPrecisVote.nons">
    <attribute name="locQualityPrecisVote">
      <ref name="its-locQualityPrecisVote.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityPrecisThreshold">
    <attribute name="its:locQualityPrecisThreshold">
      <ref name="its-locQualityPrecisThreshold.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityPrecisThreshold.nons">
    <attribute name="locQualityPrecisThreshold">
      <ref name="its-locQualityPrecisThreshold.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityPrecisProfileRef">
    <attribute name="its:locQualityPrecisProfileRef">
      <ref name="its-locQualityPrecisProfileRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locQualityPrecisProfileRef.nons">
    <attribute name="locQualityPrecisProfileRef">
      <ref name="its-locQualityPrecisProfileRef.type"/>
    </attribute>
  </define>
  <define name="its-attribute.allowedCharacters">
    <attribute name="its:allowedCharacters">
      <ref name="its-allowedCharacters.type"/>
    </attribute>
  </define>
  <define name="its-attribute.allowedCharacters.nons">
    <attribute name="allowedCharacters">
      <ref name="its-allowedCharacters.type"/>
    </attribute>
  </define>
  <define name="its-attribute.storageSize">
    <attribute name="its:storageSize">
      <ref name="its-storageSize.type"/>
    </attribute>
  </define>
  <define name="its-attribute.storageSize.nons">
    <attribute name="storageSize">
      <ref name="its-storageSize.type"/>
    </attribute>
  </define>
  <define name="its-attribute.storageEncoding">
    <attribute name="its:storageEncoding">
      <ref name="its-storageEncoding.type"/>
    </attribute>
  </define>
  <define name="its-attribute.storageEncoding.nons">
    <attribute name="storageEncoding">
      <ref name="its-storageEncoding.type"/>
    </attribute>
  </define>
  <define name="its-attribute.version">
    <attribute name="its:version">
      <ref name="its-version.type"/>
    </attribute>
  </define>
  <define name="its-attribute.version.nons">
    <attribute name="version">
      <ref name="its-version.type"/>
    </attribute>
  </define>
  <define name="its-attribute.queryLanguage">
    <attribute name="its:queryLanguage">
      <ref name="its-queryLanguage.type"/>
    </attribute>
  </define>
  <define name="its-attribute.queryLanguage.nons">
    <attribute name="queryLanguage">
      <ref name="its-queryLanguage.type"/>
    </attribute>
  </define>
  <define name="its-attribute.href.xlink">
    <attribute name="xlink:href">
      <data type="anyURI"/>
    </attribute>
  </define>
  <define name="its-attribute.selector">
    <attribute name="selector">
      <ref name="its-absolute-selector.type"/>
    </attribute>
  </define>
  <define name="its-rules">
    <element name="rules">
      <a:documentation>Container for global rules.</a:documentation>
      <ref name="its-rules.content"/>
      <ref name="its-rules.attributes"/>
    </element>
  </define>
  <define name="its-rules.content">
    <zeroOrMore>
      <ref name="its-param"/>
    </zeroOrMore>
    <zeroOrMore>
      <choice>
        <ref name="its-translateRule"/>
        <ref name="its-locNoteRule"/>
        <ref name="its-termRule"/>
        <ref name="its-dirRule"/>
        <ref name="its-rubyRule"/>
        <ref name="its-langRule"/>
        <ref name="its-withinTextRule"/>
        <ref name="its-domainRule"/>
        <ref name="its-localeFilterRule"/>
        <ref name="its-externalResourceRefRule"/>
        <ref name="its-idValueRule"/>
      </choice>
    </zeroOrMore>
  </define>
  <define name="its-rules.attributes">
    <ref name="its-attribute.version.nons"/>
    <optional>
      <ref name="its-attribute.href.xlink"/>
    </optional>
    <optional>
      <ref name="its-attribute.queryLanguage.nons"/>
    </optional>
  </define>
  <define name="its-param">
    <element name="param">
      <ref name="its-param.content"/>
      <ref name="its-param.attributes"/>
    </element>
  </define>
  <define name="its-param.content">
    <text/>
  </define>
  <define name="its-param.attributes">
    <attribute name="name">
      <data type="string"/>
    </attribute>
  </define>
  <define name="its-local.attributes">
    <interleave>
      <optional>
        <ref name="its-attribute.translate"/>
      </optional>
      <optional>
        <choice>
          <ref name="its-attribute.locNote"/>
          <ref name="its-attribute.locNoteRef"/>
        </choice>
        <optional>
          <ref name="its-attribute.locNoteType"/>
        </optional>
      </optional>
      <optional>
        <ref name="its-attribute.term"/>
        <optional>
          <ref name="its-attribute.termInfoRef"/>
        </optional>
      </optional>
      <optional>
        <ref name="its-attribute.withinText"/>
      </optional>
      <optional>
        <ref name="its-attribute.entityTypeSourceRef"/>
      </optional>
      <optional>
        <ref name="its-attribute.entityTypeRef"/>
      </optional>
      <optional>
        <ref name="its-attribute.disambigType"/>
      </optional>
      <optional>
        <ref name="its-attribute.disambigSourceRef"/>
      </optional>
      <optional>
        <ref name="its-attribute.disambigIdentRef"/>
      </optional>
      <optional>
        <ref name="its-attribute.localeFilterList"/>
      </optional>
      <optional>
        <choice>
          <ref name="its-attribute.locQualityIssuesRef"/>
          <interleave>
            <choice>
              <ref name="its-attribute.locQualityIssueType"/>
              <ref name="its-attribute.locQualityIssueComment"/>
              <interleave>
                <ref name="its-attribute.locQualityIssueType"/>
                <ref name="its-attribute.locQualityIssueComment"/>
              </interleave>
            </choice>
            <optional>
              <ref name="its-attribute.locQualityIssueSeverity"/>
            </optional>
            <optional>
              <ref name="its-attribute.locQualityIssueProfileRef"/>
            </optional>
          </interleave>
        </choice>
      </optional>
      <optional>
        <choice>
          <ref name="its-attribute.locQualityPrecisScore"/>
          <ref name="its-attribute.locQualityPrecisVote"/>
        </choice>
        <optional>
          <ref name="its-attribute.locQualityPrecisThreshold"/>
        </optional>
        <optional>
          <ref name="its-attribute.locQualityPrecisProfileRef"/>
        </optional>
      </optional>
      <optional>
        <ref name="its-attribute.allowedCharacters"/>
      </optional>
      <optional>
        <ref name="its-attribute.storageSize"/>
        <optional>
          <ref name="its-attribute.storageEncoding"/>
        </optional>
      </optional>
    </interleave>
  </define>
  <define name="its-local.nons.attributes">
    <interleave>
      <optional>
        <ref name="its-attribute.translate.nons"/>
      </optional>
      <optional>
        <choice>
          <ref name="its-attribute.locNote.nons"/>
          <ref name="its-attribute.locNoteRef.nons"/>
        </choice>
        <optional>
          <ref name="its-attribute.locNoteType.nons"/>
        </optional>
      </optional>
      <optional>
        <ref name="its-attribute.term.nons"/>
        <optional>
          <ref name="its-attribute.termInfoRef.nons"/>
        </optional>
      </optional>
      <optional>
        <ref name="its-attribute.withinText.nons"/>
      </optional>
      <optional>
        <ref name="its-attribute.entityTypeSourceRef.nons"/>
      </optional>
      <optional>
        <ref name="its-attribute.entityTypeRef.nons"/>
      </optional>
      <optional>
        <ref name="its-attribute.disambigType.nons"/>
      </optional>
      <optional>
        <ref name="its-attribute.disambigSourceRef.nons"/>
      </optional>
      <optional>
        <ref name="its-attribute.disambigIdentRef.nons"/>
      </optional>
      <optional>
        <ref name="its-attribute.localeFilterList.nons"/>
      </optional>
      <optional>
        <choice>
          <ref name="its-attribute.locQualityIssuesRef.nons"/>
          <interleave>
            <choice>
              <ref name="its-attribute.locQualityIssueType.nons"/>
              <ref name="its-attribute.locQualityIssueComment.nons"/>
              <interleave>
                <ref name="its-attribute.locQualityIssueType.nons"/>
                <ref name="its-attribute.locQualityIssueComment.nons"/>
              </interleave>
            </choice>
            <optional>
              <ref name="its-attribute.locQualityIssueSeverity.nons"/>
            </optional>
            <optional>
              <ref name="its-attribute.locQualityIssueProfileRef.nons"/>
            </optional>
          </interleave>
        </choice>
      </optional>
      <optional>
        <choice>
          <ref name="its-attribute.locQualityPrecisScore.nons"/>
          <ref name="its-attribute.locQualityPrecisVote.nons"/>
        </choice>
        <optional>
          <ref name="its-attribute.locQualityPrecisThreshold.nons"/>
        </optional>
        <optional>
          <ref name="its-attribute.locQualityPrecisProfileRef.nons"/>
        </optional>
      </optional>
      <optional>
        <ref name="its-attribute.allowedCharacters.nons"/>
      </optional>
      <optional>
        <ref name="its-attribute.storageSize.nons"/>
        <optional>
          <ref name="its-attribute.storageEncoding.nons"/>
        </optional>
      </optional>
    </interleave>
  </define>
  <define name="its-span">
    <element name="span">
      <a:documentation>Inline element to contain ITS information.</a:documentation>
      <ref name="its-span.content"/>
      <ref name="its-span.attributes"/>
    </element>
  </define>
  <define name="its-span.content">
    <zeroOrMore>
      <choice>
        <text/>
        <ref name="its-ruby"/>
        <ref name="its-span"/>
      </choice>
    </zeroOrMore>
  </define>
  <define name="its-span.attributes">
    <ref name="its-local.nons.attributes"/>
  </define>
  <define name="its-translateRule">
    <element name="translateRule">
      <a:documentation>Rule about the Translate data category.</a:documentation>
      <ref name="its-translateRule.content"/>
      <ref name="its-translateRule.attributes"/>
    </element>
  </define>
  <define name="its-translateRule.content">
    <empty/>
  </define>
  <define name="its-translateRule.attributes">
    <ref name="its-attribute.selector"/>
    <ref name="its-attribute.translate.nons"/>
  </define>
  <define name="its-locNoteRule">
    <element name="locNoteRule">
      <a:documentation>Rule about the Localization Note data category.</a:documentation>
      <ref name="its-attribute.selector"/>
      <ref name="its-attribute.locNoteType"/>
      <choice>
        <ref name="its-locNote"/>
        <ref name="its-attribute.locNotePointer.nons"/>
        <ref name="its-attribute.locNoteRef.nons"/>
        <ref name="its-attribute.locNoteRefPointer.nons"/>
      </choice>
    </element>
  </define>
  <define name="its-attribute.locNotePointer.nons">
    <attribute name="locNotePointer">
      <ref name="its-relative-selector.type"/>
    </attribute>
  </define>
  <define name="its-attribute.locNoteRefPointer.nons">
    <attribute name="locNoteRefPointer">
      <ref name="its-relative-selector.type"/>
    </attribute>
  </define>
  <define name="its-locNote">
    <element name="locNote">
      <a:documentation>Contains a localization note.</a:documentation>
      <ref name="its-locNote.content"/>
      <ref name="its-locNote.attributes"/>
    </element>
  </define>
  <define name="its-locNote.content">
    <zeroOrMore>
      <choice>
        <text/>
        <ref name="its-ruby"/>
        <ref name="its-span"/>
      </choice>
    </zeroOrMore>
  </define>
  <define name="its-locNote.attributes">
    <ref name="its-local.attributes"/>
  </define>
  <define name="its-termRule">
    <element name="termRule">
      <a:documentation>Rule about the Terminology data category.</a:documentation>
      <ref name="its-termRule.content"/>
      <ref name="its-termRule.attributes"/>
    </element>
  </define>
  <define name="its-termRule.content">
    <empty/>
  </define>
  <define name="its-termRule.attributes">
    <ref name="its-attribute.selector"/>
    <ref name="its-attribute.term.nons"/>
    <choice>
      <ref name="its-attribute.termInfoPointer.nons"/>
      <ref name="its-attribute.termInfoRef.nons"/>
      <ref name="its-attribute.termInfoRefPointer.nons"/>
    </choice>
  </define>
  <define name="its-attribute.termInfoPointer.nons">
    <attribute name="termInfoPointer">
      <ref name="its-relative-selector.type"/>
    </attribute>
  </define>
  <define name="its-attribute.termInfoRefPointer.nons">
    <attribute name="termInfoRefPointer">
      <ref name="its-relative-selector.type"/>
    </attribute>
  </define>
  <define name="its-dirRule">
    <element name="dirRule">
      <a:documentation>Rule about the Directionality data category.</a:documentation>
      <ref name="its-dirRule.content"/>
      <ref name="its-dirRule.attributes"/>
    </element>
  </define>
  <define name="its-dirRule.content">
    <empty/>
  </define>
  <define name="its-dirRule.attributes">
    <ref name="its-attribute.selector"/>
    <ref name="its-attribute.dir.nons"/>
  </define>
  <define name="its-rubyRule">
    <element name="rubyRule">
      <a:documentation>Rule about the Ruby data category.</a:documentation>
      <ref name="its-rubyRule.content"/>
      <ref name="its-rubyRule.attributes"/>
    </element>
  </define>
  <define name="its-rubyRule.content">
    <optional>
      <ref name="its-rubyText"/>
    </optional>
  </define>
  <define name="its-rubyRule.attributes">
    <ref name="its-attribute.selector"/>
    <optional>
      <ref name="its-attribute.rubyPointer.nons"/>
    </optional>
    <optional>
      <ref name="its-attribute.rpPointer.nons"/>
    </optional>
    <optional>
      <ref name="its-attribute.rtPointer.nons"/>
    </optional>
  </define>
  <define name="its-attribute.rubyPointer.nons">
    <attribute name="rubyPointer">
      <ref name="its-relative-selector.type"/>
    </attribute>
  </define>
  <define name="its-attribute.rpPointer.nons">
    <attribute name="rpPointer">
      <ref name="its-relative-selector.type"/>
    </attribute>
  </define>
  <define name="its-attribute.rtPointer.nons">
    <attribute name="rtPointer">
      <ref name="its-relative-selector.type"/>
    </attribute>
  </define>
  <define name="its-rubyText">
    <element name="rubyText">
      <a:documentation>Ruby text.</a:documentation>
      <ref name="its-rubyText.content"/>
      <ref name="its-rubyText.attributes"/>
    </element>
  </define>
  <define name="its-rubyText.content">
    <text/>
  </define>
  <define name="its-rubyText.attributes">
    <ref name="its-local.attributes"/>
  </define>
  <define name="its-ruby">
    <element name="ruby">
      <a:documentation>Ruby markup.</a:documentation>
      <ref name="its-ruby.content"/>
      <ref name="its-ruby.attributes"/>
    </element>
  </define>
  <define name="its-ruby.content">
    <oneOrMore>
      <oneOrMore>
        <choice>
          <text/>
          <ref name="its-span"/>
        </choice>
      </oneOrMore>
      <choice>
        <ref name="its-rt"/>
        <group>
          <ref name="its-rp"/>
          <ref name="its-rt"/>
          <ref name="its-rp"/>
        </group>
      </choice>
    </oneOrMore>
  </define>
  <define name="its-ruby.attributes">
    <ref name="its-local.attributes"/>
  </define>
  <define name="its-rt">
    <element name="rt">
      <a:documentation>Ruby text.</a:documentation>
      <ref name="its-rt.content"/>
      <ref name="its-rt.attributes"/>
    </element>
  </define>
  <define name="its-rt.content">
    <zeroOrMore>
      <choice>
        <text/>
        <ref name="its-span"/>
      </choice>
    </zeroOrMore>
  </define>
  <define name="its-rt.attributes">
    <ref name="its-local.attributes"/>
  </define>
  <define name="its-rp">
    <element name="rp">
      <a:documentation>Used in the case of simple ruby 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.</a:documentation>
      <ref name="its-rp.content"/>
      <ref name="its-rp.attributes"/>
    </element>
  </define>
  <define name="its-rp.content">
    <text/>
  </define>
  <define name="its-rp.attributes">
    <ref name="its-local.attributes"/>
  </define>
  <define name="its-langRule">
    <element name="langRule">
      <a:documentation>Rule about the Language	Information data category.</a:documentation>
      <ref name="its-langRule.content"/>
      <ref name="its-langRule.attributes"/>
    </element>
  </define>
  <define name="its-langRule.content">
    <empty/>
  </define>
  <define name="its-langRule.attributes">
    <ref name="its-attribute.selector"/>
    <ref name="its-attribute.langPointer.nons"/>
  </define>
  <define name="its-attribute.langPointer.nons">
    <attribute name="langPointer">
      <ref name="its-relative-selector.type"/>
    </attribute>
  </define>
  <define name="its-withinTextRule">
    <element name="withinTextRule">
      <a:documentation>Rule about the Elements	Within Text data category.</a:documentation>
      <ref name="its-withinTextRule.content"/>
      <ref name="its-withinTextRule.attributes"/>
    </element>
  </define>
  <define name="its-withinTextRule.content">
    <empty/>
  </define>
  <define name="its-withinTextRule.attributes">
    <ref name="its-attribute.selector"/>
    <ref name="its-attribute.withinText.nons"/>
  </define>
  <define name="its-domainRule">
    <element name="domainRule">
      <a:documentation>Rule about the Domain data category.</a:documentation>
      <ref name="its-domainRule.content"/>
      <ref name="its-domainRule.attributes"/>
    </element>
  </define>
  <define name="its-domainRule.content">
    <empty/>
  </define>
  <define name="its-domainRule.attributes">
    <ref name="its-attribute.selector"/>
    <ref name="its-attribute.domainPointer.nons"/>
    <optional>
      <ref name="its-attribute.domainMapping.nons"/>
    </optional>
  </define>
  <define name="its-attribute.domainPointer.nons">
    <attribute name="domainPointer">
      <ref name="its-relative-selector.type"/>
    </attribute>
  </define>
  <!-- FIXME:  disambiguationRule -->
  <define name="its-localeFilterRule">
    <element name="localeFilterRule">
      <a:documentation>Rule about the LocaleFilter data category.</a:documentation>
      <ref name="its-localeFilterRule.content"/>
      <ref name="its-localeFilterRule.attributes"/>
    </element>
  </define>
  <define name="its-localeFilterRule.content">
    <empty/>
  </define>
  <define name="its-localeFilterRule.attributes">
    <ref name="its-attribute.selector"/>
    <ref name="its-attribute.localeFilterList.nons"/>
  </define>
  <!-- FIXME: Provenance -->
  <!-- FIXME: TextAnalyisAnnotation -->
  <define name="its-externalResourceRefRule">
    <element name="externalResourceRefRule">
      <a:documentation>Rule about the External Resource data category.</a:documentation>
      <ref name="its-externalResourceRefRule.content"/>
      <ref name="its-externalResourceRefRule.attributes"/>
    </element>
  </define>
  <define name="its-externalResourceRefRule.content">
    <empty/>
  </define>
  <define name="its-externalResourceRefRule.attributes">
    <ref name="its-attribute.selector"/>
    <ref name="its-attribute.externalResourceRefPointer.nons"/>
  </define>
  <define name="its-attribute.externalResourceRefPointer.nons">
    <attribute name="externalResourceRefPointer">
      <ref name="its-relative-selector.type"/>
    </attribute>
  </define>
  <!-- FIXME: targetPointerRule  -->
  <define name="its-idValueRule">
    <element name="idValueRule">
      <a:documentation>Rule about the Id Value data category.</a:documentation>
      <ref name="its-idValueRule.content"/>
      <ref name="its-idValueRule.attributes"/>
    </element>
  </define>
  <define name="its-idValueRule.content">
    <empty/>
  </define>
  <define name="its-idValueRule.attributes">
    <ref name="its-attribute.selector"/>
    <ref name="its-attribute.idValue.nons"/>
  </define>
  <define name="its-attribute.idValue.nons">
    <attribute name="idValue">
      <ref name="its-relative-selector.type"/>
    </attribute>
  </define>
</grammar>
<!-- FIXME: preserveSpace -->
<!-- FIXME: Localization Quality Issue -->
<!-- FIXME: Localization Quality Précis -->
<!-- FIXME: MT Confidence -->
<!-- FIXME: Allowed Characters -->
<!-- FIXME: Storage Size -->

--- NEW FILE: its20-elements.rng ---
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
  <include href="its20.rng"/>
  <start>
    <choice>
      <ref name="its-rules"/>
      <ref name="its-span"/>
      <ref name="its-ruby"/>
    </choice>
  </start>
</grammar>

--- NEW FILE: its20-attributes.rng ---
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
  <include href="its20.rng"/>
  <start>
    <element>
      <anyName/>
      <optional>
        <ref name="its-local.attributes"/>
      </optional>
      <optional>
        <ref name="its-attribute.version"/>
      </optional>
    </element>
  </start>
</grammar>

Received on Monday, 8 October 2012 15:07:28 UTC