ГОСТ Р ИСО/МЭК 13250-4—2012
Приложение А
(справочное)
Схема RELAX-NG для СХТМ
topicMap = element topicMap (
attribute reifier { xsd:integer }?. itemldentifiers?, topic*, association*
}
attlist.reifier =
attribute reifier { xsd:integer)?.
attribute number { xsd:integer }
topic = element topic {
attribute number { xsd:integer }.
subjectldentifiers?.
subjectLocators?,
itemldentifiers?.
name*.
occurrence*.
rolePlayed*
}
subjectldentifiers = element subjectldentifiers {
locator*
}
subjectLocators = element subjectLocators {
locator*
}
itemldentifiers = element itemldentifiers {
locator*
}
name = element name {
attlist.reifier. value, type, scope?, variant*, itemldentifiers?
}
variant = element variant {
attlist.reifier. value, datatype, scope, itemldentifiers?
}
occurrence = element occurrence {
attlistreifier, value, datatype, type, scope?, itemldentifiers?
}
rolePlayed = element rolePlayed {
attribute ref { role.ref}
}
role.ref = xsd:token { pattern = "association.[1-9][0-9]*.rote.[1-9)[0-9]**}
association = element association {
attlist.reifier. type?, role*, scope?, itemldentifiers?
}
role = element role {
attlist.reifier. player?, type?, itemldentifiers?
}
attlist.topicref = attribute topicref {xsd:integer}
player = element player { attlist.topicref}
type = element type { attlist.topicref}
value = element value { text }
locator = element locator { text}
scope = element scope { scopingTopic* }
datatype = element datatype { xsd:anyURI }
scopingTopic = element scopingTopic { attlist.topicref}
start = topicMap
10