- From: CVS User jkosek <cvsmail@w3.org>
- Date: Wed, 28 Nov 2012 10:38:47 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas In directory gil:/tmp/cvs-serv23781 Modified Files: its20-elements.rnc its20-elements.rng its20-types.rnc its20-types.rng its20.rnc its20.rng Log Message: Added LQ, minor updates --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-elements.rnc 2012/10/08 15:54:20 1.3 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-elements.rnc 2012/11/28 10:38:47 1.4 @@ -4,4 +4,4 @@ its-local.attributes &= attribute xml:* { text }* its-local.nons.attributes &= attribute xml:* { text }* -start = its-rules | its-span | its-ruby \ No newline at end of file +start = its-rules | its-span | its-ruby | its-standoff \ No newline at end of file --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-elements.rng 2012/10/08 15:54:20 1.2 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-elements.rng 2012/11/28 10:38:47 1.3 @@ -21,6 +21,7 @@ <ref name="its-rules"/> <ref name="its-span"/> <ref name="its-ruby"/> + <ref name="its-standoff"/> </choice> </start> </grammar> --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-types.rnc 2012/11/27 22:35:14 1.5 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-types.rnc 2012/11/28 10:38:47 1.6 @@ -163,6 +163,8 @@ its-locQualityIssueProfileRefPointer.type = its-relative-selector.type +its-locQualityIssueEnabled.type = "yes" | "no" + its-locQualityPrecisScore.type = xsd:decimal { minInclusive = "0" maxInclusive = "100" } its-locQualityPrecisScorePointer.type = its-relative-selector.type --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-types.rng 2012/11/27 22:35:14 1.2 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20-types.rng 2012/11/28 10:38:47 1.3 @@ -252,6 +252,12 @@ <define name="its-locQualityIssueProfileRefPointer.type"> <ref name="its-relative-selector.type"/> </define> + <define name="its-locQualityIssueEnabled.type"> + <choice> + <value>yes</value> + <value>no</value> + </choice> + </define> <define name="its-locQualityPrecisScore.type"> <data type="decimal"> <param name="minInclusive">0</param> --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20.rnc 2012/11/27 22:35:14 1.8 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20.rnc 2012/11/28 10:38:47 1.9 @@ -111,6 +111,9 @@ its-attribute.locQualityIssueProfileRef = attribute its:locQualityIssueProfileRef { its-locQualityIssueProfileRef.type } its-attribute.locQualityIssueProfileRef.nons = attribute locQualityIssueProfileRef { its-locQualityIssueProfileRef.type } +its-attribute.locQualityIssueEnabled = attribute its:locQualityIssueEnabled { its-locQualityIssueEnabled.type } +its-attribute.locQualityIssueEnabled.nons = attribute locQualityIssueEnabled { its-locQualityIssueEnabled.type } + its-attribute.locQualityPrecisScore = attribute its:locQualityPrecisScore { its-locQualityPrecisScore.type } its-attribute.locQualityPrecisScore.nons = attribute locQualityPrecisScore { its-locQualityPrecisScore.type } @@ -168,6 +171,7 @@ | its-domainRule | its-disambiguationRule | its-localeFilterRule + | its-locQualityIssueRule | its-mtConfidenceRule | its-externalResourceRefRule | its-targetPointerRule @@ -212,10 +216,7 @@ its-attribute.provenanceRecordsRef)? & (its-attribute.locQualityIssuesRef | - ((its-attribute.locQualityIssueType | its-attribute.locQualityIssueComment | (its-attribute.locQualityIssueType & its-attribute.locQualityIssueComment)) & - its-attribute.locQualityIssueSeverity? & - its-attribute.locQualityIssueProfileRef? - ) + (its-attribute.locQualityIssueType? & its-attribute.locQualityIssueComment? & its-attribute.locQualityIssueSeverity? & its-attribute.locQualityIssueProfileRef? & its-attribute.locQualityIssueEnabled?) )? & ((its-attribute.locQualityPrecisScore | its-attribute.locQualityPrecisVote), its-attribute.locQualityPrecisThreshold?, its-attribute.locQualityPrecisProfileRef?)? & its-attribute.mtConfidence? & @@ -245,10 +246,7 @@ | its-attribute.provenanceRecordsRef)? & (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.locQualityIssueType.nons? & its-attribute.locQualityIssueComment.nons? & its-attribute.locQualityIssueSeverity.nons? & its-attribute.locQualityIssueProfileRef.nons? & its-attribute.locQualityIssueEnabled.nons?) )? & ((its-attribute.locQualityPrecisScore.nons | its-attribute.locQualityPrecisVote.nons), its-attribute.locQualityPrecisThreshold.nons?, its-attribute.locQualityPrecisProfileRef.nons?)? & its-attribute.mtConfidence.nons? & @@ -497,7 +495,24 @@ its-attribute.space.nons = attribute space { "default" | "preserve" } -# FIXME: Localization Quality Issue +its-locQualityIssueRule = + ## Rule about the Localization Quality Issue data category. + element locQualityIssueRule { + its-locQualityIssueRule.content, its-locQualityIssueRule.attributes + } + +its-locQualityIssueRule.content = empty +its-locQualityIssueRule.attributes = + its-attribute.selector, + ((its-attribute.locQualityIssuesRef.nons | its-attribute.locQualityIssuesRefPointer.nons) + | + (its-attribute.locQualityIssueType.nons? & its-attribute.locQualityIssueComment.nons?) + ), + its-attribute.locQualityIssueSeverity.nons?, + its-attribute.locQualityIssueProfileRef.nons?, + its-attribute.locQualityIssueEnabled.nons? + +its-attribute.locQualityIssuesRefPointer.nons = attribute locQualityIssuesRefPointer { its-relative-selector.type } # FIXME: Localization Quality Précis @@ -542,9 +557,9 @@ its-attribute.storageSizePointer.nons = attribute storageSizePointer { its-relative-selector.type } its-attribute.storageEncodingPointer.nons = attribute storageEncodingPointer { its-relative-selector.type } -its-standoff = its-provenanceRecords +its-standoff = its-provenanceRecords | its-locQualityIssues -its-provenanceRecords = element its:provenanceRecords { its-provenanceRecord+ } +its-provenanceRecords = element its:provenanceRecords { its-provenanceRecord+, attribute xml:id { xsd:ID } } its-provenanceRecord = element its:provenanceRecord { its-provenanceRecord.attributes } @@ -556,3 +571,14 @@ (its-attribute.revOrg.nons | its-attribute.revOrgRef.nons )? & (its-attribute.revTool.nons | its-attribute.revToolRef.nons )? & its-attribute.provRef.nons? + +its-locQualityIssues = element its:locQualityIssues { its-locQualityIssue+, attribute xml:id { xsd:ID } } + +its-locQualityIssue = element its:locQualityIssue { its-locQualityIssue.attributes } + +its-locQualityIssue.attributes = + its-attribute.locQualityIssueType.nons? & + its-attribute.locQualityIssueComment.nons? & + its-attribute.locQualityIssueSeverity.nons? & + its-attribute.locQualityIssueProfileRef.nons? & + its-attribute.locQualityIssueEnabled.nons? \ No newline at end of file --- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20.rng 2012/11/27 22:35:15 1.5 +++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/schemas/its20.rng 2012/11/28 10:38:47 1.6 @@ -361,6 +361,16 @@ <ref name="its-locQualityIssueProfileRef.type"/> </attribute> </define> + <define name="its-attribute.locQualityIssueEnabled"> + <attribute name="its:locQualityIssueEnabled"> + <ref name="its-locQualityIssueEnabled.type"/> + </attribute> + </define> + <define name="its-attribute.locQualityIssueEnabled.nons"> + <attribute name="locQualityIssueEnabled"> + <ref name="its-locQualityIssueEnabled.type"/> + </attribute> + </define> <define name="its-attribute.locQualityPrecisScore"> <attribute name="its:locQualityPrecisScore"> <ref name="its-locQualityPrecisScore.type"/> @@ -519,6 +529,7 @@ <ref name="its-domainRule"/> <ref name="its-disambiguationRule"/> <ref name="its-localeFilterRule"/> + <ref name="its-locQualityIssueRule"/> <ref name="its-mtConfidenceRule"/> <ref name="its-externalResourceRefRule"/> <ref name="its-targetPointerRule"/> @@ -655,20 +666,21 @@ <choice> <ref name="its-attribute.locQualityIssuesRef"/> <interleave> - <choice> + <optional> <ref name="its-attribute.locQualityIssueType"/> + </optional> + <optional> <ref name="its-attribute.locQualityIssueComment"/> - <interleave> - <ref name="its-attribute.locQualityIssueType"/> - <ref name="its-attribute.locQualityIssueComment"/> - </interleave> - </choice> + </optional> <optional> <ref name="its-attribute.locQualityIssueSeverity"/> </optional> <optional> <ref name="its-attribute.locQualityIssueProfileRef"/> </optional> + <optional> + <ref name="its-attribute.locQualityIssueEnabled"/> + </optional> </interleave> </choice> </optional> @@ -804,20 +816,21 @@ <choice> <ref name="its-attribute.locQualityIssuesRef.nons"/> <interleave> - <choice> + <optional> <ref name="its-attribute.locQualityIssueType.nons"/> + </optional> + <optional> <ref name="its-attribute.locQualityIssueComment.nons"/> - <interleave> - <ref name="its-attribute.locQualityIssueType.nons"/> - <ref name="its-attribute.locQualityIssueComment.nons"/> - </interleave> - </choice> + </optional> <optional> <ref name="its-attribute.locQualityIssueSeverity.nons"/> </optional> <optional> <ref name="its-attribute.locQualityIssueProfileRef.nons"/> </optional> + <optional> + <ref name="its-attribute.locQualityIssueEnabled.nons"/> + </optional> </interleave> </choice> </optional> @@ -1301,7 +1314,47 @@ </choice> </attribute> </define> - <!-- FIXME: Localization Quality Issue --> + <define name="its-locQualityIssueRule"> + <element name="locQualityIssueRule"> + <a:documentation>Rule about the Localization Quality Issue data category.</a:documentation> + <ref name="its-locQualityIssueRule.content"/> + <ref name="its-locQualityIssueRule.attributes"/> + </element> + </define> + <define name="its-locQualityIssueRule.content"> + <empty/> + </define> + <define name="its-locQualityIssueRule.attributes"> + <ref name="its-attribute.selector"/> + <choice> + <choice> + <ref name="its-attribute.locQualityIssuesRef.nons"/> + <ref name="its-attribute.locQualityIssuesRefPointer.nons"/> + </choice> + <interleave> + <optional> + <ref name="its-attribute.locQualityIssueType.nons"/> + </optional> + <optional> + <ref name="its-attribute.locQualityIssueComment.nons"/> + </optional> + </interleave> + </choice> + <optional> + <ref name="its-attribute.locQualityIssueSeverity.nons"/> + </optional> + <optional> + <ref name="its-attribute.locQualityIssueProfileRef.nons"/> + </optional> + <optional> + <ref name="its-attribute.locQualityIssueEnabled"/> + </optional> + </define> + <define name="its-attribute.locQualityIssuesRefPointer.nons"> + <attribute name="locQualityIssuesRefPointer"> + <ref name="its-relative-selector.type"/> + </attribute> + </define> <!-- FIXME: Localization Quality Précis --> <define name="its-mtConfidenceRule"> <element name="mtConfidenceRule"> @@ -1377,13 +1430,19 @@ </attribute> </define> <define name="its-standoff"> - <ref name="its-provenanceRecords"/> + <choice> + <ref name="its-provenanceRecords"/> + <ref name="its-locQualityIssues"/> + </choice> </define> <define name="its-provenanceRecords"> <element name="its:provenanceRecords"> <oneOrMore> <ref name="its-provenanceRecord"/> </oneOrMore> + <attribute name="xml:id"> + <data type="ID"/> + </attribute> </element> </define> <define name="its-provenanceRecord"> @@ -1434,4 +1493,38 @@ </optional> </interleave> </define> + <define name="its-locQualityIssues"> + <element name="its:locQualityIssues"> + <oneOrMore> + <ref name="its-locQualityIssue"/> + </oneOrMore> + <attribute name="xml:id"> + <data type="ID"/> + </attribute> + </element> + </define> + <define name="its-locQualityIssue"> + <element name="its:locQualityIssue"> + <ref name="its-locQualityIssue.attributes"/> + </element> + </define> + <define name="its-locQualityIssue.attributes"> + <interleave> + <optional> + <ref name="its-attribute.locQualityIssueType.nons"/> + </optional> + <optional> + <ref name="its-attribute.locQualityIssueComment.nons"/> + </optional> + <optional> + <ref name="its-attribute.locQualityIssueSeverity.nons"/> + </optional> + <optional> + <ref name="its-attribute.locQualityIssueProfileRef.nons"/> + </optional> + <optional> + <ref name="its-attribute.locQualityIssueEnabled.nons"/> + </optional> + </interleave> + </define> </grammar>
Received on Wednesday, 28 November 2012 10:38:49 UTC