att.declarable
att.declarable 提供屬性,用於TEI標頭內可單獨以特殊目的的屬性decls選出的元素。 [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> |