<schemaSpec>
<schemaSpec> (schema specification) 建立一個符合TEI標準的模型以及該模型文件。 | |||||||||||||||||||||||||||
組件 | tagdocs — 22 Documentation Elements | ||||||||||||||||||||||||||
屬性 | att.global (@xml:id, @n, @xml:lang, @rend, @style, @rendition, @xml:base, @xml:space) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) att.identified (@ident, @predeclare, @module, @status) (att.combinable (@mode)) att.namespaceable (@ns) att.readFrom (@source)
| ||||||||||||||||||||||||||
屬於 | |||||||||||||||||||||||||||
可包含在於 | figures: figure header: change encodingDesc handNote licence scriptNote typeNote msdescription: accMat acquisition additions collation condition custEvent decoNote filiation foliation layout musicNotation origin provenance source support surrogates tagdocs: specGrp transcr: metamark | ||||||||||||||||||||||||||
可包含 | |||||||||||||||||||||||||||
宣告 |
element schemaSpec { att.global.attributes, att.global.linking.attributes, att.global.analytic.attributes, att.global.facs.attributes, att.global.change.attributes, att.identified.attributes, att.combinable.attributes, att.namespaceable.attributes, att.readFrom.attributes, attribute start { list { data.name+ } }?, attribute prefix { "" | data.name }?, attribute targetLang { data.language }?, attribute docLang { list { data.language+ } }?, ( ( model.glossLike | model.descLike )*, ( model.oddRef | model.oddDecl )*, constraintSpec* ) } | ||||||||||||||||||||||||||
例子 | <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. |