its20 CVS commit

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

Modified Files:
	its20-types.rnc 
Added Files:
	its20-attributes.rnc its20-elements.rnc its20-html5.rnc 
	its20.nvdl its20.rnc 
Removed Files:
	its.dtd its.nvdl its.rnc its.rng its.xsd xhtml.xsd xlink.xsd 
Log Message:
Initial work on a standalone ITS 2.0 schema

--- NEW FILE: its20.nvdl ---
<?xml version="1.0" encoding="UTF-8"?>
<rules xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0">
  <namespace ns="http://www.w3.org/2005/11/its">
    <validate schema="its20-elements.rng"/>   
  </namespace>
  <namespace ns="http://www.w3.org/2005/11/its" match="attributes">
    <validate schema="its20-attributes.rng"/>
  </namespace>
  <anyNamespace>
    <allow/>
  </anyNamespace>
</rules>
--- NEW FILE: its20-elements.rnc ---
include "its20.rng"

start = its-rules | its-span | its-ruby
--- its.rnc DELETED ---

--- NEW FILE: its20-html5.rnc ---
include "its20-types.rnc"

its-attribute.locNote.html = attribute its-loc-note { its-locNote.type }

its-attribute.locNoteType.html = attribute its-loc-note-type { its-locNoteType.type }

its-attribute.locNoteRef.html = attribute its-loc-note-ref { its-locNoteRef.type }

its-attribute.termInfoRef.html = attribute its-term-info-ref { its-termInfoRef.type }

its-attribute.term.html = attribute its-term { its-term.type }

its-attribute-withinText.html = attribute its-within-text { its-withinText.type }

its-attribute.domainMapping.html = attribute its-domain-mapping { its-domainMapping.type }

its-attribute.entityTypeSourceRef.html = attribute its-entity-type-source-ref { its-entityTypeSourceRef.type }

its-attribute.entityTypeRef.html = attribute its-entity-type-ref { its-entityTypeRef.type }

its-attribute.disambigType.html = attribute its-disambig-type { its-disambigType.type }

its-attribute.disambigSourceRef.html = attribute its-disambig-source-ref { its-disambigSourceRef.type }

its-attribute.disambigIdentRef.html = attribute its-disambig-ident-ref { its-disambigIdentRef.type }

its-attribute.localeFilterList.html = attribute its-locale-filter-list { its-localeFilterList.type }

its-attribute.locQualityIssuesRef.html = attribute its-loc-quality-issues-ref { its-locQualityIssuesRef.type }

its-attribute.locQualityIssueType.html = attribute its-loc-quality-issue-type { its-locQualityIssueType.type } 

its-attribute.locQualityIssueComment.html = attribute its-loc-quality-issue-comment { its-locQualityIssueComment.type }

its-attribute.locQualityIssueSeverity.html = attribute its-loc-quality-issue-severity { its-locQualityIssueSeverity.type }

its-attribute.locQualityIssueProfileRef.html = attribute its-loc-quality-issue-profile-ref { its-locQualityIssueProfileRef.type }

its-attribute.locQualityPrecisScore.html = attribute its-loc-quality-precis-score { its-locQualityPrecisScore.type }

its-attribute.locQualityPrecisVote.html = attribute its-loc-quality-prcecis-vote { its-locQualityPrecisVote.type }

its-attribute.locQualityPrecisThreshold.html = attribute its-loc-quality-precis-threshold { its-locQualityPrecisThreshold.type }

its-attribute.locQualityPrecisProfileRef.html = attribute its-loc-quality-precis-profile-ref { its-locQualityPrecisProfileRef.type }

its-attribute.allowedCharacters.html = attribute its-allowed-characters { its-allowedCharacters.type }

its-attribute.storageSize.html = attribute its-storage-size { its-storageSize.type }

its-attribute.storageEncoding.html = attribute its-storage-encoding { its-storageEncoding.type }

