<schemaSpec>
<schemaSpec> (schema specification) 建立一個符合TEI標準的模型以及該模型文件。 [2.3 The Encoding Description 22.2 Modules and Schemas 23.5.1 Making a Unified ODD] | |||||||||||||||||||||||||||
組件 | tagdocs — Documentation Elements | ||||||||||||||||||||||||||
屬性 | att.global (@xml:id, @n, @xml:lang, @xml:base, @xml:space) (att.global.rendition (@rend, @style, @rendition)) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) (att.global.responsibility (@cert, @resp)) att.identified (@ident, @predeclare, @module, @status) (att.combinable (@mode) (att.deprecated (@validUntil)) ) att.namespaceable (@ns) att.readFrom (@source)
| ||||||||||||||||||||||||||
俱乐部会员 | |||||||||||||||||||||||||||
可包含在於 | header: change encodingDesc handNote licence scriptNote typeNote msdescription: accMat acquisition additions collation condition custEvent decoNote filiation foliation layout musicNotation origin provenance signatures source summary support surrogates tagdocs: specGrp transcr: metamark | ||||||||||||||||||||||||||
可包含 | |||||||||||||||||||||||||||
宣告 |
element schemaSpec { att.global.attributes, att.global.rendition.attributes, att.global.linking.attributes, att.global.analytic.attributes, att.global.facs.attributes, att.global.change.attributes, att.global.responsibility.attributes, att.identified.attributes, att.combinable.attributes, att.deprecated.attributes, att.namespaceable.attributes, att.readFrom.attributes, attribute start { list { data.name+ } }?, attribute prefix { "" | data.xmlName }?, attribute targetLang { data.language }?, attribute docLang { list { data.language+ } }?, ( ( model.glossLike | model.descLike )*, ( model.oddRef | model.oddDecl )* ) } | ||||||||||||||||||||||||||
例子 | <schemaSpec prefix="TEI_" ident="testsvg" start="TEI svg"> <moduleRef source="tei:current" key="header"/> <moduleRef key="core"/> <moduleRef key="drama"/> <moduleRef url="svg11.rng"/> </schemaSpec> This schema combines elements from the current versions of the drama and core modules, the current release version of the header module, and elements from an existing RELAXNG schema available from the URL indicated. |