<schemaSpec>
<schemaSpec> (schema specification) 建立一個符合TEI標準的模型以及該模型文件。 | |||||||||||||||||||||||||||||||
組件 | tagdocs — 22 Documentation Elements | ||||||||||||||||||||||||||||||
除全域屬性以外 | att.identified (@ident, @predeclare, @module) (att.combinable (@mode)) att.readFrom (@source)
|
||||||||||||||||||||||||||||||
屬於 | |||||||||||||||||||||||||||||||
可包含 |
|
||||||||||||||||||||||||||||||
宣告 |
element schemaSpec { att.global.attributes, att.identified.attributes, att.combinable.attributes, att.readFrom.attributes, attribute start { list { data.name, data.name* } }?, attribute ns { data.namespace }?, attribute prefix { "" | data.name }?, attribute targetLang { data.language }?, attribute docLang { list { data.language, data.language* } }?, ( model.glossLike*, ( model.oddRef | model.oddDecl )*, constraintSpec* ) } |
||||||||||||||||||||||||||||||
例子 |
<schemaSpec prefix="TEI_" ident="testsvg" start="TEI svg">
<moduleRef source="tei:5.1" 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 TEI 5.1 release version of the header module, and elements from an existing RELAXNG schema available from the URL indicated. |