its-html-attributes =
  ((its-attribute.locNote.html | its-attribute.locNoteRef.html), its-attribute.locNoteType.html?)? &
  (its-attribute.term.html, its-attribute.termInfoRef.html?)? &
  its-attribute-withinText.html? &
  its-attribute.entityTypeSourceRef.html? &
  its-attribute.entityTypeRef.html? &
  its-attribute.disambigType.html? &
  its-attribute.disambigSourceRef.html? &
  its-attribute.disambigIdentRef.html? &
  its-attribute.localeFilterList.html? &
  (its-attribute.locQualityIssuesRef.html
  | 
  ((its-attribute.locQualityIssueType.html | its-attribute.locQualityIssueComment.html | (its-attribute.locQualityIssueType.html & its-attribute.locQualityIssueComment.html)) & 
    its-attribute.locQualityIssueSeverity.html? &
  its-attribute.locQualityIssueProfileRef.html?
  )
  )? &
  ((its-attribute.locQualityPrecisScore.html | its-attribute.locQualityPrecisVote.html), its-attribute.locQualityPrecisThreshold.html?, its-attribute.locQualityPrecisProfileRef.html?)? &
  its-attribute.allowedCharacters.html? &
  (its-attribute.storageSize.html, its-attribute.storageEncoding.html?)?

# FIXME: RNC implementation of locQualityIssues element
Index: its20-types.rnc
===================================================================
RCS file: /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-types.rnc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- its20-types.rnc	11 Sep 2012 13:24:50 -0000	1.1
+++ its20-types.rnc	8 Oct 2012 14:30:47 -0000	1.2
@@ -160,7 +160,6 @@
 
 its-storageSizePointer.type = its-relative-selector.type
 
-its-storageSizeEncoding.type = string
-
-its-storageSizeEncodingPointer.type = its-relative-selector.type
+its-storageEncoding.type = string
 
+its-storageEncodingPointer.type = its-relative-selector.type

--- its.rng DELETED ---

--- NEW FILE: its20.rnc ---
default namespace its = "http://www.w3.org/2005/11/its"
namespace xlink = "http://www.w3.org/1999/xlink"

include "its20-types.rnc"

its-attribute.translate = attribute its:translate { its-translate.type }
its-attribute.translate.nons = attribute translate { its-translate.type }

its-attribute.locNote = attribute its:locNote { its-locNote.type }
its-attribute.locNote.nons = attribute locNote { its-locNote.type }

its-attribute.locNoteType = attribute its:locNoteType { its-locNoteType.type }
its-attribute.locNoteType.nons = attribute locNoteType { its-locNoteType.type }

its-attribute.locNoteRef = attribute its:locNoteRef { its-locNoteRef.type }
its-attribute.locNoteRef.nons = attribute locNoteRef { its-locNoteRef.type }

its-attribute.termInfoRef = attribute its:termInfoRef { its-termInfoRef.type }
its-attribute.termInfoRef.nons = attribute termInfoRef { its-termInfoRef.type }

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.domainMapping = attribute its:domainMapping { its-domainMapping.type }
its-attribute.domainMapping.nons = attribute domainMapping { its-domainMapping.type }

its-attribute.entityTypeSourceRef = attribute its:entityTypeSourceRef { its-entityTypeSourceRef.type }
its-attribute.entityTypeSourceRef.nons = attribute its:entityTypeSourceRef { its-entityTypeSourceRef.type }

its-attribute.entityTypeRef = attribute its:entityTypeRef { its-entityTypeRef.type }
its-attribute.entityTypeRef.nons = attribute entityTypeRef { its-entityTypeRef.type }

its-attribute.disambigType = attribute its:disambigType { its-disambigType.type }
its-attribute.disambigType.nons = attribute disambigType { its-disambigType.type }

its-attribute.disambigSourceRef = attribute its:disambigSourceRef { its-disambigSourceRef.type }
its-attribute.disambigSourceRef.nons = attribute disambigSourceRef { its-disambigSourceRef.type }

its-attribute.disambigIdentRef = attribute its:disambigIdentRef { its-disambigIdentRef.type }
its-attribute.disambigIdentRef.nons = attribute disambigIdentRef { its-disambigIdentRef.type }

its-attribute.localeFilterList = attribute its:localeFilterList { its-localeFilterList.type }
its-attribute.localeFilterList.nons = attribute its:localeFilterList { its-localeFilterList.type }

