default namespace ns1 = "http://www.w3.org/2005/11/its" namespace rng = "http://relaxng.org/ns/structure/1.0" namespace teix = "http://www.tei-c.org/ns/Examples" # Schema generated 2006-02-17T11:19:30+09:00 # Set predeclared macros data.selector = text data.itsBoolean = "yes" | "no" data.dirValues = "ltr" | "rtl" | "lro" | "rlo" data.locInfoType = "alert" | "description" data.itsBooleanTrue = "yes" att.selector.attributes = att.selector.attribute.translateSelector, att.selector.attribute.locInfoSelector, att.selector.attribute.termSelector, att.selector.attribute.dirSelector, att.selector.attribute.rubySelector, empty att.selector.attribute.translateSelector = ## attribute ns1:translateSelector { data.selector }? att.selector.attribute.locInfoSelector = ## attribute ns1:locInfoSelector { data.selector }? att.selector.attribute.termSelector = ## attribute ns1:termSelector { data.selector }? att.selector.attribute.dirSelector = ## attribute ns1:dirSelector { data.selector }? att.selector.attribute.rubySelector = ## attribute ns1:rubySelector { data.selector }? documentRules = ## This element contains rules for ITS information, to be used in documents. element documentRules { documentRules.content, documentRules.attributes } documentRules.content = ns*, documentRule+ documentRules.attributes = empty ns = ## An element to describe namespace URIs and prefixes within XPath expressions in ## selector attributes. element ns { ns.content, ns.attributes } ns.content = empty ns.attributes = att.nsident.attributes, empty att.nsident.attributes = att.nsident.attribute.prefix, att.nsident.attribute.uri, empty att.nsident.attribute.prefix = ## attribute ns1:prefix { xsd:NCName } att.nsident.attribute.uri = ## attribute ns1:uri { xsd:anyURI } documentRule = ## A rule to express ITS information and select parts of a document respectively. ## documentRule is to be used in a in rule context only. element documentRule { documentRule.content, documentRule.attributes } documentRule.content = empty documentRule.attributes = att.selector.attributes, att.datacats.attributes, empty schemaRule = ## A rule to express ITS information about the element declaration to which the ## schemaRule element is attached as schema annotation. element schemaRule { schemaRule.content, schemaRule.attributes } schemaRule.content = empty schemaRule.attributes = att.datacats.attributes, empty att.datacats.attributes = att.datacats.attribute.translate, att.datacats.attribute.locInfo, att.datacats.attribute.locInfoType, att.datacats.attribute.term, att.datacats.attribute.termRef, att.datacats.attribute.dir, att.datacats.attribute.rubyText, empty att.datacats.attribute.translate = ## attribute ns1:translate { data.itsBoolean }? att.datacats.attribute.locInfo = ## attribute ns1:locInfo { text }? att.datacats.attribute.locInfoType = ## attribute ns1:locInfoType { data.locInfoType }? att.datacats.attribute.term = ## attribute ns1:term { data.itsBooleanTrue }? att.datacats.attribute.termRef = ## attribute ns1:termRef { xsd:anyURI }? att.datacats.attribute.dir = ## attribute ns1:dir { data.dirValues }? att.datacats.attribute.rubyText = ## attribute ns1:rubyText { text }? rubyBase = ## element rubyBase { rubyBase.content } rubyBase.content = text ruby = ## element ruby { ruby.content } ruby.content = rubyBase, rubyText rubyText = ## element rubyText { rubyText.content } rubyText.content = text span = ## An element used as a general container for ITS data category attributes. element span { span.content, span.attributes } span.content = text span.attributes = att.datacats.attributes, empty start = documentRules