att.declarable
att.declarable 特別な目的のdecls属性を用いて独自に選択できるTEIヘッダー内の要素の属性を提供する。 [16.3 Associating Contextual Information with a Text] | |||||||||
モジュール | tei — The TEI Infrastructure | ||||||||
構成 | availability bibl biblFull biblStruct broadcast correction correspDesc editorialDecl equipment geoDecl hyphenation interpretation langUsage listApp listBibl listEvent listNym listObject listOrg listPerson listPlace metDecl normalization particDesc projectDesc punctuation quotation recording refsDecl samplingDecl scriptStmt segmentation seriesStmt settingDesc sourceDesc stdVals styleDefDecl textClass textDesc xenoData | ||||||||
属性 |
|
||||||||
Schematron |
<sch:pattern id="declarable" abstract="true"> <!-- parameter 'tde' is for "this declarable element (type)" --> <sch:rule context="$tde[ ancestor::tei:teiHeader and following-sibling::$tde and not( preceding-sibling::$tde ) ]"> <sch:report test="../child::$tde[ not( @xml:id ) ]"> When there is more than one <sch:name/>, each must have an @xml:id </sch:report> <sch:assert test="count( ../child::$tde[ normalize-space( @default ) = ('1','true') ] ) eq 1"> When there is more than one <sch:name/>, one and only one must have a @default of 'true'. </sch:assert> </sch:rule> </sch:pattern> |
||||||||
解説 |
このような選択可能要素の関連性を決める規則は、 16.3 Associating Contextual Information with a Textにおいて詳しく規定されている。 属性値trueをとるのは、ひとつの要素だけである。 |