its-attribute.locQualityIssuesRef = attribute its:locQualityIssuesRef { its-locQualityIssuesRef.type }
its-attribute.locQualityIssuesRef.nons = attribute locQualityIssuesRef { its-locQualityIssuesRef.type }

its-attribute.locQualityIssueType = attribute its:locQualityIssueType { its-locQualityIssueType.type } 
its-attribute.locQualityIssueType.nons = attribute locQualityIssueType { its-locQualityIssueType.type }

its-attribute.locQualityIssueComment = attribute its:locQualityIssueComment { its-locQualityIssueComment.type }
its-attribute.locQualityIssueComment.nons = attribute locQualityIssueComment { its-locQualityIssueComment.type }

its-attribute.locQualityIssueSeverity = attribute its:locQualityIssueSeverity { its-locQualityIssueSeverity.type }
its-attribute.locQualityIssueSeverity.nons = attribute locQualityIssueSeverity { its-locQualityIssueSeverity.type }

its-attribute.locQualityIssueProfileRef = attribute its:locQualityIssueProfileRef { its-locQualityIssueProfileRef.type }
its-attribute.locQualityIssueProfileRef.nons = attribute locQualityIssueProfileRef { its-locQualityIssueProfileRef.type }

its-attribute.locQualityPrecisScore = attribute its:locQualityPrecisScore { its-locQualityPrecisScore.type }
its-attribute.locQualityPrecisScore.nons = attribute locQualityPrecisScore { its-locQualityPrecisScore.type }

its-attribute.locQualityPrecisVote = attribute its:locQualityPrecisVote { its-locQualityPrecisVote.type }
its-attribute.locQualityPrecisVote.nons = attribute locQualityPrecisVote { its-locQualityPrecisVote.type }

its-attribute.locQualityPrecisThreshold = attribute its:locQualityPrecisThreshold { its-locQualityPrecisThreshold.type }
its-attribute.locQualityPrecisThreshold.nons = attribute locQualityPrecisThreshold { its-locQualityPrecisThreshold.type }

its-attribute.locQualityPrecisProfileRef = attribute its:locQualityPrecisProfileRef { its-locQualityPrecisProfileRef.type }
its-attribute.locQualityPrecisProfileRef.nons = attribute locQualityPrecisProfileRef { its-locQualityPrecisProfileRef.type }

its-attribute.allowedCharacters = attribute its:allowedCharacters { its-allowedCharacters.type }
its-attribute.allowedCharacters.nons = attribute allowedCharacters { its-allowedCharacters.type }

its-attribute.storageSize = attribute its:storageSize { its-storageSize.type }
its-attribute.storageSize.nons = attribute storageSize { its-storageSize.type }

its-attribute.storageEncoding = attribute its:storageEncoding { its-storageEncoding.type }
its-attribute.storageEncoding.nons = attribute storageEncoding { its-storageEncoding.type }

its-attribute.version = attribute its:version { its-version.type }
its-attribute.version.nons = attribute version { its-version.type }

its-attribute.queryLanguage = attribute its:queryLanguage { its-queryLanguage.type }
its-attribute.queryLanguage.nons = attribute queryLanguage { its-queryLanguage.type }

its-attribute.href.xlink = attribute xlink:href { xsd:anyURI }

its-attribute.selector = attribute selector { its-absolute-selector.type }

its-rules =
  ## Container for global rules.
  element rules { its-rules.content, its-rules.attributes }

its-rules.content =
  its-param*,
  (its-translateRule
   | its-locNoteRule
   | its-termRule
   | its-dirRule
   | its-rubyRule
   | its-langRule
   | its-withinTextRule
   | its-domainRule
   | its-localeFilterRule
   | its-externalResourceRefRule
   | its-idValueRule)*

its-rules.attributes =
  its-attribute.version.nons,
  its-attribute.href.xlink?,
  its-attribute.queryLanguage.nons?  

its-param =
  element param { its-param.content, its-param.attributes }
  
its-param.content = text

its-param.attributes =
  attribute name { xsd:string }

its-local.attributes =
  its-attribute.translate? &
  ((its-attribute.locNote | its-attribute.locNoteRef), its-attribute.locNoteType?)? &
  (its-attribute.term, its-attribute.termInfoRef?)? &
  its-attribute-withinText? &
  its-attribute.entityTypeSourceRef? &
  its-attribute.entityTypeRef? &
  its-attribute.disambigType? &
  its-attribute.disambigSourceRef? &
  its-attribute.disambigIdentRef? &
  its-attribute.localeFilterList? &
  (its-attribute.locQualityIssuesRef
  | 
  ((its-attribute.locQualityIssueType | its-attribute.locQualityIssueComment | (its-attribute.locQualityIssueType & its-attribute.locQualityIssueComment)) & 
    its-attribute.locQualityIssueSeverity? &
  its-attribute.locQualityIssueProfileRef?
  )
  )? &
  ((its-attribute.locQualityPrecisScore | its-attribute.locQualityPrecisVote), its-attribute.locQualityPrecisThreshold?, its-attribute.locQualityPrecisProfileRef?)? &
  its-attribute.allowedCharacters? &
  (its-attribute.storageSize, its-attribute.storageEncoding?)?

its-local.nons.attributes =
  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.entityTypeSourceRef.nons? &
  its-attribute.entityTypeRef.nons? &
  its-attribute.disambigType.nons? &
  its-attribute.disambigSourceRef.nons? &
  its-attribute.disambigIdentRef.nons? &
  its-attribute.localeFilterList.nons? &
  (its-attribute.locQualityIssuesRef.nons
  | 
  ((its-attribute.locQualityIssueType.nons | its-attribute.locQualityIssueComment.nons | (its-attribute.locQualityIssueType.nons & its-attribute.locQualityIssueComment.nons)) & 
    its-attribute.locQualityIssueSeverity.nons? &
  its-attribute.locQualityIssueProfileRef.nons?
  )
  )? &
  ((its-attribute.locQualityPrecisScore.nons | its-attribute.locQualityPrecisVote.nons), its-attribute.locQualityPrecisThreshold.nons?, its-attribute.locQualityPrecisProfileRef.nons?)? &
  its-attribute.allowedCharacters.nons? &
  (its-attribute.storageSize.nons, its-attribute.storageEncoding.nons?)?

its-span =
  ## Inline element to contain ITS information.
  element span { its-span.content, its-span.attributes }
  
its-span.content = (text | its-ruby | its-span)*

its-span.attributes = its-local.nons.attributes

its-translateRule =
  ## Rule about the Translate data category.
  element translateRule {
    its-translateRule.content, its-translateRule.attributes
  }
  
its-translateRule.content = empty
its-translateRule.attributes =
  its-attribute.selector,
  its-attribute.translate.nons

its-locNoteRule =
  ## Rule about the Localization Note data category.
  element locNoteRule {
    its-attribute.selector,
    its-attribute.locNoteType,
    (its-locNote | its-attribute.locNotePointer.nons | its-attribute.locNoteRef.nons | its-attribute.locNoteRefPointer.nons )
  }

its-attribute.locNotePointer.nons = attribute locNotePointer { its-relative-selector.type }
its-attribute.locNoteRefPointer.nons = attribute locNoteRefPointer { its-relative-selector.type }

its-locNote =
  ## Contains a localization note.
  element locNote { its-locNote.content, its-locNote.attributes }

its-locNote.content = (text | its-ruby | its-span)*

its-locNote.attributes = its-local.attributes

its-termRule =
  ## Rule about the Terminology data category.
  element termRule { its-termRule.content, its-termRule.attributes }

its-termRule.content = empty
its-termRule.attributes =
  its-attribute.selector,
  its-attribute.term.nons,
  (its-attribute.termInfoPointer.nons | its-attribute.termInfoRef.nons | its-attribute.termInfoRefPointer.nons )

its-attribute.termInfoPointer.nons = attribute termInfoPointer { its-relative-selector.type } 

its-attribute.termInfoRefPointer.nons = attribute termInfoRefPointer { its-relative-selector.type }

its-dirRule =
  ## Rule about the Directionality data category.
  element dirRule { its-dirRule.content, its-dirRule.attributes }

its-dirRule.content = empty
its-dirRule.attributes =
  its-attribute.selector,
  its-attribute.dir.nons
  
its-rubyRule =
  ## Rule about the Ruby data category.
  element rubyRule { its-rubyRule.content, its-rubyRule.attributes }

its-rubyRule.content = its-rubyText?
its-rubyRule.attributes =
  its-attribute.selector,
  its-attribute.rubyPointer.nons?,
  its-attribute.rpPointer.nons?,
  its-attribute.rtPointer?

its-attribute.rubyPointer.nons = attribute rubyPointer { its-relative-selector.type }
its-attribute.rpPointer.nons = attribute rpPointer { its-relative-selector.type }
its-attribute.rtPointer.nons = attribute rtPointer { its-relative-selector.type }

its-rubyText =
  ## Ruby text.
  element rubyText { its-rubyText.content, its-rubyText.attributes }
  
its-rubyText.content = text
its-rubyText.attributes = its-local-attributes

its-ruby =
  ## Ruby markup.
  element ruby { its-ruby.content, its-ruby.attributes }

its-ruby.content =
  ((text | its-span)+,
   (its-rt | (its-rp, its-rt, its-rp)))+
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-rp =
  ## 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.
  element rp { its-rp.content, its-rp.attributes }

its-rp.content = text
its-rp.attributes = its-local-attributes

its-langRule =
  ## Rule about the Language	Information data category.
  element langRule { its-langRule.content, its-langRule.attributes }

its-langRule.content = empty
its-langRule.attributes =
  its-attribute.selector,
  its-attribute.langPointer.nons
  
its-attribute.langPointer.nons = attribute langPointer { its-relative-selector.type }  

its-withinTextRule =
  ## Rule about the Elements	Within Text data category.
  element withinTextRule {
    its-withinTextRule.content, its-withinTextRule.attributes
  }
  
its-withinTextRule.content = empty
its-withinTextRule.attributes =
  its-attribute.selector,
  its-attribute.withinText.nons

its-domainRule =
  ## Rule about the Domain data category.
  element domainRule {
    its-domainRule.content, its-domainRule.attributes
  }
  
its-domainRule.content = empty
its-domainRule.attributes =
  its-attribute.selector,
  its-attribute.domainPointer.nons,
  its-attribute.domainMapping.nons?

its-attribute.domainPointer.nons = attribute domainPointer { its-relative-selector.type }

# FIXME:  disambiguationRule

its-localeFilterRule =
  ## Rule about the LocaleFilter data category.
  element localeFilterRule {
    its-localeFilterRule.content, its-localeFilterRule.attributes
  }
  
its-localeFilterRule.content = empty
its-localeFilterRule.attributes =
  its-attribute.selector,
  its-attribute.localeFilterList.nons
  
# FIXME: Provenance

# FIXME: TextAnalyisAnnotation
  
its-externalResourceRefRule =
  ## Rule about the External Resource data category.
  element externalResourceRefRule {
    its-externalResourceRefRule.content,
    its-externalResourceRefRule.attributes
  }
  
its-externalResourceRefRule.content = empty
its-externalResourceRefRule.attributes =
  its-attribute.selector,
  its-attribute.externalResourceRefPointer.nons
  
its-attribute.externalResourceRefPointer.nons = attribute externalResourceRefPointer { its-relative-selector.type }
  
# FIXME: targetPointerRule  
  
its-idValueRule =
  ## Rule about the Id Value data category.
  element idValueRule {
    its-idValueRule.content, its-idValueRule.attributes
  }
  
its-idValueRule.content = empty
its-idValueRule.attributes =
  its-attribute.selector,
  its-attribute.idValue.nons
  
its-attribute.idValue.nons = attribute idValue { its-relative-selector.type }

# FIXME: preserveSpace

# FIXME: Localization Quality Issue

# FIXME: Localization Quality Précis

# FIXME: MT Confidence

# FIXME: Allowed Characters

# FIXME: Storage Size

--- its.nvdl DELETED ---

--- NEW FILE: its20-attributes.rnc ---
include "its20.rnc"

start =
  element * { its-local-attributes?, its-attribute.version? }

--- its.dtd DELETED ---

--- xlink.xsd DELETED ---

--- xhtml.xsd DELETED ---

--- its.xsd DELETED ---

Received on Monday, 8 October 2012 14:30:56 UTC